NanoPi Neo: Enable function of blue status LED

Guides and tutorials for various stuff. Posted by DietPi users.
Post Reply
User avatar
k-plan
Posts: 415
Joined: Sun Feb 28, 2016 4:28 pm

NanoPi Neo: Enable function of blue status LED

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

By default on NanoPi Neo, the blue system LED is always off and has no function.

Update:
- Since DietPi v.143 blue LED is heartbeat for H3 now functional and applied during boot.

Hint:
- this will ONLY work with Legacy kernel images (3.4x) at the moment
- NOT with Mainline kernel images (4.9.x) ==>> green Power LED will start blinking, if device is ready for login List available options:

Code: Select all

[email protected]:~# cat /sys/class/leds/blue_led/trigger
[none] mmc0 timer heartbeat backlight default-on

Example: Turn off

Code: Select all

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

Example: link to Heartbeat usage

Code: Select all

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

Example: link to SD usage (Note: Only after completely booting up device! )

Code: Select all

echo 1 >/sys/class/leds/blue_led/brightness
echo mmc0 >/sys/class/leds/blue_led/trigger

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 1 >/sys/class/leds/blue_led/brightness
echo mmc0 >/sys/class/leds/blue_led/trigger

#### switch on blue LED for heartbeat 
## echo 1 >/sys/class/leds/blue_led/brightness
## echo heartbeat >/sys/class/leds/blue_led/trigger

#### switch off blue LED 
## echo 0 >/sys/class/leds/blue_led/brightness
## echo none >/sys/class/leds/blue_led/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.

User avatar
Fourdee
Site Admin
Posts: 2785
Joined: Tue Feb 06, 2007 12:36 pm

Re: NanoPi Neo: Enable function of Blue LED

Post by Fourdee » Tue Jan 24, 2017 1:15 pm

On a roll with the LED's k-plan :D. Nice one!
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.

bitsplash
Posts: 1
Joined: Thu Mar 14, 2019 3:28 am

Re: NanoPi Neo: Enable function of blue status LED

Post by bitsplash » Thu Mar 14, 2019 3:35 am

So i'd love to see if someone gets this running on 4.14. I've had issues with my nanopi neo locking up and i had no idea it stopped. I need to always be sure it is runnin at a glance. Maybe a blue led flashing i can see from across the room? or maybe a screen popup on the oled every 5 minutes or so? i dunno. but something to let me know it's working. I like the idea of the heartbeat led but as you say it doesnt work on 4.14

Ititusara
Posts: 1
Joined: Thu Mar 14, 2019 10:11 am
Location: Duluth

Re: NanoPi Neo: Enable function of blue status LED

Post by Ititusara » Thu Mar 14, 2019 11:15 am

Thanks, for useful tutorial

Post Reply