Reassign Hardware Keys CM 10.1 - Nook HD, HD+ Q&A, Help & Troubleshooting

I'd like to assign the Nook key to wake/lock instead of Home. I would continue to use the soft Home key. Will something like this work? Could someone suggest the values for CM 10.1?
Disable home button from waking Samsung Galaxy S3 and Note 2 http://forum.xda-developers.com/showthread.php?t=2325740
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!

king200 said:
I'd like to assign the Nook key to wake/lock instead of Home. I would continue to use the soft Home key. Will something like this work? Could someone suggest the values for CM 10.1?
Disable home button from waking Samsung Galaxy S3 and Note 2 http://forum.xda-developers.com/showthread.php?t=2325740
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!
Click to expand...
Click to collapse
Using your root explorer of choice, replace the stock Generic.kl and gpio-keys.kl in /system/usr/keylayout/ with these in the attached zip. That will cause the "n" or the power button to wake/sleep the device.
I'm going to experiment with how to prevent the power button from waking the device. It's too easy for that to get pressed while it's in my bag.

Related

Help remapping keys?

I've got my nook 2e rooted and whatnot, but I can't figure out how to remap the hardware keys. There are a few threads on the forum suggesting various configs but search didn't turn up one on exactly how to do it...
For remapping the N button: http://forum.xda-developers.com/showthread.php?t=1139769
For remapping page buttons: http://forum.xda-developers.com/showthread.php?t=1126654
Good luck!
So I think between the two I understand which file I want to edit and what I want to edit it to, but how do I access the file /system/usr/keylayout/gpio-keys.kl?
Get Root Explorer and navigate from there. You'll want to change the permissions from R/W to R/O at the top of the screen. Then you'll want to do a long press on the file you want to edit, which will bring up a menu of choices. Scroll down to the one that lets you use a text editor, make the changes, then use back button to get out of there.
You can make a back up copy of the file by long pressing, copy/pasting before if you want. In my experience, a copy renamed filename.bak is automatically generated of any file you edit.

[SOLUTION] Stop home key from waking up device. **ROOT**

**ROOT REQUIRED**
As the title goes, after this, only your power button will wake up the device.
I know theres more threads to this, but not in I9305 section, and i know loads of ppl are just lazy
Root Explorer was used, but you can do with other at your own risk.
I will not be held responsible for any damage, specially if you mess arround with anything not described here.
-- Open root explorer;
-- Go to : system / usr / keylayout
-- Enable read and write permissions (Mount R/W)
-- Scroll down to: gpio-keys.kl (i'm using CM 10.1 so this is the file. Saw in original thread reference to sec_keys.kl, i just dont have that file)
-- Edit file in Text Editor (long press file then choose correct option)
-- Locate key 172 HOME WAKE
-- Delete the word "WAKE" so you get just key 172 HOME
-- Save and Exit
-- Disable read and write permissions (Mount R/O)
-- Exit root explorer
-- Reboot
Should work
Credit goes to taycuong76 http://forum.xda-developers.com/showthread.php?t=1702675

[Tutorial] Enable the phone by pressing HOME key in Galaxy mini S5570I

Device Should Be Rooted.!
You will need root browser or root explorer but use root explorer it better then root browser
Open root explorer Go to System/usr/keylayout
In keylayout you have to find Sec_KEYPAD.KL
Long press on Sec_KEYPAD.KL select open it with text editor
now comes the complicated and risky is you open the window for editing and in the line where it says: KEY 102 HOME have to modify it and make it something like this: KEY 102 HOME WAKE_DROPPED
then save it then Reboot Your device then injoy.

[Tutorial] Enable the phone by pressing HOME key in Galaxy mini S5570I

Device Should Be Rooted.!
You will need root browser or root explorer but use root explorer it better then root browser
Open root explorer Go to System/usr/keylayout
In keylayout you have to find Sec_KEYPAD.KL
Long press on Sec_KEYPAD.KL select open it with text editor
now comes the complicated and risky is you open the window for editing and in the line where it says: KEY 102 HOME have to modify it and make it something like this: KEY 102 HOME WAKE_DROPPED
then save it then Reboot Your device then injoy.
Thank you :good:
omarmoro said:
thank you :good:
Click to expand...
Click to collapse
your most wellcome

[Tutorial] Enable the phone by pressing HOME key in Galaxy mini S5570I

Device Should Be Rooted.!
You will need root browser or root explorer but use root explorer it better then root browser
Open root explorer Go to System/usr/keylayout
In keylayout you have to find Sec_KEYPAD.KL
Long press on Sec_KEYPAD.KL select open it with text editor
now comes the complicated and risky is you open the window for editing and in the line where it says: KEY 102 HOME have to modify it and make it something like this: KEY 102 HOME WAKE_DROPPED
then save it then Reboot Your device then injoy.

Categories

Resources