asadullah
Android Enthusiast
Have you ever felt like the a button was in the wrong place or wanted another way to turn on your device other then the top power button? Me to and with this guide you should be able to.
I did all of this with es file explorer but it's alot easier to do it with your laptop using adb remount.
Download es file explorer and go to menu settings, scroll all the way to the bottom and check root explorer then mount file system.
Once thats done go back and press favorites then /.
now go to system/usr/keylayout/ and open up dop_keylayout.kl as a text file Your gonna see some things like this
These are what matter
The numbers are what key they are. The words are the operation assigned to them and then you may see wake or wake_locked that determines whether the key wakes the phone from sleep.
So lets change so stuff before you get bored reading this
go to key 95 change CAMERA to POWER WAKE_LOCKED. Just like I typed it I put four spaces in between power and wake_locked. Now press menu and save when it confirms that you saved reboot your phone. When it comes back on press the button underneath the volume down key it should either turn your screen on or off and now act as the power key.
Thats it
Thanks to decad3nce and someone from my moto modding days I done forgot.
P.S I almost forgot. I just checked and ubuntu still sucks
I did all of this with es file explorer but it's alot easier to do it with your laptop using adb remount.
Download es file explorer and go to menu settings, scroll all the way to the bottom and check root explorer then mount file system.
Once thats done go back and press favorites then /.
now go to system/usr/keylayout/ and open up dop_keylayout.kl as a text file Your gonna see some things like this
Code:
key 399 GRAVE
key 158 BACK WAKE_DROPPED
key 230 SOFT_RIGHT WAKE
key 60 SOFT_RIGHT WAKE
key 107 ENDCALL WAKE_DROPPED
key 62 ENDCALL WAKE_DROPPED
key 229 MENU WAKE_DROPPED
key 139 MENU WAKE_DROPPED
key 59 MENU WAKE_DROPPED
key 127 SEARCH WAKE_DROPPED
key 217 SEARCH WAKE_DROPPED
key 228 POUND
key 227 STAR
key 231 CALL WAKE_DROPPED
key 61 CALL WAKE_DROPPED
key 102 HOME WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
key 95 CAMERA
key 226 HEADSETHOOK WAKE
key 544 REJECT
These are what matter
Code:
102 home key
229 nada
139 menu
158 back
127 ?
217 search
115 volume up
114 volume down
95 camera
The numbers are what key they are. The words are the operation assigned to them and then you may see wake or wake_locked that determines whether the key wakes the phone from sleep.
So lets change so stuff before you get bored reading this
go to key 95 change CAMERA to POWER WAKE_LOCKED. Just like I typed it I put four spaces in between power and wake_locked. Now press menu and save when it confirms that you saved reboot your phone. When it comes back on press the button underneath the volume down key it should either turn your screen on or off and now act as the power key. Thats it
Thanks to decad3nce and someone from my moto modding days I done forgot.
P.S I almost forgot. I just checked and ubuntu still sucks
