I had been using an app called keylights to flash the black-light on my hardware keys when I had missed calls or texts. More info about that app here: KeyLights 0.2 - Capacitive Lights As Notification - Updated June 3, 2010. Here is a modified version I made with more options: KeylightsOV_signed.apk
Unfortunately, that app refuses to install on some of the roms. Also, the app would only notify you of texts but not missed calls, missed voip calls, GV messages, Gtalk messages...etc.
So I did some digging and figured out how to toggle the backlight myself. The attached script will turn the lights on for a split second second and then turn them off. If you open the script, you'll see that there really is nothing hard about implementing this. Combine this with Tasker and disabling the lights when you press the hardware keys, and you have yourself a dedicated notification light.
Here is how to set this up to work on your phone with Tasker:
As is, this will flash the button backlight LED's if you get a missed call, text, GV message, Gtalk message, or Groove IP missed call. If you want other notifications to trigger the lights, in Tasker hit New -> Event -> UI -> Notification -> Owner Application -> and select the app who's notifications you want to trigger the lights. When the Task Selection Menu pops up, select Togglekeylights.
If you want to change the interval of flashing, edit the task of the Keylights profile. Change all the wait values. That profile is setup in that way to minimize the number of loops Tasker has to do.
This mod stops the blacklight from turning on when you press the key. If you just want to do the same on your own without Tasker, run the following through adb shell or a script with root privileges:
To reverse it:
or just reboot. You'll need to run the disable command after every boot if you want the backlight to not turn on with a press of the keys. With the backlight disabled, you will still be able to flash it using the script provided. You are merely locking out the system from turning on the backlight. To implement this using tasker, delete all of the Tasker profiles except "Boot".
If you do want your key backlight to function when you press the keys with this mod, delete the "Boot" profile, and reboot your phone.
Also, I did this:
http://forum.androidcentral.com/opt...ng-external-notification-light-optimus-v.html
I think I voided my warranty
With the flashing led script, disabling the led with key presses, and finally adding an external spot for the led, you'll have a fully functional and dedicated notification led.
Bonus:
After downloading the Keylights rar, replace the keylights.sh script with one of these for different flashing goodness. The built in keylights.sh is a single quick flash.
Single slow flash
Double quick flash
Double slow flash
Triple quick flash
Special flash
Flashdance
You could even create different flashing types for different notifications but it is up to you to figure that out.
Unfortunately, that app refuses to install on some of the roms. Also, the app would only notify you of texts but not missed calls, missed voip calls, GV messages, Gtalk messages...etc.
So I did some digging and figured out how to toggle the backlight myself. The attached script will turn the lights on for a split second second and then turn them off. If you open the script, you'll see that there really is nothing hard about implementing this. Combine this with Tasker and disabling the lights when you press the hardware keys, and you have yourself a dedicated notification light.
Here is how to set this up to work on your phone with Tasker:
- Install tasker
- Install sl4a
- Download the Keylights.rar and extract it.
- Place userbackup.xml in /sdcard/tasker
- Place sush into /system/bin and change the permissions to "rwxr-xr-x"
Code:adb remount adb push sush /system/bin/ adb shell chmod 755 /system/bin/sush
- Place the four script files into /sdcard/sl4a/scripts
- Open tasker, hit the menu, profile data, restore
- Press apply to exit Tasker, and Go to Settings>Accessibility> Enable Accessibility for Tasker
- Reboot!
As is, this will flash the button backlight LED's if you get a missed call, text, GV message, Gtalk message, or Groove IP missed call. If you want other notifications to trigger the lights, in Tasker hit New -> Event -> UI -> Notification -> Owner Application -> and select the app who's notifications you want to trigger the lights. When the Task Selection Menu pops up, select Togglekeylights.
If you want to change the interval of flashing, edit the task of the Keylights profile. Change all the wait values. That profile is setup in that way to minimize the number of loops Tasker has to do.
This mod stops the blacklight from turning on when you press the key. If you just want to do the same on your own without Tasker, run the following through adb shell or a script with root privileges:
Code:
chmod 0333 /sys/class/leds/button-backlight/brightness
echo 0 > /sys/class/leds/button-backlight/brightness
Code:
chmod 0647 /sys/class/leds/button-backlight/brightness
If you do want your key backlight to function when you press the keys with this mod, delete the "Boot" profile, and reboot your phone.
Also, I did this:
http://forum.androidcentral.com/opt...ng-external-notification-light-optimus-v.html
I think I voided my warranty
With the flashing led script, disabling the led with key presses, and finally adding an external spot for the led, you'll have a fully functional and dedicated notification led.
Bonus:
After downloading the Keylights rar, replace the keylights.sh script with one of these for different flashing goodness. The built in keylights.sh is a single quick flash.
Single slow flash
Double quick flash
Double slow flash
Triple quick flash
Special flash
Flashdance
You could even create different flashing types for different notifications but it is up to you to figure that out.
Last edited: