5,600,182 Members 38,733 Now Online
XDA Developers Android and Mobile Development Forum

Remapping power button

Tip us?
 
Drisc0
Old
#1  
Junior Member - OP
Thanks Meter 3
Posts: 18
Join Date: Aug 2011
Default Remapping power button

I've got an issue with my power button that causes the power button to be super sensitive and occasionally get stuck so that the phone constantly reboots. I want to remap the power function to my volume up button to keep this from happening. I've done some research and everything I've seen tells me to edit open /system/usr/keylayout/gpio-keys.kl but this file does not exist on my phone. I'm running Paranoid Android with android 4.2.2.

In the /system/usr/keylayout folder I have these files instead.

Code:
AVRCP.kp
cyttsp-i2c.kl
fsa9485.kl
Generic.kl
keypad_8960.kl
msm8960-snd-card_Button_Jack.kl
qwerty.kl
sec_key.kl
sec_keys.kl
sec_powerkey.kl
sec_touchkey.kl
sii9234_rcp.kl
and a bunch of kl files that are named Vendor_045e_Product_(somenumber).kl
Which file do I need to edit to fix this problem? Any help is much appreciated, my phone is almost unusable in its current state.
 
polobunny
Old
#2  
polobunny's Avatar
Senior Member
Thanks Meter 2126
Posts: 5,464
Join Date: Oct 2011
Location: Montreal
Quote:
Originally Posted by Drisc0 View Post
I've got an issue with my power button that causes the power button to be super sensitive and occasionally get stuck so that the phone constantly reboots. I want to remap the power function to my volume up button to keep this from happening. I've done some research and everything I've seen tells me to edit open /system/usr/keylayout/gpio-keys.kl but this file does not exist on my phone. I'm running Paranoid Android with android 4.2.2.

In the /system/usr/keylayout folder I have these files instead.

Code:
AVRCP.kp
cyttsp-i2c.kl
fsa9485.kl
Generic.kl
keypad_8960.kl
msm8960-snd-card_Button_Jack.kl
qwerty.kl
sec_key.kl
sec_keys.kl
sec_powerkey.kl
sec_touchkey.kl
sii9234_rcp.kl
and a bunch of kl files that are named Vendor_045e_Product_(somenumber).kl
Which file do I need to edit to fix this problem? Any help is much appreciated, my phone is almost unusable in its current state.
From memory it's sec-keys.kl. Might be sec-key.kl though, one or the other is what I used to edit back when CM didn't have disable wake from home key.
Please press THANKS if someone helps you!

My current configuration:
 

Device: Samsung Galaxy S3 SGH-i747M
ROM: cm-11-20140413-NIGHTLY-d2lte
Kernel: Stock
Baseband: I747MVLUEMF1
Bootloader: I747MVLDMF1
Governor: Interactive


Older device: Nexus S i9020A
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes