Capacitive Button Dimming

twelfth

Well-known member
May 21, 2012
172
22
18
This one's pretty simple. I found the buttons to be a bit painfully bright at night and wanted to see if I could make them dimmer.

ADB or ConnectBot shell with the root prompt (aka the # after typing su)

echo 2 > /sys/devices/platform/leds-pm8058/leds/button-backlight/currents

1 just turns the button lights off. Higher than 2 is brighter.

Unfortunately, not permanent (resets on reboot) and to make it so requires modifying boot.img (too dangerous)

An easier way to do this is to save it to a file called leddim.sh and copy it to /sdcard

And to install this app: https://forums.androidcentral.com/e...ails?id=os.tools.scriptmanager&token=Z1G_eC4o

You can use ScriptManager to run leddim.sh as root and to execute the script on boot.

If you'd prefer not to have it autorun on boot, you can install this app and be able to run the script as a widget: https://forums.androidcentral.com/e.../details?id=os.tools.smwidgets&token=wzWy9YuD

Running it as a widget allows you to have two separate scripts so you can toggle between a brighter and dimmer state depending on time of day or indoor/outdoor setting, if desired.

(ScriptME is a far, far simpler program that'll let you run an SH script from SDCard, but it doesn't save any settings nor does it allow any scripts to be set up as a widget. https://forums.androidcentral.com/e...etails?id=com.gilsken.scriptme&token=P0GISLfx )

(Source for dimming tip, though its how-to for modifying boot.img is based on the Gingerbread version of the Evo 3D: Pocketables – Dim the lights on your rooted HTC EVO 3D's capacitive buttons )
 

Latest posts

Trending Posts

Members online

Forum statistics

Threads
956,490
Messages
6,968,526
Members
3,163,553
Latest member
IamHg