• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help Hardware Keys Backlight

I was just wondering of there is anyway to manually turn off the back light for hardware keys in cm 10.1. Thanks ahead of time for any assistance. :)

Sent from my VS920 4G using Xparent Green Tapatalk 2
 
I was just wondering of there is anyway to manually turn off the back light for hardware keys in cm 10.1. Thanks ahead of time for any assistance. :)

Sent from my VS920 4G using Xparent Green Tapatalk 2

This method works fine with a couple fixes...

http://forum.xda-developers.com/showthread.php?t=2205998

Summary and fixes:
Connect with adb to you phone (you could do this through a local terminal as well)
adb shell
echo 0 > /sys/class/leds/button-backlight/max_brightness
chmod 755 /sys/class/leds/button-backlight/max_brightness

It says to reboot on the linked page, but it begins working immediately.

If you want to disable the buttons completely? You'll have to edit the keymaps either manually or using a app.
 
Thank you. That's exactly what I was looking for. Just wanted the LEDs off. They are blinding at night and unneeded.

Sent from my VS920 4G using Xparent Green Tapatalk 2
 
Thank you. That's exactly what I was looking for. Just wanted the LEDs off. They are blinding at night and unneeded.

Sent from my VS920 4G using Xparent Green Tapatalk 2

No problem. I just rebooted though and the change didn't persist. May need to make an init script to effect the changes on boot.

Alright, so here's what I've got... and I'm hitting a bit of a snag. Maybe someone can offer some insight.

In /system/etc/init.d/S99Button_Backlight_Disable (permissions 777) I have:

#!/system/bin/sh
echo 0 > /sys/class/leds/button-backlight/max_brightness
chmod 755 /sys/class/leds/button-backlight/max_brightness


This doesn't work during boot like I would expect that it should.

However, running this file from script manager manually disables my button backlight. Would S99 not be the right runlevel to try running this at? I figured trying to run it last would be the best bet so that if something else was setting the max brightness beforehand, I could overwrite it.

Any Ideas?

*edit*

Alright, So I figured it out... I didn't have init.d support enabled, usually I do. Apparently, it isn't enabled in the PACman Rom by default. The setup above works fine to persist the lights once init.d support is enabled. Most custom kernels/roms have this enabled already. *shrug* You can use an app like PimpMyRom to enable init.d or any of the other methods out there.

Either way, creating that file with those contents works.

Sent from my VS920 4G using Tapatalk 2
 
I went ahead and made this a flashable zip that should work to add the script to disable the buttons backlights to init.d (so that you can add it easily after flashing new roms).


I didn't test this zip, but I don't see why it shouldn't work... It's configured to /dev/block/mmcblk0p26 to be system. VS920 on VZW. Not sure if it's the same for other carries as I saw that on the quatrimus roms some were p27.

Anyway. Good luck, enjoy!

*edit*
Finally updated my rom, so I had a use for this zip. worked fine. Just keep in mind that this does not enable init.d and wont do anything until it is.
 

Attachments

DaDevsMikes,

Since you just liked this today... There's a problem I found in that zip. I dont have it setting the permissions on that script correctly.

You'll need to chmod 744 on that file in /system/etc/init.d after the zip installs it... otherwise, it won't work.
 
Back
Top Bottom