[Q] Disable screen waking up with HOME button - Galaxy S 5 Q&A, Help & Troubleshooting

Hi everyone,
I wanted to disable screen waking up by home button - which causes many random wake ups while I keep phone in my pocket.
key bindings are stored in /system/usr/keylayout directory, but I've found HOME button being mapped in multiple different files:
Generic.kl:key 102 MOVE_HOME
Generic.kl:#key 172 HOME WAKE
Generic.kl:key 249 DUMMY_HOME1
Generic.kl:key 250 DUMMY_HOME2
Generic.kl:key 252 DUMMY_HOME
Vendor_045e_Product_028e.kl:key 316 HOME
....
Vendor_2943_Product_0020.kl:key 172 HOME
atmel_mxt_ts.kl:key 102 HOME
gpio-keys.kl:key 172 HOME WAKE_DROPPED
qwerty.kl:key 102 HOME WAKE
synaptics_rmi4_i2c.kl:key 102 HOME
I already have tried removing WAKE mapping for HOME and WAKE_DROPPED from Generic.kl and gpio-keys.kl, but it didnt help.
Does anyone have any idea how to disable HOME wake up for galaxy S5?

If your on alliance ROM I'm pretty sure you can just simply change a setting in alliance settings.
Sent from my SM-G900F using XDA Free mobile app

Wanam Xposed has an option to do that but not sure if it works. It's in System, scroll all the way down to Buttons. You'll need root for that.

Wanam Xposed Works
iBimmer said:
Wanam Xposed has an option to do that but not sure if it works. It's in System, scroll all the way down to Buttons. You'll need root for that.
Click to expand...
Click to collapse
Excellent suggestion. I can confirm that this works on the S5! What a relief!

Deleted

I use exposed editions, it's brilliant because I can now have my home button to activate power after two quick presses, there are many options for button configuration with it, definitely worth a look

I had this disabled with Wanam, but I'm not up to using xposed under Lollipop now. Anyone found a non-xposed way under Lollipop to disable the home button from unlocking the screen?
proximity sensor hacks like Gravity screen don't *quite* do the trick.
An alternative lock screen might, but I've tried several in the past and not found one I really liked.

Related

[GUIDE] Remap hardware buttons

/edit: this guide is now obsolete because Xposed Additions now has button remapping with some advanced options, which also seem to enable volume wake on my HTC One
If you hate locking and unlocking your HTC One with the Power button, you can change that quite easily int for example Volume Down.
ButtonRemapper would be the easiest method, but it doesn't work with the HTC One. It doesn't load the correct file.
The solution: simply edit the correct file
Code:
keypad_8960.kl
found in
Code:
/system/urs/keylayout/
by hand (I used Fx File Explorer with the paid Root plugin) and reboot your phone. My edited file is attached on this post.
Original:
Code:
key 116 POWER WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 107 ENDCALL WAKE_DROPPED
My current file that switches the Volume Down and Power button:
Code:
key 116 VOLUME_DOWN WAKE
key 114 POWER WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 107 ENDCALL WAKE_DROPPED
I don't know if the same file is used on different ROMs. I tested this on the P.A.C. Man ROM.
Now waking my One is a breeze! :laugh:
P.S. You may need the following workaround to fix the 'volume wake not working' bug present in some (or all?) JB ROMs, which strangely also affects this tweak (symptom: volume down won't wake phone sometimes).
1. Install Xposed Framework (which you should anyway, it's awesome)
2. Install MoDaCo Toolkit
3. Wait for the annoying ad (Paul, tsk, tsk) and enable the option 'HTC One > Enable Volume Wake'
4. Enable MoDaCo Toolkit in Xposed
5. Reboot
6. Profit ^_^
Is there a way to remap volume keys to change song when double clicked or something?
dare2k said:
Is there a way to remap volume keys to change song when double clicked or something?
Click to expand...
Click to collapse
I'm not sure, but when there is, I think it's not done with this or another .kl file but with a 'ROM tweak', like AOKP settings.
But remapping it that way does it mean if you want to lower the volume you press the power button?
Sent from my HTC One using Tapatalk 2
baste07 said:
But remapping it that way does it mean if you want to lower the volume you press the power button?
Sent from my HTC One using Tapatalk 2
Click to expand...
Click to collapse
Correct. I'm currently having the issue that my phone won't always wake using the remapped Power button, or only after 4 seconds holding it. I think it's a conflict with my ROM settings though.
While locking the phone with volume down would be nice, it prevents you from turning the volume down/vibrate/off. Which is pretty important.
Although you could alternatively hit Volume Up and then drag the slider via the touchscreen.
BTW I tried this on TrickDroid 4.2.2 and it works.
Syn Ack said:
While locking the phone with volume down would be nice, it prevents you from turning the volume down/vibrate/off. Which is pretty important.
Although you could alternatively hit Volume Up and then drag the slider via the touchscreen.
Click to expand...
Click to collapse
Actually, the adjustment only swaps the buttons, so the physical Power button acts as Volume Down
I'm still having issues with the adjustment though, has anyone tried it and got it working correctly all the time? I also edited Generic.kl and qwerty.kl, but that didn't help. Pacman ROM 2.9.
Is there any way to use his once you're in the camera . Since we don't have a dedicated camera button it would be great to set up the volume key to take pictures ?
Sent from my HTC One using xda app-developers app
Volume wake bug workaround added to OP.
Problem...
jelbo said:
Volume wake bug workaround added to OP.
Click to expand...
Click to collapse
I have multiple problems guys:
Rooted...double checked if it's rooted (htc one) - then installed Xposed...mods...guess what? it worked for a few hours then all of the sudden...Framework disabled...pushed Install again...and then one of 2 things happen:
1 - phone reboots
2 - Installed and notification for SU....but when restarting my phone the framework it's NOT installed....wtf?!?
Solutions errybody
jelbo said:
Correct. I'm currently having the issue that my phone won't always wake using the remapped Power button, or only after 4 seconds holding it. I think it's a conflict with my ROM settings though.
Click to expand...
Click to collapse
PERMANENT FIX: This problem is caused when the phone enters Deep Sleep mode, the processor stops listening to the .kl files and is pre-programmed to listen on the power button. --On mine, I was completely unable to turn the phone on, I figured out thought that I could turn it on is by holding the power button and the configured volume button at the same time, like a screenshot, hope this helps somebody.-- To permanently fix this download "Wake My Android Pro (free)" from the Play Store, this app is specifically designed to keep your phone in the "Sleep" mode and preventing it from entering the "Deep Sleep" mode. **This does not drain your battery.** Just make sure to set "Low Wake" in the settings, and set the time to 9 seconds and auto-start. Hope this helps some people, those who do not want to fiddle around with Xposed.
dare2k said:
Is there a way to remap volume keys to change song when double clicked or something?
Click to expand...
Click to collapse
This you can do via Tasker. Just create a profile: Event, Variable Set: Volume - Media. This will pick up the volume presses, from there you can restore the volume to what it was (via stored variable) and detect double-presses or gestures between the vol-up and vol-down buttons. I recommend running Javascript to detect that, to be more streamlined. Once detected, use the Media Control action to skip/restart/pause songs in OEM, or if you use Spotify or Pandora, you will have to use a shell "input keyevent 87" Use Root: Yes--87 to skip, swap it with 88 for previous, 85 to play/pause.
rollsrd said:
Is there any way to use his once you're in the camera . Since we don't have a dedicated camera button it would be great to set up the volume key to take pictures ?
Click to expand...
Click to collapse
This can be achieved with Tasker as well. Use a profile "Application," select Camera, and combine with an Event (by long-pressing profile and "Add...") Variable Set: Volume - Ringer. For the action, select Input>Button>Camera. You must be rooted.
If we combine this button swapping idea with Tasker, we can do a lot of cool things guys. An easy way to pick up an easy button gesture with Tasker is with the power button (which always works from sleep, the volume buttons can only be detected when music is playing). I use Tasker to do a certain action when the power button is double-clicked (Display On>Display Off within, say, 1 or 2 seconds).
Hope all was a help, I am new to XDA (*NOT* a noob!) and actually, this is my first post, so a thumbs up or a "thank you" or whatever you guys call it would be great. Thanks! :good:

Disabling home key/wake activation

I was previously able to disable the Home Key for the Wake Activation by editing gpio-keys.kl
After i have upgraded to Kitkat, i can now see in place of WAKE, there is WAKE_DROPPED already in that file, and even if i remove it , i cannot stop the home button wake activation to stop.
The reason i wanted to do this was i use the jelly home button and it with flip cover or slim Armour view, this will keep my phone screen awake if i do not disable the wake function
any one has any idea how this is done in Kitkat.
I am on NB4
swagatsourav said:
I was previously able to disable the Home Key for the Wake Activation by editing gpio-keys.kl
After i have upgraded to Kitkat, i can now see in place of WAKE, there is WAKE_DROPPED already in that file, and even if i remove it , i cannot stop the home button wake activation to stop.
The reason i wanted to do this was i use the jelly home button and it with flip cover or slim Armour view, this will keep my phone screen awake if i do not disable the wake function
any one has any idea how this is done in Kitkat.
I am on NB4
Click to expand...
Click to collapse
are you rooted? if yes, install xposed framework then install wanam xposed..there are option to disable home button wake up in wanam.
jimzmaycry said:
are you rooted? if yes, install xposed framework then install wanam xposed..there are option to disable home button wake up in wanam.
Click to expand...
Click to collapse
thanks for that

Diasabling Hard Key Home Button

I have installed the CleanROM version 2 and included the Enable On-Screen Softkeys option. I would like to disable at minimum the hard key home button without disabling the softkey home button. The hard key home button is especially annoying in s-note or OneNote as I inadvertently activated it by my palm. I've tried to find an Xposed module or a key number/file to mod but haven't had much luck with what I have found in the forums. Can anyone give me a little help in the right direction?

[Q] is it possible to change key functions?

I was wondering if there is a way to change key functions on note 3, for example: by pressing menu key we can see recent apps instead of menu
I would be thankful if anyone can suggest a solution to do this:good::laugh:
arash2901 said:
I was wondering if there is a way to change key functions on note 3, for example: by pressing menu key we can see recent apps instead of menu
I would be thankful if anyone can suggest a solution to do this:good::laugh:
Click to expand...
Click to collapse
There are actually a couple different ways to do it...
You can used Xposed mod, with either Xposed Additions or MenuBeGone
(I've never used either of these methods...)
or, the way that I do it, manually edit the \system\usr\keylayout\Generic.kl file.
When I do it, I make the following two changes:
Change key 139 from MENU to BACK
Change key 158 from BACK to APP_SWITCH
Then I use button savior to add the menu for those things that need it...
(I'm coming from Nexus devices, so having the keys with back on the left, and app switch on the right is how I'm used to it...)
Ever wondered to use Google search ? Just saying.
Sent from my N9005
carnagecjb said:
There are actually a couple different ways to do it...
You can used Xposed mod, with either Xposed Additions or MenuBeGone
(I've never used either of these methods...)
or, the way that I do it, manually edit the \system\usr\keylayout\Generic.kl file.
When I do it, I make the following two changes:
Change key 139 from MENU to BACK
Change key 158 from BACK to APP_SWITCH
Then I use button savior to add the menu for those things that need it...
(I'm coming from Nexus devices, so having the keys with back on the left, and app switch on the right is how I'm used to it...)
Click to expand...
Click to collapse
thanks
that's helpful (kind of!)
I was able to change function of key like starting camera by pressing menu key, but still don't know how to put recent app instead of menu?
--------------------------------------------
[problem solved,found it]
thanks a million man
big help
arash2901 said:
thanks
that's helpful (kind of!)
I was able to change function of key like starting camera by pressing menu key, but still don't know how to put recent app instead of menu?
Click to expand...
Click to collapse
Quick and easy answer:
Change key 139 from MENU to APP_SWITCH

Disable Home button to wake up

[email protected]
Everytime i pull out the note 4 from pocket, the screen is on.
how can i disable the button to wake up the phone?
im rooted, but changes in system/user/keylayout/gpio.keys.kl not working for me.
if i delete the hole line, home button is complete disabled not only for wake up.
wake_dropped wont work for me.
thx in advanced for help
Xposed Additions - xposed module
https://play.google.com/store/apps/details?id=com.spazedog.xposed.additionsgb
I've just tested it and works well
thx for your reply
how to use this module to block home button wake up
buttons - add new key - home - screen off - select both options - click and long press
thx for your help!!! it works
shootermc77 said:
[email protected]
Everytime i pull out the note 4 from pocket, the screen is on.
how can i disable the button to wake up the phone?
im rooted, but changes in system/user/keylayout/gpio.keys.kl not working for me.
if i delete the hole line, home button is complete disabled not only for wake up.
wake_dropped wont work for me.
thx in advanced for help
Click to expand...
Click to collapse
You can install xposed framework then install wanam , and go system > buttons > Enable wake HOME button .
reboot to take effect.
Enjoy =)
Thank you so much I tried everything Wanam and all that stuff nothing works... I'm rebooting now to see if it works well it did and I'm very very very very very very very happy

Categories

Resources