Friday, August 16, 2013

How to disable the blinking green led of a Cubieboard

A Cubieboard is a Raspberry like device, with more memory (1GB instead of 512 MB) and a more powerful processor. I use these beasts at home for some devops experiment.
A cubieboard

The problem with the Cubieboard is its flashing green led which can be very annoying, specially during the night ...


The following command (requires root privileges) shuts down this flashy green led (and make your husband/wife/companion much more "always-on-devices" friendly):



# echo none >  /sys/class/leds/ph20\:green\:led1/trigger

One can check the status of this trigger using the command:

# cat /sys/class/leds/ph20\:green\:led1/trigger
[none] battery-charging-or-full battery-charging battery-full battery-charging-blink-full-solid ac-online usb-online mmc0 mmc1 timer heartbeat rfkill0

More info about these leds here.


Have a good night !

PS: To make things persistent across reboots, this command can be inserted in the /etc/rc.local file (it works at least for Raspbian, it may differ for other OS).