Odroid C2: Change function of Blue LED

Guides and tutorials for various stuff. Posted by DietPi users.
Post Reply
User avatar
Fourdee
Site Admin
Posts: 2746
Joined: Tue Feb 06, 2007 12:36 pm

Odroid C2: Change function of Blue LED

Post by Fourdee » Thu Jan 19, 2017 4:03 pm

List available options:

Code: Select all

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

Code: Select all

echo none > /sys/class/leds/blue\:heartbeat/trigger
Example: link to EMMC usage

Code: Select all

echo emmc > /sys/class/leds/blue\:heartbeat/trigger
Example: link to SD usage

Code: Select all

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

Code: Select all

echo heartbeat > /sys/class/leds/blue\:heartbeat/trigger
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.

User avatar
k-plan
Posts: 403
Joined: Sun Feb 28, 2016 4:28 pm

Re: Odroid C2: Change function of Blue LED

Post by k-plan » Mon Jan 23, 2017 4:18 pm

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

Make a backup:

Code: Select all

cp /etc/rc.local /etc/rc.local.bac
Edit:

Code: Select all

nano /etc/rc.local

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

Code: Select all

#### 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
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.

Post Reply