1. You want that $100.00 in your pocket or an Amazon Fire TV don't you? Well here's the deal. With our new updated look we are in desperate need of an updated logo. The 'old' one has certainly served us well, but it's time. Find all the details here: bit.ly/1q0k6Wa
  2. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

For the OCD - Stop the home button from waking the screen (And Save Battery)

Discussion in 'Drod2169 - X' started by ShadowfoxXXX, Mar 13, 2011.

  1. ShadowfoxXXX
    Offline

    ShadowfoxXXX New Member

    Joined:
    Jan 16, 2011
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    0
    I was becoming very agitated because my phone screen was continually turning on in my pocket, wasting battery, because the home button was getting pressed.
    Well no more!

    I'm not hosting this file anymore, It's so easy to do manually there's no point.

    GINGERBREAD
    ____________________________________
    Open /system/usr/keylayout/sholes-keypad.kl
    remove "Wake_Dropped" And/or "Wake" after any entries for:
    HOME
    MENU
    SEARCH
    BACK
    VOLUME UP
    VOLUME DOWN
    _________________________________________

    FROYO
    _________________________________________
    Open /system/usr/keylayout/cdma_shadow-keypad.kl
    remove "Wake_Dropped" And/or "Wake" after any entries for:
    HOME
    MENU
    SEARCH
    BACK
    VOLUME UP
    VOLUME DOWN
    __________________________________________

    Now the only button that wakes the screen is the power button.


    Dont remove anything other than what I've listed above, do not remove wake from you power button, or you may not be able to wake your phone at all (untested)

    You MUST remove wake/wake_dropped from ALL of the entries listed as only removing wake from home causes all the buttons except home to wake the screen.

    PROBLEMS?
    ||
    ||
    \ /
    \/

    Make sure you change permissions as well (Credit to humungus)


    Last edited: May 17, 2011
  2. drod2169
    Offline

    drod2169 Premium Member Premium Member Developer

    Joined:
    Apr 12, 2010
    Messages:
    677
    Likes Received:
    0
    Trophy Points:
    0
    I'll sticky this, this is a nice find. Honestly, I never had this issue when I had an X, so I never thought to implement anything like it. WHENEVER the next rubiX may be, this will be included (hopefully I don't forget it with my crappy memory)
  3. PerCompLLC
    Offline

    PerCompLLC New Member

    Joined:
    Dec 20, 2009
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Northern Virginia
    Nice! Thank you! :)
  4. humungus
    Offline

    humungus New Member

    Joined:
    Aug 8, 2010
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    0
    Beautiful. Thanks.
  5. bishyaler
    Offline

    bishyaler New Member

    Joined:
    Dec 15, 2009
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    0
    I've waited for this fix for so long, especially because it would keep the voice search from activating in my pocket. Problem: I copied the file, rebooted, but the front keys still wake the phone?
  6. humungus
    Offline

    humungus New Member

    Joined:
    Aug 8, 2010
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    0
    Did you change the file's permissions? They need to be RW-R-R. Long press on the file in Root Explorer, go to 'Permissions' and make sure there are only checkmarks for:

    User: Read, Write
    Group: Read
    Others: Read

    Then reboot.

    Also, when I downloaded the file it added an extra .kl to the end of the filename (it was XXX.kl.kl). Make sure you delete 1 of the .kl's.
  7. bishyaler
    Offline

    bishyaler New Member

    Joined:
    Dec 15, 2009
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    0
    That fixed it. Thank you!
  8. mugsy77
    Offline

    mugsy77 New Member

    Joined:
    Oct 17, 2010
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Dallas
    Great find indeed! Thanks!
  9. ShadowfoxXXX
    Offline

    ShadowfoxXXX New Member

    Joined:
    Jan 16, 2011
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    0
    I did not even think about permissions, I will add this this right now.
  10. OnMy2ndGP
    Offline

    OnMy2ndGP New Member

    Joined:
    Sep 27, 2010
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    0
    I thought I'd like this but I didn't realize just how often I actually use the home button to wake up my DX. DRod, if you do remember to add this, please make it an option to enable or disable.

    But now I something else to play with within that file.
  11. ShadowfoxXXX
    Offline

    ShadowfoxXXX New Member

    Joined:
    Jan 16, 2011
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    0
    Its not hard to switch on and off.
    Honestly I've never once used the home button to wake the screen, never made any sense to me at all. Id pull it out of my pocket all the time and the screen would already be on.
    With this hack ive noticed a marginal increase in battery life, but its mostly just to abate my OCD
  12. OnMy2ndGP
    Offline

    OnMy2ndGP New Member

    Joined:
    Sep 27, 2010
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    0
    LOL! I feel ya.
  13. SuperChargedJ
    Offline

    SuperChargedJ New Member

    Joined:
    Feb 15, 2011
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    0
    I tried this hack and it didn't work. I checked to make sure that onlythe right boxes were checked in the permissions and after I rewrote the file, it showed up correctly. When I rebooted the phone it loaded all the way but the screen would stay frozen after the widgets loaded. The power button would not respond. The other buttons didn't do anything as well (which is a good thing, I guess).

    The one thing I think may be the problem is after rewriting the file it showed a "cdma_shadow-keypad.kl.bak" file underneath the "cdma_shadow-keypad.kl". There was not double .kl.

    Any help would be greatly appreciated.
  14. ShadowfoxXXX
    Offline

    ShadowfoxXXX New Member

    Joined:
    Jan 16, 2011
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    0
    The BAK file is automatically created as a backup of the original file by some apps.
    The only thing I can think if is whether you did a battery pull or soft reboot,
    Also try opening permissions and checking ALL the boxes.
    If nothing works restore the BAK to .fl and overwrite the new one to go back to how it was.

  15. SuperChargedJ
    Offline

    SuperChargedJ New Member

    Joined:
    Feb 15, 2011
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    0
    Ok, I got this to work now. I noticed that when used no lock and I disabled the lock I could turn the phone on with the home and other buttons. When the lock was enabled, the menu, home, back and search do not wake up the screen. :)



    Sent from my DROIDX using DroidForums App
  16. ShadowfoxXXX
    Offline

    ShadowfoxXXX New Member

    Joined:
    Jan 16, 2011
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    0
    Ah yes. From what i understand the stock android lockscreen is the only thing keeping all the buttons from waking the phone.
  17. McBain01
    Offline

    McBain01 New Member

    Joined:
    Jun 23, 2010
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    SATX
    i would love to install this as i have been wanting this fix as well. However, i assume im just a little too noobish to figure out how to actually install it. When i click the link, it shows a whole bunch of text code but i cant figure out how to 'copy that file' to my phone to overwrite the other file
  18. ShadowfoxXXX
    Offline

    ShadowfoxXXX New Member

    Joined:
    Jan 16, 2011
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    0
    Right click on the link and choose save file as. Then follow the rest of the instructions.



    Sent from my DROIDX using DroidForums App
  19. McBain01
    Offline

    McBain01 New Member

    Joined:
    Jun 23, 2010
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    SATX
    sweet thanks. I was assuming some kind of copy and paste...i know, i know
  20. jr1421
    Offline

    jr1421 New Member

    Joined:
    Nov 21, 2010
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    Is there any way to get this to work when using No Lock as well? It's nice to disable the hard buttons when using the lock screen slider, but I've been looking for a way to bypass the slider and also disable the hard buttons (so that only pressing the power button can lock/unlock the screen, without actually having to use the slider to unlock). I've tried several apps/widgets and nothing (so far) can do what I'm trying to accomplish. I realize it doesn't take much effort to slide to unlock, but for me it would be more efficient to just use the power button to lock/unlock - and, while No Lock accomplishes this, I find that the front hard buttons activate my screen quite often when in my pocket. Any help would be appreciated.

    EDIT: If anyone is interested, after I posted the above last night, I found an app called AntiLock that basically does what I've been looking for. It has an option to bypass the slide to unlock screen, and disables all of the hard buttons from waking the phone. So far (only about 25 min) it's been working well and has continued to work through a reboot. It does appear to be a little glitchy though, just as a warning (I've noticed the screen flash when hitting the power button to wake, and I've noticed the slide to unlock appear and disappear quickly once). I've been using the app in conjunction with the edited .kl file.
    Last edited: Mar 22, 2011
Search tags for this page

android disable home button unlock

,
disable back button s note
,
disable home button unlock
,
disable home button unlocking android
,
disable unlock by home button in android
,
droid x2 disable button wake
,
galaxy s4 home button wakes my phone
,
galaxy s4 prevent home button from waking phone
,
gingerbread turn off volume wake
,
home screen button keeps getting pressed in pocket can you d
,
how to disable home button droid x2
,
how to disable home button unlock
,
how to disable home button unlock s4
,
stop unlock with home button android
,
unlock the home button on the android