Allow or Disallow the Home key from waking up the Phone [Galaxy Note]

taycuong76

Senior Member
Jul 8, 2011
51
48
0
PREVENT - ALLOW GALAXY NOTE HOME KEY FROM ACCIDENTALLY WAKE UP DEVICE:

Some people complained about the Home keys of Galaxy Note sometime is touched and turned on accidentally when taking it in-out of the pocket.
After studying some articles on-line for Droid X phone (not same as the Galaxy Note), I digged around in the directory system/usr/ keylayout. Finally, I have found a way to do it. I can disable the HOME key from wake up the phone in off-screen state, but still let it to move from apps drawer to standby screen as usual. And I think it works!!
- Goal: Modify 2 file related to wake up function of the Home key (code 102).
- How to:
+ Using Root Explorer go to the folder: system/usr/keylayout, set permission to Mount R/W;
+ Click to select the 2 files: gpio-key.kl and sec_key.kl to modify them. When the menu appears, select: Text Editor to modify the files.
+ Move to the line: "key 102 HOME WAKE" in the 2 files above and put the cursor on the position of "WAKE" to erase the word "WAKE".
+ Press Menu hard button, select Save Changes, the phone will save the backup file and save the current files.
+ Set permission to Mount R/O for the folder: system/usr/ keylayout.
+ Shut down and then restart, Ahh, it worked!
Note: If you want to use Home key to wake up Galaxy Note again, go to delete two above modified files and rename the two backup files to gpio-key.kl and sec_key.

For people don't want to do it manually, I make the 2 flashable files for Allow and Disallow the Home key for Note and tested for working, at least on my Galaxy Note.
The 2 flashable files to do that is attached below. Copy to SDCard/ExternalCard and flash them in CWM Recovery, then reboot:
 

Attachments

Last edited:

taycuong76

Senior Member
Jul 8, 2011
51
48
0
Flashable files to Allow or Disallow the wake-up function of Home key for Note

Flashable file for Allow and Disallow the Home key for Note

Phew! I tried my best to make the flashable file and tested for working, at least on my Galaxy Note.
Here is the link for Allow and Disallow the Home key for Note.
Copy to your SDCard and flash them with CWM Recovery.

Hope them could help.:)

Could you make a flashable zip file for this?
Would be great!
Thanks in advance...
Yes..please.
+1
GT-N7000-LiquidSmooth-V [2.2] . ;)
 

Attachments

Last edited:

elan300

Member
Aug 20, 2009
16
0
0
I can not thank you enough for this as I have struggled with this issue for the past 12 months and as my job is a dirty one I can feel my phone getting hot in my pocket but cannot take it out as by hands are black. Thanks.
 

jetzew

Senior Member
Jan 26, 2008
63
13
38
looks like this is not working in Jelly Bean / Cyanogen 10.1

Do not work on JB SLIM BEAN

Sent from my GT-N7000 using Xparent ICS Blue Tapatalk 2

does somebody know whitch file(s) to edit for this to work in Jelly Bean or Cyanogenmod 10.1.
I'm on asylum 4.2.2.this is a cyanogen 10.1 mod , like slim bean .

It looks like we need to change more/other files for this to work , wile when i canche the here adviced ones , nothing seems to change ,, the volume buttens still behave the same.

/system/usr/keylayout/sec_key.kl is changed to..

key 115 POWER WAKE
key 114 POWER WAKE
key 102 HOME WAKE
key 107 ENDCALL
key 105 DPAD_LEFT
key 106 DPAD_RIGHT
key 103 DPAD_UP
key 108 DPAD_DOWN
key 232 DPAD_CENTER
key 116 POWER WAKE
key 212 CAMERA WAKE


look at line 115 and 114 this would change te volume button function in the power funtion , i suspect , AM I RIGHT ????

in fact this does not change the behavior of the volume buttons at all it still changes te volume , btw i did restart after changing te sec_key.kl file

please advice manny thanks in advance
 

M3TALLICA

Senior Member
Nov 14, 2011
1,507
499
103
Is it possible to add long press action to Home key or other capacitive keys like in CM roms ? How to make it turn on flash light ?