• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Using Volume Rocker as Screen On Button

KidFlash

Well-Known Member
My Droid's power button is completely useless now that it's stuck all the way down. Sucks that this happens right when I decide to keep holding on for future devices. I was running CM7.1 RC 1 and there's a feature that allows me to wake the phone up with the volume rocker and I was using a widget in the notification area to turn of the screen. I found the screen off equivalent, but I can find anything that will let me change the screen on button to the volume rocker. Anyone know of an app or a ROM with this feature?
 
Thanks teddyearp, that link was extremely helpful! I remapped it to my Camera button and all is well again.
 
Thanks teddyearp, that link was extremely helpful! I remapped it to my Camera button and all is well again.

If you don't mind me asking, how did you do the remapping? I checked out the link with this:
"The original lines:
key 116 POWER WAKE
key 211 FOCUS
key 212 CAMERA

Changed them to:
key 116 GRAVE
key 211 POWER WAKE
key 212 POWER WAKE"

But I don't know where the "/system/usr/keylayout/sholes-keypad.kl" file is located. I am currently using an app to turn the screen off with an on-screen button, but it's incredibly aggravating to slide the phone open each time I want to use it. Thanks!

EDIT: never mind; I'm dumb. I'm gonna re-flash the ROM and see if it does the trick.
 
Well, I edited the file for the ROM, re-zipped, then flashed it. No change whatsoever. Looks like I'll keep searching for a reliable way to do this.
 
But I don't know where the "/system/usr/keylayout/sholes-keypad.kl" file is located.

Wow, really? The lines you need to change are in the file called "sholes-keypad.kl". It is located on your phone in this directory: /system/usr/keylayout

I don't know why you felt you needed to reflash your rom to do this, as that is not at all what the thread linked told one to do.


I made an update.zip style file, if you want to try that, make sure you make a nandroid backup first and then try flashing this file:

http://ted.servepics.com/nap/droid/TeddysPower2CameraRemap_update.zip


good luck
 
Ok so I need to remap my power button to the camera on my Droid . I know how to do this but when I get to / sholes-keypad.Kl it says it cannot be opened because it is not a valid PDF document. What do I need to do to make it work? Thanks
 
Hello again, nunnya. I answered this question over at droidforums, but will post the answer here as well.

Try using notepad++. It's a great and free text editor program that I've used to edit alot of files used for Android.

Also, did you try the update.zip style file I posted in the post above your?

good luck
 
Back
Top Bottom