Bananian Debian 8/Jessie version 16.04: Disable/Turn off LED

BananaPi has a few LED that you can disable, but the most annoying one for me is the one that keep blinking. To turn off the blinking green/blue LED echo none > /sys/class/leds/green\:ph24\:led1/trigger If you …

BananaPi has a few LED that you can disable, but the most annoying one for me is the one that keep blinking.

To turn off the blinking green/blue LED

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

If you are using 4.2 kernel+

#GB: New for 4.2 kernel+
echo none > /sys/class/leds/bananapi\:green\:usr/trigger

So after testing the command and see it works, you can put it in a script so next time when you restart your banana, it will turn the light off.

Create the following script in directory /usr/local/bin/ and put the command you have tested

cd /usr/local/bin/
vi greenoff.sh

Add the following in the greenoff.sh

#!/bin/bash
echo none > /sys/class/leds/green\:ph24\:led1/trigger

To turn off the blue LED

You need to have bpi_ledset from https://github.com/n1tehawk/bpi_ledset

/usr/local/bin/bpi_ledset eth0 b

Create the following script in directory /usr/local/bin/ and put the command you have tested

cd /usr/local/bin/
vi blueoff.sh

Add the following in the blueoff.sh

#!/bin/bash
/usr/local/bin/bpi_ledset eth0 b

Make it turn it off whenever you boot the Banana Pi

Add the script in /etc/rc.local

#!/bin/bash
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/usr/local/bin/blueoff.sh &
/usr/local/bin/greenoff.sh &
exit 0

Leave a Comment