FORUMS

Two New Moto X and New Moto G – Specs & Details

Today’s Moto event just ended and now we have a clear look at all of … more

How Strong Is Your Connection? – XDA Xposed Tuesday

Everyone is always talking about their bars. How many bars of WiFi do they … more

OnePlus 2 Announced: Specs, Price and Details

The OnePlus 2 has just had its Virtual Reality Launch event, and at the XDA Office we all … more

A Helpful Guide to Music Streaming Services

With the launch of Apple Music, music streaming services have recently gained a lot of … more

[MOD]disable Power or Home button screen wake

4 posts
Thanks Meter: 30
 
By brez, Junior Member on 13th December 2011, 04:26 PM
Post Reply Subscribe to Thread Email Thread
This is such a simple (but useful) mod I'm surprised it hasn't been posted.

If like me you only use the home button to wake the screen, and don't want the power button waking the screen whilst in your pocket or when you try to adjust the volume. This is for you.

You need to be rooted and need a file manager that supports root (Root Explorer or Root Browser (LITE version works fine)).

On your phone navigate to system/usr/keylayout
open sec_key.kl in text editor (you can make a backup if you want by adding .bak to the end of the file name and saving - Root Explorer will do this automatically)
delete WAKE from either HOME or POWER (not both!)
save and reboot.
Click image for larger version

Name:	2011-12-13 15.56.17.jpg
Views:	4359
Size:	34.7 KB
ID:	815205
Last edited by brez; 13th December 2011 at 04:33 PM.
The Following 22 Users Say Thank You to brez For This Useful Post: [ View ]
 
 
13th December 2011, 05:01 PM |#2  
ephestione's Avatar
Senior Member
Flag Rome
Thanks Meter: 47
 
More
Was thinking about it myself, so props for the info, even if I don't really mind it turning on with power button as well, but I appreciate the tutorial
13th December 2011, 05:13 PM |#3  
Junior Member
Thanks Meter: 3
 
More
is it possible to totally disable a button?
The Following User Says Thank You to comixster For This Useful Post: [ View ]
14th December 2011, 12:54 PM |#4  
Member
Thanks Meter: 4
 
More
is there any setting to disable "back" button? I find the back button annoying when we are using s-memo, as it oftentimes accidentally activated.
14th December 2011, 06:40 PM |#5  
giokou's Avatar
Senior Member
Flag Athens
Thanks Meter: 76
 
More
Thanks for this awesome little mod, which is veeery handy!!!
17th December 2011, 11:42 PM |#6  
OP Junior Member
Flag warrington
Thanks Meter: 30
 
More
Quote:
Originally Posted by stjoemail

is there any setting to disable "back" button? I find the back button annoying when we are using s-memo, as it oftentimes accidentally activated.

Yes, in system/usr/keylayout
sec_touchkey.kl

I now have my back key set as SEARCH and use LaunchKey (paid version) to remap long press search as back. It works quite well, as search does nothing in most note/drawing apps.

market.android.com/details?id=com.beansoft.launchkey&feature=search_r esult#?t=W251bGwsMSwxLDEsImNvbS5iZWFuc29mdC5sYXVuY 2hrZXkiXQ

Hopefully someone will figure out or develop a better way.
18th December 2011, 03:47 PM |#7  
Member
Thanks Meter: 4
 
More
i saw inside sec_touchkey.kl the parameter Back WAKE, what should I change to make Back button to function as search?

thanks

Quote:
Originally Posted by brez

Yes, in system/usr/keylayout
sec_touchkey.kl

I now have my back key set as SEARCH and use LaunchKey (paid version) to remap long press search as back. It works quite well, as search does nothing in most note/drawing apps.

market.android.com/details?id=com.beansoft.launchkey&feature=search_r esult#?t=W251bGwsMSwxLDEsImNvbS5iZWFuc29mdC5sYXVuY 2hrZXkiXQ

Hopefully someone will figure out or develop a better way.

Last edited by stjoemail; 18th December 2011 at 03:53 PM.
18th December 2011, 03:57 PM |#8  
Senior Member
Thanks Meter: 37
 
More
Thank you for sharing this! Now for the not so bright question: does this mean if I accidentally hit the power button when making a call or playing a game, I won't be able to turn off the screen anymore?

TIA.
18th December 2011, 06:01 PM |#9  
Member
Flag Ottawa
Thanks Meter: 1
 
More
I disabled the wake for power button, it works for a sort press, but long press still wakes.

Any tips? I think this will avoid pocket button presses.

thanks

Edit= never mind, I didn't reboot, works now.

Sent from my GT-N7000 using Tapatalk
Last edited by jsphoto; 18th December 2011 at 07:34 PM.
18th December 2011, 07:20 PM |#10  
Senior Member
Thanks Meter: 6
 
More
it been posted in sg2 thread.
19th December 2011, 04:16 PM |#11  
Member
Thanks Meter: 4
 
More
found the solution, using buttonremapper I switched the menu and back button so no need to buy launchkey. now if i accidentally press the right button during using s-memo, it will not activate the back function but menu function, so can easily cancel without the apps closing.

Quote:
Originally Posted by stjoemail

i saw inside sec_touchkey.kl the parameter Back WAKE, what should I change to make Back button to function as search?

thanks

The Following User Says Thank You to stjoemail For This Useful Post: [ View ]

Read More
Post Reply Subscribe to Thread

Tags
disable, home button, power button, wake
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes