[Q] Nook Simple Touch Remap Hardware Keys

Search This thread

crazy_jake

Member
Jun 23, 2011
20
13
jacobschleappi.com
i am trying to figure out how to tell what hardware keys = what number in the TWL4030_Keypad.kl file. I've followed the Simple Touch Rooting guide and the author changed two of the keys, but i cant figure out what the values for the other keys are.

The Nook Touch has 6 hardware keys, two on each side, one in the center, and the power button.
The two on the Left from top to bottom are 412 and 139.
The two on the Right from top to bottom are 407 and 158.
The 'n' button is _________.
The Power button is 116 (unconfirmed - i found this in the included twl4030_keypad.kl file as :
Code:
key 116   POWER             WAKE



EDIT: Thanks to akacat for finding this thread that has the left and right button mappings. Just need the middle button now!


Nook-Simple-Touch.jpg
 
Last edited:
  • Like
Reactions: cymoze

klaberte

Senior Member
Jul 19, 2007
411
185
Google Pixel 5
Confirmation

I can confirm that BACK, MENU, VOLUME_UP, VOLUME_DOWN all work! I made my changes using Root Explorer.

Here is the mini howto:

Start Root Explorer
navigate to /system/usr/keylayout/
Press "Mount R/W"
Press and hold TWL4030_Keypad.kl until menu comes up, press Copy, press Paste (to give you a backup)
Press and hold TWL4030_Keypad.kl until menu comes up, press Open in Text Editor (after paging down)
Scroll to end of file
Edit the lines as follows:
key 407 VOLUME_UP
key 412 MENU
key 139 BACK
key 158 VOLUME_DOWN
Press Done, Press Menu (in status bar), Press Save and Exit
Reboot
 
  • Like
Reactions: rigy73

josiahsprague

New member
May 26, 2013
1
0
I can confirm that BACK, MENU, VOLUME_UP, VOLUME_DOWN all work! I made my changes using Root Explorer.

Here is the mini howto:

Start Root Explorer
navigate to /system/usr/keylayout/
Press "Mount R/W"
Press and hold TWL4030_Keypad.kl until menu comes up, press Copy, press Paste (to give you a backup)
Press and hold TWL4030_Keypad.kl until menu comes up, press Open in Text Editor (after paging down)
Scroll to end of file
Edit the lines as follows:
key 407 VOLUME_UP
key 412 MENU
key 139 BACK
key 158 VOLUME_DOWN
Press Done, Press Menu (in status bar), Press Save and Exit
Reboot

This is so simple, that I'm embarrassed that I can't get it to work. When I try to edit the file in Text Editor, it says I don't have permission to save it. If I open it in ES Text Edit, I can't scroll down to the bottom. I've been trying for two days. Anyone else running into this problem or have any ideas for a workaround?
 

gpszkit

Member
Jun 22, 2011
7
0
This is so simple, that I'm embarrassed that I can't get it to work. When I try to edit the file in Text Editor, it says I don't have permission to save it. If I open it in ES Text Edit, I can't scroll down to the bottom. I've been trying for two days. Anyone else running into this problem or have any ideas for a workaround?

You need to edit the file as a root.

I have another question: how can I remap side buttons, so they would work, when scrolling with your finger on touchscreen fails? The app I want to work is eMPendium. Could any one be so kind and try to install the app on his/hers NST and letting me know if remapping is possible?
 

outlogic

Senior Member
May 2, 2008
61
2
tried to remap the keys to no avail

key 407 VOLUME_UP
key 412 RIGHT_PREVPAGE
key 139 RIGHT_NEXTPAGE
key 158 VOLUME_DOWN

Now after rebooting when I hit the right buttons I actually get a volume indicator and can "change" the volume

ZlU0bkhl.jpg


i rooted my devices with ZeroLab Nooter as well as NookManager. I also use NTGAppsAttack and custom kernel #166.

Any idea how to change the behavior of the right buttons to enable scrolling?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    i am trying to figure out how to tell what hardware keys = what number in the TWL4030_Keypad.kl file. I've followed the Simple Touch Rooting guide and the author changed two of the keys, but i cant figure out what the values for the other keys are.

    The Nook Touch has 6 hardware keys, two on each side, one in the center, and the power button.
    The two on the Left from top to bottom are 412 and 139.
    The two on the Right from top to bottom are 407 and 158.
    The 'n' button is _________.
    The Power button is 116 (unconfirmed - i found this in the included twl4030_keypad.kl file as :
    Code:
    key 116   POWER             WAKE



    EDIT: Thanks to akacat for finding this thread that has the left and right button mappings. Just need the middle button now!


    Nook-Simple-Touch.jpg
    1
    The mapping for the right keys is listed in the first post on this thread: http://forum.xda-developers.com/showthread.php?t=1124160

    I don't recall seeing anyone mention the mapping for the bottom button.
    1
    Confirmation

    I can confirm that BACK, MENU, VOLUME_UP, VOLUME_DOWN all work! I made my changes using Root Explorer.

    Here is the mini howto:

    Start Root Explorer
    navigate to /system/usr/keylayout/
    Press "Mount R/W"
    Press and hold TWL4030_Keypad.kl until menu comes up, press Copy, press Paste (to give you a backup)
    Press and hold TWL4030_Keypad.kl until menu comes up, press Open in Text Editor (after paging down)
    Scroll to end of file
    Edit the lines as follows:
    key 407 VOLUME_UP
    key 412 MENU
    key 139 BACK
    key 158 VOLUME_DOWN
    Press Done, Press Menu (in status bar), Press Save and Exit
    Reboot