Hi guys, I'm out of warranty with my Captivate and the power button is not responding as expected from time to time. Sometimes it doesn't respond at all or it just takes a couple of seconds to show the power menu (reboot, restart, etc.) when I just pressed it once to lock it, from the behavior is clear that it's a hardware issue (I have also flashed different roms and had the same results, just in case). I want to change the behavior of one of the other buttons, probably volume down (the least preferable) or the search touch button (it sucks but one of them has to go and this is the one I could more easily do without).
Looking on the net I found this for the Motorola Droid but the files are kind of different for the Captivate. The location is the same: /system/usr/keylayout/ but the file sholes-keypad.kl is not there, there are others but the SEARCH functionality appears on several of the files and I don't know exactly which one to change. What do you guys think?
PS: If this should go under development please let me know.
It seems I'm answering my own post but apparently using the search touch button would not work to unlock the phone since those keys are disable while the phone is idle (is there a way to circumvent that?). I had to go with the volume down button what I did was this: using root explorer (and mounting as r/w) I went to the location I described earlier (/system/usr/keylayout/) and edited the file s3c-keypad.kl which has this structure:
key 42 VOLUME_UP WAKE
key 58 VOLUME_DOWN WAKE
key 50 HOME WAKE_DROPPED
key 26 POWER WAKE_DROPPED
key 34 BACK WAKE_DROPPED
key 57 DPAD_LEFT WAKE_DROPPED
key 49 DPAD_RIGHT WAKE_DROPPED
key 25 DPAD_UP WAKE_DROPPED
key 41 DPAD_DOWN WAKE_DROPPED
key 33 DPAD_CENTER WAKE_DROPPED
key 10 UNKNOWN WAKE_DROPPED
Click to expand...
Click to collapse
And modified the second line to look like this:
key 58 POWER WAKE_DROPPED
Click to expand...
Click to collapse
Please notice that I simply copied the key name and wake function of the POWER line but the key number was left intact! You can't change the key number!! I hope this helps anyone on a similar situation.
I tried changing the key information using ES File Explorer and I get an error. It only states an error has occurred and cannot be saved. I am using a cappy I bought on ebay and want to assign the power key to the volume up key as the power button does not work. I didn't use root explorer as I want to try a free app. Any ideas?
You have to mount the location for reading and writing (rw). You could also use adb to do it but I'm not well versed on how to do it that way. Can't be dificult tho.
There is an experimental root explorer that can be activated. Turned it on, mounted, and rebooted. Fixed. Thanks!
Sent from my FASTY 2.4 Captivate using Tapatalk.
Although I haven't gotten around to experimental flashing I have messed around a bit with the modified power button. Works fine, but after some time has passed the new button (volume up) does not wake the phone. Has anyone else had this issue?
Sent from my FASTY 2.4 Captivate using Tapatalk.
Related
My power button has been acting weird.(too sensitive.. functions when i just touch it and often brings up power menu)
So i want to swap power button and volume up button.
make power buttons as volume up and volume up button as power button.
/system/usr/keylayout/
i have
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 102 HOME WAKE_DROPPED
key 116 POWER WAKE
in aries-keypad.kl file.
And i'm stuck and kinda afraid to proceed.
Can anyone tell me what to do next?
to make volume up-> power, power-> volume up
readitodie said:
My power button has been acting weird.(too sensitive.. functions when i just touch it and often brings up power menu)
So i want to swap power button and volume up button.
make power buttons as volume up and volume up button as power button.
/system/usr/keylayout/
i have
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 102 HOME WAKE_DROPPED
key 116 POWER WAKE
in aries-keypad.kl file.
And i'm stuck and kinda afraid to proceed.
Can anyone tell me what to do next?
to make volume up-> power, power-> volume up
Click to expand...
Click to collapse
Before you change anything, you might want to see if your rom has the option to use volume key to wake the screen. I know CM7 can do this. But that won't make them swapped. Before you change anything, back it up (or at least know how to fix it). I don't know anything about this, but a logical assumption would be to swap the numbers of the power and volume_up. Just the numbers and leave everything else. Again, just my logical guess, so do this at your own risk
Hi there!
I had the same problem as you, changed the aries fils, and everything works.
I am now trying to improve this a bit, because my phone often come from standby to screen-on (lockscreen), als the volume_up wakes it
(as sugggested by the line).
Removing the WAKE, or replacing it by VIRTUAL does not help.
Did you find a solution?
Cheers,
Cholera
So I'm making it so I can only use the software buttons that I've enabled and so far I've got the capacative buttons disabled but what I want is so that the home button can wake the device but that's it. I don't want it to take the device home, I've been changing values in both sec_key.kl and gpio-keys.kl and so far i've either got it completely disabled, acting as a power button or making it work normally (goes home as well as wake). Any ideas? I'm running SuperNexus ROM.
EDIT:
So I've found what seems to be a solution. In gpio-keys.kl change "key 102 HOME WAKE" to "key 102 SOFT_RIGHT WAKE". Seems to not do anything other than wake the phone.
I flashed CM 10.1 and the button on the headset doesn't work as it should. When i press it, it just presses random Apollo buttons on the screen. Tried PowerAMP but its the same. Any solutions?
Update:
I installed a key test app and here is what it shows when i press the wired headset button:
Keycode: 188
KeyEvent: KeyEvent {action=ACTION_DOWN, keyCode=KEYCODE_BUTTON_1, scanCode=256, metaState=0, flags=0x8, repeatCount=0, eventTime=12043406, downTime=12043406, deviceid=6, source=0x501}
Dunno if it helps. Please help, it's the only thing thats making me return to stock And i don't wanna return to stock
Nvm I fixed it myself:
Open up /system/usr/keylayout/Generic.kl
Find key 226 and 256. 226 is HEADSETHOOK and 256 is BUTTON_1
Just swap them Make 226 BUTTON_1 and 256 HEADSETHOOK.
Reboot phone and you're done.
Jeez....a man has to do everything himself around here....
Well XDA is a developers place. It is normal that you try to fix problems yourself It is also the best way to learn anything
All of my W8 buttons (except the Menu one) went broken due to the first owner's usage (mine is a secondhand one). The power button is still okay with heavy press, but others are unusable. I've tried using tons of proximity screen wake apps to wake my phone in order to not harm my power button but none of them work (the working ones use a lot of battery juice).
So I'm thinking of remapping my Menu button into a Power button. My using ROM is GingerDX. I've try to edit some in the shakira_keypad.kl in the System/Usr/Key Layout, please check it out
This is what I've changed :
from "Key 139 MENU WAKE_DROPPED" to "Key 139 POWER WAKE"
After a reboot, the MENU button did change its function, I can use it to turn my screen off. But when it's off, I can't use it to turn the screen back on.
So what mistakes did I made?
Please give me some advices
Thank You Very Much.
My Galaxy Note 1 's power key cant wake up my phone.
Is it a way to let the volume key wake up my phone?
I have try the following but not work:
open this fileļ¼ /system/usr/keylayout/Generic.kl
change this line:
key 114 VOLUME_DOWN
to:
key 114 VOLUME_DOWN WAKE
Thanks for help.