[MOD] Volume Button Mapping

Search This thread

maxwintrobe

Senior Member
Apr 29, 2011
84
58
This is a simple hardware volume button remapping mod. You should be able to do the same using an app such as ButtonRemapper.

The stock hardware button order POWER-DOWN-UP feels reversed for Nexus 10 when held in portrait with the volume buttons at the upper right. This button mapping is specified in /system/user/keylayout/manta-keypad.kl as follows:

Code:
key 114   VOLUME_DOWN       WAKE
key 115   VOLUME_UP         WAKE
key 116   POWER             WAKE

To remap the hardware buttons for POWER-UP-DOWN, which feels more natural, modify manta-keypad.kl as follows:

Code:
key 114   VOLUME_UP         WAKE
key 115   VOLUME_DOWN       WAKE
key 116   POWER             WAKE

I made a flashable zip for POWER-UP-DOWN button mapping, download here: http://dl.dropbox.com/u/22573583/N10_Volume_Reverse.zip

To revert to stock button mapping (POWER-DOWN-UP) use this flashable zip, download here: http://dl.dropbox.com/u/22573583/N10_Volume_Stock.zip

Standard disclaimer use at your own risk.
 

m1s73r

Member
Dec 11, 2012
22
6
Unfortunately this doesn't work for me. I tried both your mod and doing it myself. Immediately after I save the file the system comes up with another one, just by appending bak at the end of the file name. So I cannot edit it, I got like 4 files already...

Nexus 10, Kernel and ROM from craigacgomez AOSP+ 4.2.1
 

ManUtdRul3

Senior Member
Jun 29, 2010
121
9
This doesn't seem to work for me? Used both the zip and modifying the file myself but it won't work at all...
 

Scythe024

Senior Member
Nov 14, 2011
643
108
do u have to be rooted? I do the power+up+down and only get start, recover, reboot, or shutoff
 

sgarrand

Senior Member
Feb 4, 2011
183
54
I know I'm resurrecting an old thread here but would it be possible to get this mod on 4.3?

Edit: It does work on 4.3! It was one of a couple zips I flashed when the flash failed. It wasn't this zip that failed, alone it worked wonderfully.


Scott

Sent from my Nexus 10 using Tapatalk HD
 
Last edited:

UK_Wildcats_Fans

Senior Member
May 22, 2008
332
79
I have been using the various versions of AOKP, and this mod has worked on all of them up to the current (4.4.4).
 

Top Liked Posts

  • There are no posts matching your filters.
  • 17
    This is a simple hardware volume button remapping mod. You should be able to do the same using an app such as ButtonRemapper.

    The stock hardware button order POWER-DOWN-UP feels reversed for Nexus 10 when held in portrait with the volume buttons at the upper right. This button mapping is specified in /system/user/keylayout/manta-keypad.kl as follows:

    Code:
    key 114   VOLUME_DOWN       WAKE
    key 115   VOLUME_UP         WAKE
    key 116   POWER             WAKE

    To remap the hardware buttons for POWER-UP-DOWN, which feels more natural, modify manta-keypad.kl as follows:

    Code:
    key 114   VOLUME_UP         WAKE
    key 115   VOLUME_DOWN       WAKE
    key 116   POWER             WAKE

    I made a flashable zip for POWER-UP-DOWN button mapping, download here: http://dl.dropbox.com/u/22573583/N10_Volume_Reverse.zip

    To revert to stock button mapping (POWER-DOWN-UP) use this flashable zip, download here: http://dl.dropbox.com/u/22573583/N10_Volume_Stock.zip

    Standard disclaimer use at your own risk.