The LED's are located here:
/sys/class/leds/Prerequisites, you will need your phone rooted and will need a terminal to work. I recommend using the Android SDK to connect to the phone so you can type on a full size keyboard.
To turn the trackball LED on and off simply do the following:
on:To disable the led do the following:
echo 1 > /sys/class/leds/vtkey-backlight/brightness
off:
echo 0 > /sys/class/leds/vtkey-backlight/brightness
echo 0 > /sys/class/leds/vtkey-backlight/brightnessThis removes write privileges to the LED, effectively locking it in an off state. To undo:
chmod -w /sys/class/leds/vtkey-backlight/brightness
chmod +w /sys/class/leds/vtkey-backlight/brightnessCurrently this effect seems to be undone with a reboot of the phone. I'll look into making it permanent eventually.
0 comments:
Post a Comment