[MOD]Keyboard backlight toggle
I have tried to use some apps to turn off the backlight permanently but not work for my O3D.
So I tried an odd way to do it.
I tried to forced brightness value to 0 by using
Code:
echo 0 > /sys/class/leds/keyboard-backlight/brightness
chmod 444 /sys/class/leds/keyboard-backlight/brightness
Running this script should permanently kill off your keyboard LED. you can use
Code:
echo 1 > /sys/class/leds/keyboard-backlight/brightness
chmod 444 /sys/class/leds/keyboard-backlight/brightness
to turn on the LED or use:
Code:
chmod 664 /sys/class/leds/keyboard-backlight/brightness
to restore system automatic operation
I have written a simple apk file for u who dont have gscript.
the app just run the script above, you can always run the script on gscript or any terminal emulator you want (needs su)
Bug:
This runs perfect on my O3D now with Acurarom, but it sill have some problem with CM7-SF ROMs. Anybody knows what is the problem here?
For those who found the script useless, you might try to add two lines after turning on/off
Code:
chown 0 /sys/class/leds/keyboard-backlight/brightness
chgrp 0 /sys/class/leds/keyboard-backlight/brightness
and make sure add these two lines before the restore script
Code:
chown 1000 /sys/class/leds/keyboard-backlight/brightness
chgrp 1001 /sys/class/leds/keyboard-backlight/brightness
These two codes may prevent changing the led setting back to "rw" from some other apk with root access