how modify Led colour programmatically?

47 views
Skip to first unread message

Michal Goralski

unread,
Jan 14, 2018, 9:57:37 AM1/14/18
to Alt-F

Hi,
Could anyone tell mehow to change led colour?
from blue to red and vice versa?
i would like to change color when some scripts are running

João Cardoso

unread,
Jan 14, 2018, 11:17:38 AM1/14/18
to Alt-F


On Sunday, 14 January 2018 14:57:37 UTC, Michal Goralski wrote:

Hi,
Could anyone tell mehow to change led colour?

There is a generic box-independent interface at /tmp/sys/
 
from blue to red and vice versa?

Some leds, on some boxes models, are kernel controlled and can't be changed, others are hardware controlled, and still others are Alt-F controlled, so if you mess with them unpredictable led behaviour might occur.

That said,

echo 1 > /tmp/sys/left_led/brightness # will turn left orange hdd led on
echo 0 > /tmp/sys/left_led/brightness # will turn left orange hdd led off
echo "timer" > /tmp/sys/left_led/trigger # will make it blink
echo "none" > /tmp/sys/left_led/trigger # return to normal
Reply all
Reply to author
Forward
0 new messages