Odroid C2: Change function of Blue LED

List available options:

cat /sys/class/leds/blue\:heartbeat/trigger



none nand-disk timer oneshot [heartbeat] backlight gpio cpu0 cpu1 cpu2 cpu3 default-on transient flash torch sd emmc battery-charging-or-full battery-charging battery-full battery-charging-blink-full-solid ac-online

Example: Turn off

echo none > /sys/class/leds/blue\:heartbeat/trigger

Example: link to EMMC usage

echo emmc > /sys/class/leds/blue\:heartbeat/trigger

Example: link to SD usage

echo sd > /sys/class/leds/blue\:heartbeat/trigger

Return to default:

echo heartbeat > /sys/class/leds/blue\:heartbeat/trigger

To get this blue LED changes persistent on every boot, you have to edit /etc/rc.local

Make a backup:

cp /etc/rc.local /etc/rc.local.bac

Edit:

nano /etc/rc.local

Add following lines before "exit 0 ":
[Example - edit or uncomment line you needed.]

#### switch on blue LED for sd-card activity
echo sd > /sys/class/leds/blue\:heartbeat/trigger

#### switch on blue LED for eMMC activity
## echo emmc > /sys/class/leds/blue\:heartbeat/trigger

#### switch on blue LED for heartbeat (Default)
## echo heartbeat > /sys/class/leds/blue\:heartbeat/trigger

#### switch off blue LED
## echo none > /sys/class/leds/blue\:heartbeat/trigger

exit 0

In my new install (7.2.9, bullseye?) there is no rc.local file. I have to create this file (bash script).

Also it looks like there is a new class. For me it works with

echo none > /sys/class/leds/c2:blue:alive/trigger

.

not sure if it is working but you could try using dietpi-led_control

I’ve searched in dietpi-config :wink: .

Thanks