[Q] Power button is dead - Galaxy Ace II Q&A, Help & Troubleshooting

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?

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.

Related

[Q] aDosBox on G2 (Vision/VirtuousROM)

Having some troubles with the keymapping on the G2 (Vision) when running Virtuous 0.70 - can anyone test on the stock ROM and verify if they are able to complete key presses to the correctly mapped keys?
There is no way that I am able to find a way to press the ":" key ... this makes it impossible to access "D:" after mounting it.
When pressing ALT + .) I get a forward slash
When pressing ALT + L(/) I get a back slash
When pressing ALT + H(*) I get nothing
When pressing ALT + ,( I get a comma
It looks like most of the other keys work - however it is impossible to change drive letters without a working ":" key and the current keypress to perform ":" yields a /
Any work-a-rounds?
Thanks!

[Q] Volume rocker to wake up screen??

Hey, how to make a volume rocker to wake up screen in any ics/jb based rom.
I have used robotomod and Cyanogenmod 10 builds by benjamingwynn .. both doesn't provide this feature. My power button is not working properly. I have been using Hensemod. It had that feature.
I learnt from some thread that removal of below lines from marvel-keypad.kl and qwerty.kl can help.
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
But i did this and zip it again and tried to install, the installation aborted.
I want a solution. Please help me :crying::crying:
sorry, there is a option in settings>display> set volume rocker to wake screen
as far as i know...cm10 has that service
abinesh_rocks said:
Hey, how to make a volume rocker to wake up screen in any ics/jb based rom.
I have used robotomod and Cyanogenmod 10 builds by benjamingwynn .. both doesn't provide this feature. My power button is not working properly. I have been using Hensemod. It had that feature.
I learnt from some thread that removal of below lines from marvel-keypad.kl and qwerty.kl can help.
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
But i did this and zip it again and tried to install, the installation aborted.
I want a solution. Please help me :crying::crying:
sorry, there is a option in settings>display> set volume rocker to wake screen
Click to expand...
Click to collapse
as far as i know...cm10 has that service

Ans for how to remap menu &home key

Tutorial in changing menu key to home key and recent app functionality on long press
Applies for all Samsung galaxy s and note s
1.First install solid explorer v1.4.3a only in this v u can edit system file only in rooted d
2.Then go to system/usr/keylayout/gpio-keys.kl .. In this change key function
Key 172 HOME to > key 172 MENU
3.Then go to system/use/key layout/sec_touchkey.kl...In this change keyfunction
Key 139 MENU to > key 139 HOME
..Then reboot now u find the menu and home key functions are interchanged u can do this in any ROM or in stock ROM
I tried a day and found it thanks

[Guide/Mod] Disable Power Button in Jellybean 4.1.2

Disable Power Button Mod
The flashable mod will ONLY work on the E4GT JB 4.1.2 build please do not use this mod on any other build or phone.
Due to the high failure rate of the power button on our older phones, this is a hardware key mod that will disable the power button on our E4GT phones in JB. This only cuts back on the random power button presses of a failing button while the JB rom is booted. I don't think it disables the long press of the power button to do a soft reset as this is not a ROM feature but a hardware feature built into the phone.
Flash this mod in recovery mode.
Please make certain you have a current backup already saved to your phone.
I will not be responsible if your rom does not boot or has any other issues.
___________________________
Brief guide:
For our builds this is a simple edit of two files.
system/usr/keylayout/Generic.kl
system/usr/keylayout/gpio-keys.kl
Place a comment code (#) in front of any line that is still active with the keyword POWER
Example gpio-keys.kl edit
Before:
Code:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
[COLOR="Blue"]key 116 POWER WAKE[/COLOR]
key 172 HOME WAKE
After:
Code:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
[COLOR="Red"]# key 116 POWER WAKE[/COLOR]
key 172 HOME WAKE
Note: This principle should work on other phones & builds but your key files may be slightly different. If you successfully edit your phone & build, please share your experience here with others.

menu to app switch and long press menu button remapping?

system/usr/keylayout/generic.kl file
key 139 MENU
replace with: key 139 APP_SWITCH
in this way opens the recent apps menu button. but I want you to open the menu long pressed the menu key. What can I do for it?
I've tried it, the keys did not work:
key 139 APP_SWITCH
key 139 MENU WAKE

Categories

Resources