[Q] Power button is dead

Search This thread

GabberPL

New member
Mar 22, 2014
2
0
Hi!

I `ve got a problem - power button in my ACE2 is down. It`s most likely hardware problem. So that, I want to use the warranty.

But I cannot, due to custom ROM inside.

So that`s where my question come from - how can I install stock ROM on my device? So far, I can`t use ODIN - because I can`t enter DOWNLOAD MODE (no power button = no power menu = no key`s combination)
I see two options:
- an app that go`es to download mode from the interface - any help would do, I cannot find anything in the G.Play
- changing hard keys mapping (f.e. vol up could replace power) - is that possible at all?
I`ve already learned, that hard keys mapping location is in:
/system/usr/keylayout/Generic.kl
and mapping looks like this:
key 142 POWER WAKE
key 143 POWER WAKE
key 152 POWER WAKE
key 115 VOLUME_UP
So what can I do to replace this two keys?
 

GabberPL

New member
Mar 22, 2014
2
0
Problem solved:

File changed:

system/usr/keylayout/gpio-keys.kl

Mapping:

key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
key 172 HOME WAKE_DROPPED

Replacing VOLUME_UP with POWER works just fine.