Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
brez
Old
(Last edited by brez; 13th December 2011 at 04:33 PM.)
#1  
Junior Member - OP
Thanks Meter 26
Posts: 4
Join Date: Dec 2011
Location: warrington
Post [MOD]disable Power or Home button screen wake

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:	2347
Size:	34.7 KB
ID:	815205
The Following 21 Users Say Thank You to brez For This Useful Post: [ Click to Expand ]
 
ephestione
Old
#2  
ephestione's Avatar
Senior Member
Thanks Meter 34
Posts: 1,982
Join Date: Mar 2008
Location: Rome
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
Samsung GALAXY Note GT-N7000
My favourite skateboard

Ephestione's HQ: my hobby
Studio MS: my profession
reecycle.it: oggetti in regalo, riciclo e freecycling

DONATE... not money!! 250MB are ok you won't spend a penny, and instead get 2.25GB for yourself
 
comixster
Old
#3  
Junior Member
Thanks Meter 3
Posts: 17
Join Date: Jun 2009
is it possible to totally disable a button?
The Following User Says Thank You to comixster For This Useful Post: [ Click to Expand ]
 
stjoemail
Old
#4  
Member
Thanks Meter 1
Posts: 40
Join Date: May 2006
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.
 
giokou
Old
#5  
giokou's Avatar
Senior Member
Thanks Meter 36
Posts: 383
Join Date: May 2009
Location: Athens
Thanks for this awesome little mod, which is veeery handy!!!
 
brez
Old
#6  
Junior Member - OP
Thanks Meter 26
Posts: 4
Join Date: Dec 2011
Location: warrington
Quote:
Originally Posted by stjoemail View Post
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.
 
stjoemail
Old
(Last edited by stjoemail; 18th December 2011 at 03:53 PM.)
#7  
Member
Thanks Meter 1
Posts: 40
Join Date: May 2006
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 View Post
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.
 
holgalee
Old
#8  
Senior Member
Thanks Meter 36
Posts: 404
Join Date: Dec 2010
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.
 
jsphoto
Old
(Last edited by jsphoto; 18th December 2011 at 07:34 PM.)
#9  
Junior Member
Thanks Meter 0
Posts: 28
Join Date: Nov 2010
Location: Ottawa
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
 
.hide
Old
#10  
Senior Member
Thanks Meter 6
Posts: 434
Join Date: Feb 2010
it been posted in sg2 thread.
HTC HD2

Rom:HyperDroid-CM7

Kernal: TYTUNG

Samsung Galaxy S9100

Rom :CheckRom

Kernal: Siyah

Samsung Galaxy Note

Rom:CriskeloRomNOTE

Kernal:SpeedMoD

-A Spanish Born Chinese-

 
Post Reply+
Tags
disable, home button, power button, wake
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...