1 1
TCB13

NanoPI M4: Disable LEDs and WiFi

Recommended Posts

Hello,

I was wondering if it is possible to disable both LEDs on this board or, at least, the green (stat) one. Also I was trying to remove wifi completely and I can do:

iwconfig wlan0 txpower off
ifconfig wlan0 down
systemctl disable wpa_supplicant

But not sure if it's possible to remove the driver from the OS and what other unnecessary software I can remove.

 

Thank you in advance.

Share this post


Link to post
Share on other sites
On 12/29/2018 at 2:56 PM, TCB13 said:

I was wondering if it is possible to disable both LEDs on this board or, at least, the green (stat) one.

Thank you in advance.

 

for the LEDs you can try the following:

ls -l /sys/class/leds

(here as example from a NanoPi Neo2):

lrwxrwxrwx 1 root root 0 Feb 20 21:50 nanopi:green:status -> ../../devices/platform/leds/leds/nanopi:green:status
lrwxrwxrwx 1 root root 0 Feb 20 21:50 nanopi:red:pwr -> ../../devices/platform/leds/leds/nanopi:red:pwr

 

then echo none to the trigger of the led-name

 

echo 'none' > /sys/class/leds/[name_of_the_led]/trigger

 

so it should look like this:

 

echo 'none' > /sys/class/leds/nanopi:green:status/trigger

 

You only have to check the led-names of your board and add the commands in /etc/rc.local before "exit 0"

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
1 1