[Q] Remap Buttons? - Droid 2 Global General

Hello,
I have a friend with a Droid 2 and their power button is on the way out. Is there a way to remap the camera button to be the power button?
I have tried editing the "cdma_droid2-keypad.kl" file, but it doesn't seem to change anything...
Code:
key 116 POWER GRAVE
key 211 FOCUS POWER WAKE
key 212 CAMERA POWER WAKE
does this code look correct? I just can't seem to get it to change anything. After pushing the file it doesn't change the button behavior at all.
They are rooted and on CM7

Related

Change Key Mapping

I've dropped my phone recently and the power button is now very finicky. Is there any way I can make the volume rocker work as a power button? Or what would you do?
Sent from my SGH-I897 using XDA App
Yes you can change the key mapping. The files are under /system/usr/keylayout I'm not sure which one exactly since it changes for roms. But you'd have to first go into recovery and go into advanced and perform a key test. Find out the key number of the volume key. Then in the keylayout file. Put that keynumber as the power button. I've never tried changing the power button, but it logically makes sense.

Xperia J remap volume down button root

Hi,
I was not happy with the small power button, so I took the idea described here for miro device: http://forum.xda-developers.com/showthread.php?p=35801737
and I changed in fih_gpio-keys.kl:
key 114 VOLUME_DOWN WAKE
to:
key 114 SEARCH WAKE_DROPPED
Now volume down key works as search button - so I can unlock device by pressing volume down, and use it as a fast search to Google. I also downloaded LaunchKey
http://forum.xda-developers.com/showthread.php?t=818499
So long press on Volume down will bring me to camera360 app. for photo.
I do not use volume down so often and If I want to set volume down, I just press volume up and on screen I set the level..
(also the value can be change to: key 114 POWER WAKE - after that it works as the power button - but not for the complete power up after shut down... )
So this tip can be useful for anybody, who wish to have another way to unlock Xperia J (I was not happy with the unlock app. on Google play, as they always somehow messed with my lock screen)
Changed minc VOL(-) liked it !
jozka said:
Hi,
So long press on Volume down will bring me to camera360 app. for photo.
Click to expand...
Click to collapse
change mine keylayout and installed LaunchKey.
Useful combo for Xperia J ,since it lacks SEARCH key +1

[Q] Galaxy S2 Power Button Failure

My sprint epic power button failed and I am trying to fix it by moving the function of the power key to the volume up or down key and setting the power key function to null. I have several questions on how to do this.
1. I know that I will have to gain root access but is there a way to do this without installing a custom kernel?
2. If i do end up having to root hte thing how do I get into download mode if the power key is not working?
3. My current /system/usr/keylayout/ has several files in it and am I right to assume that I should be editing the gpio-keys.kl file?
4. Is the 116 button assigned the power button value and 115 volume up?
5. Currently the file looks like this
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
so if i edited it to something like
key 115 POWER WAKE
key 114 VOLUME_DOWN WAKE
key 116
would it still work? I want to leave the power key funciton blank as it looks like it is stuck and I dont want it to get stuck performing volume up the whole time.
That is all. Any help would be extremely appreciated by me and as you can see I am new to this whole process so if you have any pointers or better ways of doing this I would be extremely grateful for any input.
Bump
Bump
sacaAf unto
Any suggestions would def help

[Q] Hard button remapping and combination customizing

hey everyone
im new to this site, so i cant post in the development forum.
i have a question about remapping - is it possible to remap or customize hard button combinations - for example changing the .kl files so that if key 114(volume down) and key 115(vol up) are pressed together - it causes the screen to lock.
the only reason im asking is that i have a galaxy s3 - the volume rocker is too sensitive. i disabled the vol up and vol down by inserting a # in my devices .kl files, but it would be handy to make a combination hard key press for volume up and down - like the home button+vol up = volume up.
any idea how to do that?

[Q] build.prob mod to change power button to vol button?

ROM: CM11(Kit Kat 4.4.4)
My power button sometime work and sometime not.
Now I want to use vol button as my power button.
How to modify a vol button as power button? Can we mod from build.prob?
Btw, what is this? default is false, what if I set as true?
persist.sys.dalvik.multithread=true
And there is some tweak tips from here:
http://gs3.wonderhowto.com/how-to/t...-with-these-build-prop-android-hacks-0142434/
I wonder, which one is best mod to improve performance of our LGO3D?
Thank you.
cyclonmaster said:
ROM: CM11(Kit Kat 4.4.4)
My power button sometime work and sometime not.
Now I want to use vol button as my power button.
How to modify a vol button as power button? Can we mod from build.prob?
Btw, what is this? default is false, what if I set as true?
persist.sys.dalvik.multithread=true
And there is some tweak tips from here:
http://gs3.wonderhowto.com/how-to/t...-with-these-build-prop-android-hacks-0142434/
I wonder, which one is best mod to improve performance of our LGO3D?
Thank you.
Click to expand...
Click to collapse
Go to System/usr/Keylayout/Generic.kl , you will see a lot of numbers every number represents one key and value on right side is command it is doing (example: key 116 POWER WAKE this wakes device with key 116) now you can search for VOLUME_DOWN and change it to POWER WAKE or if you have TWRP recovery there is option to detect every key numer.

Categories

Resources