Tom
What I was unable to do:Pulsing unique colorsBlinking through multiple colorsBlinking less than 500ms
There are two primary directories which lend access to the notification LEDs on the face of the phone. One permits you to turn on and off the LEDs, but is extremely inconsistent while the phone is locked and loops seem to break. The other allows you to make real use of the blinking function on the LEDs.Failure:The first is actually a set of three:/sys/class/leds/led_b//sys/class/leds/led_g//sys/class/leds/led_r/Each of these directories has a set of files which are related to the individual R, G, and B LEDs that make the LED Notification light:blinkbrightnessdelay_offdelay_onmax_brightnessueventI didn't have much luck with any of these aside from "brightness" which when echoed a value 0-255 will turn on the LED.I tried and failed to create a functioning loop to turn on and off the LED, because Tasker tended to stall the loop when the phone would lock.Success!However, the second "virtual" directory has given me excellent results:/sys/devices/virtual/sec/led/This directory has the following set of files:led_bled_blinkled_br_levled_gled_lowpowerled_patternled_rueventled_r, led_g, and led_b operate the same as the previously mentioned "brightness" where echoing a value 0-255 will set turn on/off the LED (0 = off, 1-255 = level of brightness).led_pattern, has gotten attention on the XDA thread (http://forum.xda-developers.com/showthread.php?t=1803130) has an assortment of default patterns:0 - Off1 - Solid Red2 - Fast Blinking Red3 - Slow Blinking Blue4 - Slow Blinking Red5 - Blinking Green6 - Solid Blue7 - Pulsing BlueWhat I wanted, however, was access to the blinking LED so I could set up unique colors and speeds for my LED notifications. led_blink is where that information is passed, but it is not so straightforward.I cannot remember where I first found the information which discussed the hex value which you echo to led_blink, but that's what steered me best in the direction which landed me here.echoing 0xff0000 sets the notification LED to solid red. The "ff" represents 100 on a scale from 0 to 100 of brightness. As such, it is assumed the first two numbers of the hex sequence set the brightness for the red, the second two set green, and the final 2 set the brightness value of blue.I tested an assortment of combinations to create colors:0xff8080 - white0xff1500 - orange0x005000 - green0x004515 - turquoise0x000000 - offSome further guessing and I discovered that separating a two more numbers with spaces would yield the time on in milliseconds and time off in milliseconds for the blink:0x005000 500 1000 - green on for half a second off for a full second, repeating.0x004515 1000 5000 - turquoise on for 1 second, off for five seconds, repeating.Basically, I was able to set up contexts for notifications from specific apps to cue the LED to be a specific color by echoing a shell command with Use Root checked.Missed Calls (white flashing)echo 0xff8080 500 500 > /sys/devices/virtual/sec/led/led_blinkReceived SMS (yellow flashing)echo 0x953005 500 500 > /sys/devices/virtual/sec/led/led_blinkTurn off flashing LED after 10:00pm or when device is unlocked or when you clear a notification while the screen is locked:echo 0x000000 0 0 > /sys/devices/virtual/sec/led/led_blink
What I was unable to do:Pulsing unique colorsBlinking through multiple colorsBlinking less than 500ms
I hope this helps someone else out there. I Googled for a long time and couldn't find any better documentation for the Note 2. Can anyone with a rooted SGS3 confirm that these methods work the same?If anyone actually wants to know the profiles/contexts and tasks I used with which methods, ask and I'll put something together.
Tom
Just for the record, it does work on the SGS3 and not just Touchwiz. I've used on Cyanogenmod 10 and 10.1 so far.
echo 0x953005 500 500 > /sys/devices/virtual/sec/led/led_blinkTurn off flashing LED after 10:00pm or when device is unlocked or when you clear a notification while the screen is locked:
echo 0x000000 0 0 > /sys/devices/virtual/sec/led/led_blinkWhat I was unable to do:Pulsing unique colorsBlinking through multiple colorsBlinking less than 500msI hope this helps someone else out there. I Googled for a long time and couldn't find any better documentation for the Note 2. Can anyone with a rooted SGS3 confirm that these methods work the same?