*** 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
Is there a way (patch or app) to stop or disable home button from waking up screen? When it is in my pants pocket the button gets pressed and screen stays on. Just the power button for screen wakeup is enough for me.
Rooted running JB ROM.
Thanks!
In Root Explorer
/System/Usr/Keylayout
scroll down to: sec_keys.kl
find line: key 172 HOME WAKE
after home remove "wake"
Thanks!
Hi, I have a note 8 and love it. I carry it around in my leg pocket in my work pants and I think the constant pressure on the power button (the one on the left hand side of the device is constantly waking it and draining battery. Is there any way to disable waking the device when this button is pressed? Thank you all in advance with any help you can provide.
I hate the power button on both my note 8 and note 2. Not an optimum location at all. My only course of action was to get a thin case for it that makes the power button recessed a little. It helps immensely.
I got a moko book cover style case off amazon for like $8. Works fantastically.
Sent from my SAMSUNG-SGH-I317 using Tapatalk 2
I haven't found anything for the power button, but here is how to disable the home button from turning on the device.
I found this posted in another thread and just tested and confirmed it works on my Note 8. I run Civ's ROM and Kernel, FYI.
http://forum.xda-developers.com/showthread.php?t=2325740
This is not my fix, all credit to josiniscal00
text:
1. Open root explorer
2. Select mount RW on this top of the screen.
3. Go to the folder system.
4. Go to the folder user .
5. Go to folder key layouts.
6. Go to folder gpio-keys.kl
7. Hold down on GPIO file and select view text
8. Delete home and change wake to wake_dropped
9. Restart phone!
FYI, when I did this to my Note 2, the first time the home button still turned it on. It did not any times after.
No way other than to get a cover
in Root Explorer
/System/Usr/Keylayout
scroll down to:gk-keypad-8064.kl open this file in a text editor
find line: key 172 HOME WAKE
after home remove "wake" - save and exit root explorer
restart phone and your home button should stop waking
phone
this post stems from my phone butt dialing 911 from the emergency button on the lock screen i have another post on how to
completely remove the stock lock screen here http://forum.xda-developers.com/showthread.php?t=2398574
Thanks for this. The only difference I found was the key number was 172 rather than 102.
I butt dialed 911 last week too by mistake. It was embarrassing when they called me back.
Sent from my LG-E980 using xda premium
Basically what's happening here is that I want to use on screen nav keys. OK cool. Enabled them through Gravitybox I shut off the capacitive LEDs and was able to disable to menu and back buttons all together by editing the generic.kl file in /system/usr/ file.
Now, I'm trying to change the home buttons function to menu instead of home but it isn't working. I reboot and the button is still functioning as home.
I edited key 103 and 172 and replace MOVE_HOME with MENU WAKE_DROPPED. It isn't working.
Anyone got any ideas on what to do?
H3adru5H said:
Basically what's happening here is that I want to use on screen nav keys. OK cool. Enabled them through Gravitybox I shut off the capacitive LEDs and was able to disable to menu and back buttons all together by editing the generic.kl file in /system/usr/ file.
Now, I'm trying to change the home buttons function to menu instead of home but it isn't working. I reboot and the button is still functioning as home.
I edited key 103 and 172 and replace MOVE_HOME with MENU WAKE_DROPPED. It isn't working.
Anyone got any ideas on what to do?
Click to expand...
Click to collapse
NEVERMIND! I figured it out.
If anyone is interested in remapping their hardware buttons, the file to edit is the gpio-keys.kl file in /system/usr/keylayout/ folder.