Page 1 of 1

Is it possible to disable the blinking blue LED?

Posted: Fri Aug 12, 2016 7:29 am
by quax
Hi,

Is there a way to disable the blinking blue LED? In the night it is too bright.

Thanks.

Re: Is it possible to disable the blinking blue LED?

Posted: Fri Aug 12, 2016 7:51 am
by HermannSW
There are two "easy" options, but I think you are looking for the third ;-)
1. physically remove the LED (eg. with screwdriver), I did similar with dangerous diode for battery charged RTC module
2. Disable blinking code in firmware and rebuild it
3. find some command/setting that allows to disable/enable blinking

Perhaps somebody from Friendlyarm can help on 3?

Hermann.

Re: Is it possible to disable the blinking blue LED?

Posted: Fri Aug 12, 2016 2:14 pm
by quax
Found it out.

To turn the heartbeat off:

Code: Select all

echo none > /sys/class/leds/blue_led/trigger


To turn it back on:

Code: Select all

echo heartbeat > /sys/class/leds/blue_led/trigger

Re: Is it possible to disable the blinking blue LED?

Posted: Sat Aug 13, 2016 9:58 am
by HermannSW
Thanks for that information!
Doing "cat" of that file seems to give the allowed values, with current value in square brackets:

Code: Select all

root@FriendlyARM:/sys/class/leds/blue_led# cat trigger
none mmc0 timer heartbeat backlight [gpio] default-on
root@FriendlyARM:/sys/class/leds/blue_led#


none, time, heartbeat and default-on have obvious visible effects.
If you want it crazy you can let blue led on heartbeat and set green led (from "defaut-on") to timer ;-)

Not sure what mmc0, backlight and gpio are good for.
Is there any spec or document where this infomation can be found?

Hermann.