Illumination bar notification OR led notification

93 views
Skip to first unread message

mmh...@gmail.com

unread,
Apr 7, 2015, 11:10:16 AM4/7/15
to automa...@googlegroups.com
Hi,

First of all, I loooooove ur app. I am a user of Sony xperia sp which uses led notification (ie. on missed call alert, message alert etc) by default. As I am using a custom rom I  need to active this feature with "Illumination bar notification" app from play store. I tried to implement this feature in Automate app with "Notification show" and "Attention light" but with no luck. It doesn't lit the led stipe. Is there a way to achieve this in particular? 

Thanks.

Regards.

Automate developer

unread,
Apr 7, 2015, 1:56:28 PM4/7/15
to automa...@googlegroups.com, mmh...@gmail.com
The Xperia illumination bar must use some proprietary API.
I'll see if i can find out how to use it, if successful i could add an extra field to the Attention light block.

Automate developer

unread,
Apr 7, 2015, 2:45:21 PM4/7/15
to automa...@googlegroups.com, mmh...@gmail.com
I've looked into how the "Illumination bar notification" does it. It can be done with the Shell command superuser block.
I don't have an Xperia device, so the following is untested!

Xperia P
[brightness]: 0-255
echo [brightness] > /sys/class/leds/so34-led0/brightness
echo
[brightness] > /sys/class/leds/so34-led1/brightness
echo [
brightness] > /sys/class/leds/so34-led2/brightness

Xperia S
[brightness]: 0-255
echo [brightness] > /sys/class/leds/button-backlight/brightness

Xperia SP
[brightness]: 0-255
[red | green | blue]: 0-128

Middle LED:

echo [brightness] > /sys/devices/i2c-10/10-0047/leds/LED1_R/brightness
echo
[brightness] > /sys/devices/i2c-10/10-0047/leds/LED1_G/brightness
echo
[brightness] > /sys/devices/i2c-10/10-0047/leds/LED1_B/brightness

echo
[red]   > /sys/devices/i2c-10/10-0047/leds/LED1_R/led_current
echo
[green] > /sys/devices/i2c-10/10-0047/leds/LED1_G/led_current
echo
[blue]  > /sys/devices/i2c-10/10-0047/leds/LED1_B/led_current

Right LED:

echo [brightness] > /sys/devices/i2c-10/10-0047/leds/LED2_R/brightness
echo
[brightness] > /sys/devices/i2c-10/10-0047/leds/LED2_G/brightness
echo
[brightness] > /sys/devices/i2c-10/10-0047/leds/LED2_B/brightness

echo
[red]   > /sys/devices/i2c-10/10-0047/leds/LED2_R/led_current
echo
[green] > /sys/devices/i2c-10/10-0047/leds/LED2_G/led_current
echo
[blue]  > /sys/devices/i2c-10/10-0047/leds/LED2_B/led_current

Left LED:
echo [brightness] > /sys/devices/i2c-10/10-0047/leds/LED3_R/brightness
echo
[brightness] > /sys/devices/i2c-10/10-0047/leds/LED3_G/brightness
echo
[brightness] > /sys/devices/i2c-10/10-0047/leds/LED3_B/brightness

echo
[red]   > /sys/devices/i2c-10/10-0047/leds/LED3_R/led_current
echo
[green] > /sys/devices/i2c-10/10-0047/leds/LED3_G/led_current
echo
[blue]  > /sys/devices/i2c-10/10-0047/leds/LED3_B/led_current

Xperia U
[red | green | blue]: 0-255

Left LED:
echo [red]   > /sys/class/leds/l-key-red/brightness
echo
[green] > /sys/class/leds/l-key-green/brightness
echo
[blue]  > /sys/class/leds/l-key-blue/brightness

Left LED:
echo [red]   > /sys/class/leds/l-key-red/brightness
echo
[green] > /sys/class/leds/l-key-green/brightness
echo
[blue]  > /sys/class/leds/l-key-blue/brightness

Middle LED:
echo [red]   > /sys/class/leds/m-key-red/brightness
echo
[green] > /sys/class/leds/m-key-green/brightness
echo
[blue]  > /sys/class/leds/m-key-blue/brightness

Right LED:
echo [red]   > /sys/class/leds/r-key-red/brightness
echo
[green] > /sys/class/leds/r-key-green/brightness
echo
[blue]  > /sys/class/leds/r-key-blue/brightness


If anyone tries this out i'd like to hear if it works.



On Tuesday, April 7, 2015 at 5:10:16 PM UTC+2, mmh...@gmail.com wrote:

mmh...@gmail.com

unread,
Apr 11, 2015, 3:51:14 AM4/11/15
to automa...@googlegroups.com, mmh...@gmail.com

hi, 
I have tried the followings on Xperia sp via su block. 


echo 50 > /sys/devices/i2c-10/10-0047/leds/LED1_B/brightness

echo 128 > /sys/devices/i2c-10/10-0047/leds/LED1_B/led_current


But nothing came out of run button press. :(

mmh...@gmail.com

unread,
Apr 11, 2015, 4:07:30 AM4/11/15
to automa...@googlegroups.com, mmh...@gmail.com

Forget my last comment. It works!!! I missed a semicolon. Now you could integrate it in led block of app. Thanks
Reply all
Reply to author
Forward
0 new messages