Disable Wake up on Buttons - Galaxy S III Q&A, Help & Troubleshooting

Hey guys,
Can someone tell me which file (in /system/usr/keylayout) I need to edit in order to disable the wake up on certain buttons (like Home button?)
Many of those keylayout-files have enries for a d-pad navigation but no home-button entries... very strange. Any hints?

I'm interested in this information as well. I would love to stop my home button from waking the phone.

Hey there
Seems like I have found a solution to my problem
****You need root access and either Root Explorer or ES File Explorer or any other browser that has an in-built file editor.****
1. Open the following file
/system/usr/keylayout/gpio-keys.kl
In that gpio-keys.kl you will find the following lines
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
key 172 HOME WAKE
2. Delete the 'WAKE' word from the button that you wish should not anymore wake up your phone when pressed.
Example1: You want to disable the Home-Button. Your file should look like this:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
key 172 HOME
3. Reboot phone (or the changes wont take effect)
HINT: Do not delete the 'WAKE' for VOLUME_UP and VOLUME_DOWN or you wont be able to adjust the volume when hearing music while the phone is locked!

Is there any way to stop the Home button from waking up the phone WITHOUT rooting?!? (Too chicken s**t to try rooting, too "technology illiterate!)

Related

KeyCode in Xperia mini

Sorry my bad english and stupid request
I have xperia x10 mini and modding it. I want to make accept/end call in an old phone, by pressing the left or right hard buttons. For actions with pressure of keys answer file /system/usr/keylsyout/robyn_keypad.kl:
key 158 BACK WAKE_DROPPED
key 139 MENU WAKE_DROPPED
key 102 HOME WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 215 FOCUS
key 212 CAMERA
key 107 POWER WAKE_DROPPED
Click to expand...
Click to collapse
It's possibly whether hang on few key actions, depending on situation(for example: if there is call button, it cancels, and other of time brings up menu) or hang on for long/short pressing different things?
P.S. version
key 158 BACK ENDCALL
key 139 MENU CALL
key 102 HOME WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 215 FOCUS
key 212 CAMERA
key 107 POWER WAKE_DROPPED
Click to expand...
Click to collapse
is not working, all hard buttons switching off
I tried assigning multiple triggers to a button but it doesn't work but it doesn't work. You can proove it wrong offcourse
It's bad, but be outstanding idea, I count. On street in frost it's necessary to accept call, it's inconvenient to use sensor in gloves(I from frosty Russia ), and sometimes missed push button of stop call and my collocutor hold off in on line.
Maybe, sending mail to developers of this smartphone?

[Q] camera-hardwarebutton disable

Hello!
My problem is, that i have bought a new car holder for my x10.
Now i have the problem, when i slip in my phone, the hardwarebutton for the camera is permanently pushed.
Does anyone have an applikation, which switches of the hardwarebutton?
Many thanks,
Greetings
- Install ButtonRemapper (root needed)
- open it, click on "focus" in the list and then pick "dpad center" / "none"
if it presses enough to trigger the camera and not just the focus, do the same for camera in the list.
- in ButtonRemapper settings, uncheck "boot monitor" and check "hot reboot".
- click Apply, your phone will reboot after a few seconds.
zorglub08 said:
- Install ButtonRemapper (root needed)
- open it, click on "focus" in the list and then pick "dpad center" / "none"
if it presses enough to trigger the camera and not just the focus, do the same for camera in the list.
- in ButtonRemapper settings, uncheck "boot monitor" and check "hot reboot".
- click Apply, your phone will reboot after a few seconds.
Click to expand...
Click to collapse
Thank you a lot, zorglub08!!
It works perfectly.
By the way, what activates the dpad center?
The d pad center doesn't activate anything in the home, that's why I picked it, in practice in just just disables the button. If you launched an emulator or some app that supports a hardware directional pad, it may do "Enter"/"OK". I didn't try though, on my phone, I didn't find and app that used it.
I was going to PM this to you, but since you made another thread i'll post it here.
To properly disable the camera button, you must edit the es209ra_keypad.kl file. This file controls how the Android OS responds to the hardware buttons.
Use Root Explorer (or any other root file manager app) and navagate to /system/usr/keylayout/ and open the es209ra_keypad.kl file for editing. I am doing this on 2.3.3, so the file may be different depending on your ROM. Either way, it is easy to tell which lines need editing.
Once you have the file open, place a hash (#) in front of the "CAMERA" and "FOCUS" lines as follows:
Code:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 229 MENU
key 59 MENU
key 213 MENU
key 102 HOME WAKE_DROPPED
key 158 BACK
key 107 ENDCALL WAKE_DROPPED
key 62 ENDCALL WAKE_DROPPED
key 231 CALL WAKE_DROPPED
key 61 CALL WAKE_DROPPED
key 116 POWER WAKE
#key 212 CAMERA
#key 215 FOCUS
key 226 HEADSETHOOK
Once you have edited the file, reboot your phone.
This effectivly stops Android from even seeing that the camera button exists, hence, the camera button will do absolutly nothing to the phone. If you change ROMs, you will have to do this again.
Cheers to Pierre Duc who created the thread about stopping the home button from waking the phone, otherwise I wouldn't even know that this file exists.
http://forum.xda-developers.com/showthread.php?t=1117810
Disclaimer: Do at your own risk, I am not responsible if anything goes wrong (which it shouldn't).
- Frosty

Is there a mod to forward music tracks with headphones buttons??

So I was looking for a mod/app that will allow me to use the volume buttons to forward or skip tracks. I like the stock headphones that came with the phone, but also have another pair of Sony headphones that also have button controls.
I downloaded Headset Button Control and that didn't work so well. It kept crashing on me.
Any suggestions??
Thanks!
Just double tap play to skip track
Sent from my SPH-L710 using xda app-developers app
double tap work to skip a song.
on custom roms like wanam, long hold the volume + button skips forward. long hold volume - button skips backwards.
tap to play or pause.
Hi,
On stock rom (XXBLF for me), there's a way to transform the vol up/down on the headset to skip/back tracks (vol buttons on the phone are acting normal). I've done this mod on mine and I'm now really happy
You have to be rooted to do this.
1) Navigate to folder /system/usr/keylayout/
2) Backup the current Generic.kl file (you were going to do that anyway, right? If you weren't, probably best not go any further...)
3) Edit the file Generic.kl using a text editor :
- Comment out the lines for keys 114 and 115 (just put a # at the start of those two lines) thus:
# key 114 VOLUME_DOWN WAKE
# key 115 VOLUME_UP WAKE
- Find the lines for keys 163 and 165, which look like this:
key 163 MEDIA_NEXT WAKE
key 165 MEDIA_PREVIOUS WAKE
- change the numbers from '163' to '115', and from '165' to '114', thus:
key 115 MEDIA_NEXT WAKE
key 114 MEDIA_PREVIOUS WAKE
4) Save and reboot
+1 double tap on LG6
+ forward - back
https://play.google.com/store/apps/details?id=se.jays.headsetcontrol
Use this app its free.. No need for a mod then..

[Q] Eclipse 2.3 DX2- prevent Home key from waking phone

I have found many examples of modding the the key file in System\Usr\Keylayout to remove the wake option from key 102, but in eclipse 2.3, there are 6 .kl and 4 of them have key 102 mapped to wake in them. I am unsure if I need to remove wake from key 102 in all or some of them.
Len
Lenster45 said:
I have found many examples of modding the the key file in System\Usr\Keylayout to remove the wake option from key 102, but in eclipse 2.3, there are 6 .kl and 4 of them have key 102 mapped to wake in them. I am unsure if I need to remove wake from key 102 in all or some of them.
Len
Click to expand...
Click to collapse
OK after trial and error, removing the word WAKE after the 102 key entry in System/USR/Keylayout/Tegra_kbc.kl file prevents the home button from waking the phone. So now it a lot harder to accidentally turn on the the screen while its in my pocket.
Len

To Disable volume up/down buttons

Posting this because it took me a while to get it done. Why do it? Because the placement of the physical buttons straight-across each other on opposite side of the phone makes it awkward and annoying to use the power/wake button without also hitting/squeezing the vol up/down button. And because volume can be adjusted otherwise using touchscreen in Settings.
Root phone. Install root-enabled file manager app (I use Total Commander, various others work, too.) Go to /system/usr/keylayout/gpio-keys.kl
Mount read/write, open file in editor, etc
Comment-out the two lines:
key 115 VOLUME_UP
key 116 VOLUME_DOWN
...so they look like this:
#key 115 VOLUME_UP
#key 116 VOLUME_DOWN
Save file. Reboot. Volume button basic functions are deactivated.

Categories

Resources