*** I AM NOT TAKING ANY CREDIT FOR THIS, I JUST HAPPENED TO GOOGLE IT AND FOUND IT USEFUL AND WANT TO SHARE***
I found it on another forum posted by a guy name ERIC.
**Update (8/19)** THIS MOD SHOULD WORK FOR ALL ROMS! I did it both on AOKP and stock. Gonna look into what else can be edited and post results
If you're having trouble with your phone waking due to the home button, this is the mod for you.
I work in a restaurant and i keep finding that my phone gets quite warm in my pocket because
the screen comes on (it also likes taking screen shots, and sometimes even opens the camera).
Hope this is helpful for you guys.
HERE WE GO!
ONLY MODIFY THE FILE SPECIFIED!
OR PLAY AROUND AT YOUR OWN RISK AS NOTHING OTHER THAN MENTIONED FILE IS TESTED....
open root explorer
navigate to : system/usr/keylayout
now press the mount r/w button near the top of screen to enable read and write permissions
scroll down to: sec_keys.kl
press and hold until menu pops up, select: Open in Text Editor
locate line: key 172 HOME WAKE
tap behind the word WAKE and delete it so you see: key 172 HOME
press menu and select: Save and Exit
now press the button at the top of the screen to disable read and write permissions: Mount R/O
(once pressed should now read : Mount R/W again.
Exit root explorer
Reboot your phone
WALA, no more warm pocket and random screenshots
How about to add screen off in addition to screen wake while in the lockscreen? Thank you.
Sent from my SGH-T999 using Tapatalk 2
Thx! Its worked I've never liked that option...
Sent from my SGH-T999 using xda premium
thanx given, always bugged me.
Thx man. Appreciate the share.
Sent from my SGH-T999 using Tapatalk 2
Thanks for this. By the way does anyone know how to volume button wake?
Edit.
Search the file and found 115 114 for volume wake in there but it.does.not work
Sent from my SGH-T999 using xda app-developers app
The mod worked great, but I miss using the home button to unlock. My Otterbox Defender case prevents the pocket push so I un did it lol. Thx for the find!
Sent from my SGH-T999 using Tapatalk 2
I don't found it,,
I am using Jelly Bean rom right now and I missed the home button just turns on screen. I think in JB whenever I Push home button it directly goes to home. I mean if you gave a break when reading something when You push home button the app you working on is not active anymore but it goes to home instead. Do you guys have a fix for that?
thiagomme said:
How about to add screen off in addition to screen wake while in the lockscreen? Thank you.
Sent from my SGH-T999 using Tapatalk 2
Click to expand...
Click to collapse
I'd like to have that too. I had it on my previous phone and liked it.
Edit: Interesting, this is the contents of my whole file, and yet only the home and power buttons do wake up the phone.
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 172 HOME WAKE
key 116 POWER WAKE
Hi, on my galaxy note 2, I don't have the seckeys.kl file. What's up with that?
Its a galaxy note 2, this mod is for the s3
This works great! Thank you for finding this mod.
I'm using on-screen navbar buttons. The home button is the ugly thing Samsung has to put it there.
S-Beamed from my GS3 via xda premium
as_usual150 said:
I am using Jelly Bean rom right now and I missed the home button just turns on screen. I think in JB whenever I Push home button it directly goes to home. I mean if you gave a break when reading something when You push home button the app you working on is not active anymore but it goes to home instead. Do you guys have a fix for that?
Click to expand...
Click to collapse
I am also looking for a fix to this problem!
stu5797 said:
I am also looking for a fix to this problem!
Click to expand...
Click to collapse
WAKE: When this key is pressed while the device is asleep, the device will wake up and the key event gets sent to the app.
WAKE_DROPPED: When this key is pressed while the device is asleep, the device will wake up and the key event does not get sent to the app.
Interesting. ..can you give more detail or where to change?
arctic84 said:
*** I AM NOT TAKING ANY CREDIT FOR THIS, I JUST HAPPENED TO GOOGLE IT AND FOUND IT USEFUL AND WANT TO SHARE***
I found it on another forum posted by a guy name ERIC.
**Update (8/19)** THIS MOD SHOULD WORK FOR ALL ROMS! I did it both on AOKP and stock. Gonna look into what else can be edited and post results
If you're having trouble with your phone waking due to the home button, this is the mod for you.
I work in a restaurant and i keep finding that my phone gets quite warm in my pocket because
the screen comes on (it also likes taking screen shots, and sometimes even opens the camera).
Hope this is helpful for you guys.
HERE WE GO!
ONLY MODIFY THE FILE SPECIFIED!
OR PLAY AROUND AT YOUR OWN RISK AS NOTHING OTHER THAN MENTIONED FILE IS TESTED....
open root explorer
navigate to : system/usr/keylayout
now press the mount r/w button near the top of screen to enable read and write permissions
scroll down to: sec_keys.kl
press and hold until menu pops up, select: Open in Text Editor
locate line: key 172 HOME WAKE
tap behind the word WAKE and delete it so you see: key 172 HOME
press menu and select: Save and Exit
now press the button at the top of the screen to disable read and write permissions: Mount R/O
(once pressed should now read : Mount R/W again.
Exit root explorer
Reboot your phone
WALA, no more warm pocket and random screenshots
Click to expand...
Click to collapse
When I first did this I used ES File Explorer to make the edits. It didn't work so I went back to change it back and even though I went back to the default settings the Home button does not turn on the device. So, I downloaded Root Explorer thinking that would help. The strange thing is when I go into the sec_keys.kl file to edit, it is completely blank. So, I added each line manually and then hit save and exit. But, when I go back into it, it is blank again. I assume that all of this has something to do with the home button not turning on the phone. So, what am I doing wrong and how do I fix it?
jconway1968 said:
When I first did this I used ES File Explorer to make the edits. It didn't work so I went back to change it back and even though I went back to the default settings the Home button does not turn on the device. So, I downloaded Root Explorer thinking that would help. The strange thing is when I go into the sec_keys.kl file to edit, it is completely blank. So, I added each line manually and then hit save and exit. But, when I go back into it, it is blank again. I assume that all of this has something to do with the home button not turning on the phone. So, what am I doing wrong and how do I fix it?
Click to expand...
Click to collapse
same problem, it fails to turn on the phone.
Once I do this mod it works but now everytime I push the home button, the phone vibrates and makes the touch screen sounds. Anyone know a solution so this one home button does not vibrate or make a sound when pressed besides turning off vibrations and sounds for the whole phone?
klau1 said:
same problem, it fails to turn on the phone.
Click to expand...
Click to collapse
jconway1968 said:
When I first did this I used ES File Explorer to make the edits. It didn't work so I went back to change it back and even though I went back to the default settings the Home button does not turn on the device. So, I downloaded Root Explorer thinking that would help. The strange thing is when I go into the sec_keys.kl file to edit, it is completely blank. So, I added each line manually and then hit save and exit. But, when I go back into it, it is blank again. I assume that all of this has something to do with the home button not turning on the phone. So, what am I doing wrong and how do I fix it?
Click to expand...
Click to collapse
Restart the phone.
Sent from my GT-I9300 using xda premium
Related
I was thinking since we have root and we have a Hardware Keyboard it would be nice to actually have a Hardware button for the Camera.
So I started Searching around on how to do it. I found an application that claimed to be able to do it called "buttonremapper". Unfortunately this program only sees the Menu and back button. 2 buttons I do not wish to remap.
I did find a program called Keynrtracker on XDA that allows me to see the ID's of every button pressed including the Hardware buttons.
I researched a little more and found where the Key mapping files are located:
"system/usr/keylayout"
In here, there are many files that have to do with the keyboard. I found the one to modify is the:
"STMPE_keypad.kl"
this file has all the keys and I simply wanted to change the Search button from the keypad to bring up the Camera so I did this:
key 217 CAMERA WAKE_DROPPED
where previously 217 was:
key 217 SEARCH WAKE_DROPPED
"Wake dropped" is to tell the button to wake up if asleep or not.
Make sure you backup before have root and save. Reboot to load changes.
Well it now works I have a Hardware Camera button. One thing I noticed is I have to Hard press the button and hold not just click. Anyone know why? Added benefit is once the camera app is open, it also takes pictures by pressing on that same button.
JB
nice ^__^
It sounds like you re-mapped long press search, which normally goes to google search, which is why you may have to hold it down longer. Does a short press bring up the normal search menu?
Nardholio said:
It sounds like you re-mapped long press search, which normally goes to google search, which is why you may have to hold it down longer. Does a short press bring up the normal search menu?
Click to expand...
Click to collapse
Short press on its own does nothing. Pressing it with any other key does a normal search.
dudejb said:
I was thinking since we have root and we have a Hardware Keyboard it would be nice to actually have a Hardware button for the Camera.
JB
Click to expand...
Click to collapse
I'm assuming, you want to have it set as a 1 key touch operation instead of setting it up in quick launch configuration like Search + C.
pics can be taken using the OK button by default.
clockwork58 said:
I'm assuming, you want to have it set as a 1 key touch operation instead of setting it up in quick launch configuration like Search + C.
pics can be taken using the OK button by default.
Click to expand...
Click to collapse
Agreed 1 touch I also like the ability of knowing I can change any key on the keyboard like that useless "www.com"button.
Sent from my SAMSUNG-SGH-I927R using xda app-developers app
Are there any mods to disable the phone from waking-up when the home button is pressed?
I keep accidentally waking up my phone when I reach into my pocket, or when I'm cleaning the front screen.
I run AOSP ROM's, currently LiquidSmooth.
I know you can set the hardware keys to perform certain functions when the phone is awake, but not sure that you can disable a button for when the phone is asleep.
CZ Eddie said:
Are there any mods to disable the phone from waking-up when the home button is pressed?
I keep accidentally waking up my phone when I reach into my pocket, or when I'm cleaning the front screen.
I run AOSP ROM's, currently LiquidSmooth.
I know you can set the hardware keys to perform certain functions when the phone is awake, but not sure that you can disable a button for when the phone is asleep.
Click to expand...
Click to collapse
I just did this on stock rom, but it should still work on AOSP,
I'm assuming you're rooted, so go into your file manager app and navigate to /system/usr/keylayout and open sec_keys.kl as text.
On the line where it says
"key172 HOME WAKE"
Just delete the word wake and reboot, your home key should now function as it should minus the wake
Remember to backup for the worst case scenario
Jordayum said:
I just did this on stock rom, but it should still work on AOSP,
I'm assuming you're rooted, so go into your file manager app and navigate to /system/usr/keylayout and open sec_keys.kl as text.
On the line where it says
"key172 HOME WAKE"
Just delete the word wake and reboot, your home key should now function as it should minus the wake
Remember to backup for the worst case scenario
Click to expand...
Click to collapse
Thank you very much, Jordayum. That worked perfectly. I applied it to the volume up/down keys also. :good:
Is there a way to modify the function of the HOME BUTTON so it doesn't wake the phone?
My Arc S keeps on unlocking inside my pocket and takes a lot of snapshots and drains the battery.
And another thing, what variable to use to open RECENT APPS via a hardware key, for example the camera shutter key.
Thanks in advance.
To prevent screen from turning on in pocket, disable the feature, which turns on screen via home button. Will post instructions later.
Sent from LT18i with custom firmware by myself.
Someguyfromhell said:
To prevent screen from turning on in pocket, disable the feature, which turns on screen via home button. Will post instructions later.
Sent from LT18i with custom firmware by myself.
Click to expand...
Click to collapse
Would really much appreciate it, I've been tormented by this accidental unlock in pocket and drains my battery because of the camera.
Thanks in advance.
Oh, and about the other thing, is it possible? What if I substitute the RECENT APPS for the MENU BUTTON, would the 3dot option appear on some apps?
Someguyfromhell said:
Will post instructions later.
Click to expand...
Click to collapse
Take a file explorer, that can access root folders (ES File Explorer for example), make sure to go into settings and allow access and write to system folders.
Then go to /system/usr/keylayout, open the file pm8058_keypad.kl with ES File Explorer's default Note Editor (long press, Open As, Text), find this line
Code:
key 102 HOME WAKE_DROPPED
and change it to
Code:
key 102 HOME
So just remove the WAKE_DROPPED part.
Wrote it from my head, might have mistakes. Hopefully not.
EDIT: About the recent apps, this is coded somewhere in framework, I can't help you with that. However, the on-screen buttons do not show Menu button, it will only appear on the right side, if there is an app, which makes use of the Menu button and no other possibilities are available (depends on how the app is built).
Thanks a lot for the help sir.
It did the trick and the HOME BUTTON doesn't wake the phone from sleep.
Really much appreciated help.
Thanks again.
I have another question sir, How can I assign the WAKE function in some other button, let's say the VOLUME DOWN?
I tried replacing the WAKE with WAKE_DROPPED but it didn't work, I tried adding it without removing the WAKE and failed.
So is there a way for this?
Thanks again in advance sir.
This particular problem is the reason I use a lock pattern, not because of the security of my phone, but because of the many photos my pocket takes. However, it would be nice if we could wake the phone using the volume rockers, just not to abuse the power button. I also tried to place WAKE_DROPPED on such buttons with no success, help pretty please
Actually I was looking for a mod to use the proximity sensor to know when it is in the pocket, and not allowing the menu button to wake the handset, but this is way better, thanks pal :highfive:
-----------------------------------
Edit:
I found out that the volume rockers actually work well waking the screen, but, you have to select in security>Screen Lock>None
In such case the volume rockers will work to wake the phone (no need to add anything to the VOLUME DOWN line, as it already says WAKE)
Now the question is how to change it to do it while having slide, pattern or password as screen lock
Yeah, that's what I'm after. Using the Volume Rocker to function like the HOME Button in waking the phone.
Will someone help us out in customizing this. The POWER BUTTON is pretty far for my fingers, and the VOLUME DOWN sits just right under my thumb when holding the phone.
Would really much appreciate it if someone help us out.
Maybe they can include something like this on custom roms, giving the users the option to pick which would they prefer.
ajaydsantos said:
Yeah, that's what I'm after. Using the Volume Rocker to function like the HOME Button in waking the phone.
Will someone help us out in customizing this. The POWER BUTTON is pretty far for my fingers, and the VOLUME DOWN sits just right under my thumb when holding the phone.
Would really much appreciate it if someone help us out.
Maybe they can include something like this on custom roms, giving the users the option to pick which would they prefer.
Click to expand...
Click to collapse
It is already on some custom ROMs.
CyanogenMod/FXP based and MIUI ROMs, if I am not mistaken.
But I'm using Zelly Cream 2.5 and it doesn't have that. Hope that it can be ported to this rom.
How do i do it if it's possible? I don't have the know how on such programming/language, will someone help me.
Hi, I have my xperia arc s also with the same problem with you... i actually downloaded root explorer and i can navigate the system data/files but i cannot modify the files mentioned the HOME WAKE_DROPPED... because my unit is not a rooted one...
Please help me to disable the home button by not rooting my phone... Can you make an APK file to disable this function? please please help
Hello guys, I'm reading ebooks on this tablet in portrait mode. it happens to me quite often that I touch the back or menu button while holding the tablet by accident and close the book. Is there a way how to disable these buttons? I'm rooted.
Thank you
Sent from my SM-P600 using xda app-developers app
Did you see this thread? http://forum.xda-developers.com/showthread.php?t=2539936
I posted in that thread, but just to reiterate, you need to edit /system/usr/keylayout/sec_touchscreen.kl, not sec_touchkey.kl like on the S3 as described here: http://brandtkrueger.wordpress.com/...ation-buttons-on-the-galaxy-s3-requires-root/.
On mine, I rem'd out 4 of the 8 lines in that file - 2 lines that have MENU and 2 lines that have BACK in them, and it works. My buttons still light up, but they don't make a noise or haptic feedback, nor do they do anything. Oh also, I haven't tested this yet, but if you want to disable the physical HOME button, I think you need to edit gpio-keys.kl. There are 4 lines in that file, all referring to the physical keys on the tablet (vol down, vol up, power, and home).
Guys,
I know it's easy to do when we have root. Also it might already post it somewhere. I couldn't find it.
What the name of the app let me swap the Back and Menu hardware keys for Non-root phone ?
Just picked up the Note 4 this morning.
Sent from my SAMSUNG-SM-N910A using Tapatalk
I don't know of a way to change touchwiz keymapping without root and xposed framework.
but if you're unaware of this, you can actually bring up menu by holding the recent apps key for 1 second
I care more about the back button. I'm holding phone with the left hand and can't reach to the back button
Sent from my SAMSUNG-SM-N910A using Tapatalk
sweetboy02125 said:
I care more about the back button. I'm holding phone with the left hand and can't reach to the back button
Sent from my SAMSUNG-SM-N910A using Tapatalk
Click to expand...
Click to collapse
Here's something that may help. Settings > Device > One handed operation > Side Key Panel
It will put a soft key version of the Home/Back/Recents button on the left side of the screen. It's barely visible until you swipe it when needed. I also use my left hand and had problems reaching the "back" button.
i really hate it too!
freaking samsung should atleast give us a option to choose if we want that button to be menu or task manager.
stevieraveon said:
Here's something that may help. Settings > Device > One handed operation > Side Key Panel
It will put a soft key version of the Home/Back/Recents button on the left side of the screen. It's barely visible until you swipe it when needed. I also use my left hand and had problems reaching the "back" button.
Click to expand...
Click to collapse
Yeah, I got that but it's annoying that i need to swipe it out every times when i need the back button.
Damn it. We need root now so we can change this crap
sweetboy02125 said:
Yeah, I got that but it's annoying that i need to swipe it out every times when i need the back button.
Damn it. We need root now so we can change this crap
Click to expand...
Click to collapse
https://play.google.com/store/apps/details?id=jp.android.poro.anywherekey
https://play.google.com/store/apps/details?id=com.appspot.app58us.backkey
Would either of these work for your situation? One is pie type launcher on screen the other just puts a dedicated back button on the screen? I've been searching for a post I KNOW I saw with a root free app that someone found that'll let you swap the buttons and even assign a hardware button to a function but I just can't relocate it
I'm using ADW launcher. the back button on screen maybe a temp solution
If we have root, this should work fine:
http://forum.xda-developers.com/showthread.php?t=2021463
Try the accessibility assistant menu.
settings >accessibility>dexterity and interaction >assistant menu