hardware button control lights

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
holymoz
Posts: 113
Joined: 13 Sep 2013 10:27

hardware button control lights

Post by holymoz » 05 Nov 2013 16:18

hi, I'd like a feature to control the hardware capacitive buttons lights, for example for the phone without notification led we could set the menu button light to flash for notifications, thz

pilusona
Posts: 39
Joined: 02 Dec 2012 03:47
Location: India

Re: hardware button control lights

Post by pilusona » 07 Nov 2013 05:30

Hi,

Me too :)
I have found an app "BLN Control" which can control those lights.
Thanks.
Samsung Galaxy Note 8
Android 9.
Non-rooted

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: hardware button control lights

Post by Martin » 08 Nov 2013 12:55

The app seems to require a modified kernel with BLN mod so it will probably not work on many devices.
The listing of the pro-version on Google Play indicates that this app is a Locale-Plugin so it might be possible that it works with action Plugin (untested).

holymoz
Posts: 113
Joined: 13 Sep 2013 10:27

Re: hardware button control lights

Post by holymoz » 09 Nov 2013 10:02

hey I made to work the bln buttons without 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
Attachments
exported_data_20131109_105226.xml
(2.57 KiB) Downloaded 841 times

pilusona
Posts: 39
Joined: 02 Dec 2012 03:47
Location: India

Re: hardware button control lights

Post by pilusona » 12 Nov 2013 05:14

Hi,

Thanks. I will test and let you know.

Thanks.
Samsung Galaxy Note 8
Android 9.
Non-rooted

Locked