[MOD][GUIDE]disable backlight and touch of HW button

Search This thread

moddroid

Senior Member
Apr 20, 2012
154
94
30
alessandria
www.moddroid.altervista.org
hi,
this little guide explain how to disable completely ( brightness and touch) of hardware buttons.

PRE-REQUISITES:
-ROOT
-file manager with root permission
-terminal emulator

HOW TO:

-DISABLE SOFT KEYS

-with file manager open
/system/build.prop
and add this line at the end of file
Code:
 qemu.hw.mainkeys=0
(when you want to restore change 0 to 1)

-create a copy of
/system/usr/keylayout/touch_dev.kl
on you sdcard (for restore)

-with your file manager open
/system/usr/keylayout/touch_dev.kl
go to the end of file and under:
Code:
#x3 synaptics touch
delete the line incoming with:
Code:
key158
key139
key102
and save the file!

!!WARNING!! this disable the keys!

- DISABLE SOFT KEYS BACKLIGHT

-on terminal emulator with root permission insert this code:
Code:
echo 0  >/sys/devices/platform/button-backlight/leds/button-backlight/brightness
and
Code:
echo 0  >/sys/devices/platform/button-backlight/leds/button-backlight/max_brightness
-YOU ARE DONE!!

sometimes the brightness are restored but you can do a script to do this 2 lines of code at startup with Rom toolbox ;)

if i help you click thanks ;))

Inviato dal mio LG-P880 usando XDA Premium HD app
 
Last edited:

FunkyRasta

Senior Member
Feb 4, 2013
615
302
Kraków
IMO it has no sense for me :D navbar just takes screen space and our touch buttons are just perfect.

Sent from my LG-P880 using xda app-developers app
 
  • Like
Reactions: cickvoa

@non4

Senior Member
Jun 11, 2012
3,967
839
Gothicus
IMO it has no sense for me :D navbar just takes screen space and our touch buttons are just perfect.

Sent from my LG-P880 using xda app-developers app

One use would be for gaming, as it eliminates kicking yourself to home screen with the buttons and getting disconnected. I do this often when I try to throw a grenade on mc4 :mad: software buttons and adequate warnings should indeed be added to this guide, but thanks! ;)

Sent from my rooted P880
 

baxtex

Senior Member
Oct 16, 2011
1,107
116
Can't seem to do this, no permission to edit in the build prop file, can't change permission either :s
 
Last edited:

abhi08638

Senior Member
Jul 11, 2012
2,165
4,388
Can't seem to do this, no permission to edit in the build prop file, can't change permission either :s

What file manager are you using and if check if the the file manager has permission to read and write to /system partition

Sent from my LG-P880 using xda app-developers app
 

baxtex

Senior Member
Oct 16, 2011
1,107
116
Not sure about that one
1.try es file explorer and report back
Or
2. If you're on kitkat you might need to switch to supersu and not superuser

Sent from my LG-P880 using xda app-developers app

Tried es, same thing. Im on KK but Superuser is built in.. Downloaded Supersu but it can't update.
 

gingerboy92

Senior Member
May 7, 2011
747
193
Xiaomi Mi 11 Lite 4G
Xiaomi 12
try this. didn't made this, just found an xda thread with all the files, so downloded it and modded it to work on our phones. just changed the files list inside the script, didn't do much. the bad news is, i only changed the file to enable virtual keys and disable capacitive keys, didn't changed the files to do the opposite. :p try it.



http://xdaforums.com/showthread.php?p=31552585#post31552585
 

Attachments

  • Enable-O4X-SoftKeys-1.4.zip
    173.1 KB · Views: 98
  • Disable-O4X-SoftKeys-1.4.zip
    125.4 KB · Views: 84
Last edited:
  • Like
Reactions: Dowper

khan.cross

New member
Nov 16, 2017
4
3
- DISABLE SOFT KEYS BACKLIGHT

-on terminal emulator with root permission insert this code:
Code:
echo 0 >/sys/devices/platform/button-backlight/leds/button-backlight/brightness
and
Code:
echo 0 >/sys/devices/platform/button-backlight/leds/button-backlight/max_brightness
-YOU ARE DONE!!


Can you explain that more detailed? What does it mean 'on terminal emulator'?
In which file do I need to insert the above code?

I just want to turn of the lights of the softkeys, to save battery. Thanks
 

Dowper

Member
Dec 2, 2012
26
5
Sevlievo
try this. didn't made this, just found an xda thread with all the files, so downloded it and modded it to work on our phones. just changed the files list inside the script, didn't do much. the bad news is, i only changed the file to enable virtual keys and disable capacitive keys, didn't changed the files to do the opposite. :p try it.



http://xdaforums.com/showthread.php?p=31552585#post31552585

Thank you very much, this really helped me. But it will be perfect if the backlight of the touch buttons was turned off and also the vibration of the virtual buttons was turned off. But anyway, thank you again. :good:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    hi,
    this little guide explain how to disable completely ( brightness and touch) of hardware buttons.

    PRE-REQUISITES:
    -ROOT
    -file manager with root permission
    -terminal emulator

    HOW TO:

    -DISABLE SOFT KEYS

    -with file manager open
    /system/build.prop
    and add this line at the end of file
    Code:
     qemu.hw.mainkeys=0
    (when you want to restore change 0 to 1)

    -create a copy of
    /system/usr/keylayout/touch_dev.kl
    on you sdcard (for restore)

    -with your file manager open
    /system/usr/keylayout/touch_dev.kl
    go to the end of file and under:
    Code:
    #x3 synaptics touch
    delete the line incoming with:
    Code:
    key158
    key139
    key102
    and save the file!

    !!WARNING!! this disable the keys!

    - DISABLE SOFT KEYS BACKLIGHT

    -on terminal emulator with root permission insert this code:
    Code:
    echo 0  >/sys/devices/platform/button-backlight/leds/button-backlight/brightness
    and
    Code:
    echo 0  >/sys/devices/platform/button-backlight/leds/button-backlight/max_brightness
    -YOU ARE DONE!!

    sometimes the brightness are restored but you can do a script to do this 2 lines of code at startup with Rom toolbox ;)

    if i help you click thanks ;))

    Inviato dal mio LG-P880 usando XDA Premium HD app
    3
    just a suggestion, you should add a line to build.prop that enables the virtual buttons then ;)

    'cause if people do this without having a "backup plan", they can be doomed ;)
    2
    you can do this on MIUI without any mod/3rd party tools. i don't know why such options is not available CM/AOSP based roms.
    1
    IMO it has no sense for me :D navbar just takes screen space and our touch buttons are just perfect.

    Sent from my LG-P880 using xda app-developers app
    1
    if u go another step u can use xposed framework module for remap this three buttons for what u want:p