Page 1 of 1

backlight buttons notification

Posted: 09 Nov 2013 11:36
by holymoz
hi, for the phone without notification led I made to work the bln buttons without using any app or modified kernel, only a script.
I attached the flow, simply it execute root command "echo 1 > /sys/devices/platform/pmic-leds/leds/button-backlight/brightness", this lights up the buttons, then sleep 2 sec, then execute the same script with echo 0 that shut down the lights and repeat it.

set in preferences an higher value of emergency stop like 1000.

use this flow as an action for various triggers such an incoming notification for sms or calls.

the path is for my phone, it can be different for other phones, anyway just locate the "brightness" file under the "button-backlight" sentences.

if someone can optimize the script were good, thz

Re: backlight buttons notification

Posted: 12 Nov 2013 05:12
by pilusona
Hi,

Thanks for your script. I have not tested yet but downloaded. I will let you know whether it works for me or not.

Thanks.

Re: backlight buttons notification

Posted: 06 Jan 2014 19:50
by kamil_w
Doesn't work at my Samsung Galaxy S2.

Re: backlight buttons notification

Posted: 07 Jan 2014 12:05
by brunofin
Hey, great idea! :) But is it possible to do it without root, nor writing to a system file?

Re: backlight buttons notification

Posted: 06 Feb 2014 20:54
by xxx
For my S4 this path is working :-)

/sys/class/leds/button-backlight/brightness

Re: backlight buttons notification

Posted: 07 Jun 2017 21:33
by wichoxp
Hello.
Here with Galaxy Light T399 - Android KitKat 4.4.4

Path for this phone is:
/sys/devices/virtual/sec/sec_touchkey/brightness

I made 3 flows for backlit buttons management (attached file):
- Blink enabled when screen is off & blink disabled when screen is on.
- Blink enabled when screen goes off & there are notifications pendent to manage.
- Blink enabled when phone is sleeping and new notification (without screen awake) comes in.

IMPORTANT: apps affected must be added on the next flows/steps:
- #BLN_notif: Notification on Statusbar Displayed > Package Name [+]
- #BLN_on_sleep: Notification on Statusbar Displayed > Package Name [+]