Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Remap power button

OP Zwingling

7th May 2014, 02:43 AM   |  #1  
OP Junior Member
Thanks Meter: 0
 
5 posts
Join Date:Joined: May 2014
I just managed to remap my broken power button to my volume up button, so I am able to lock/unlock the screen. The problem is that it's still not possible to turn on the phone with the volumen button (shutdown/run out of battery). I changed the gpio-keys.kl and Generic.kl file for remapping. Anyone has a solution to replace the power button.
7th May 2014, 03:46 AM   |  #2  
LS.xD's Avatar
Senior Member
Lübeck
Thanks Meter: 586
 
1,855 posts
Join Date:Joined: Nov 2013
Donate to Me
More
Unhappy
Quote:
Originally Posted by Zwingling

I just managed to remap my broken power button to my volume up button, so I am able to lock/unlock the screen. The problem is that it's still not possible to turn on the phone with the volumen button (shutdown/run out of battery). I changed the gpio-keys.kl and Generic.kl file for remapping. Anyone has a solution to replace the power button.


I really suppose it's not possible without changing the hardware or at least modifying the Bootloader.
7th May 2014, 12:34 PM   |  #3  
OP Junior Member
Thanks Meter: 0
 
5 posts
Join Date:Joined: May 2014
Quote:
Originally Posted by LS.xD

I really suppose it's not possible without changing the hardware or at least modifying the Bootloader.

Another possible way is to invoke the charging screen. For example some Samsung devices use /system/bin/playlpm to display the splashscreen. SO if you change this script to:

PHP Code:
[CODE]#!/system/bin/sh
/system/bin/reboot 
[/CODE]

It would actually reboot.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes