Jump to content
  • 0

NanoPI M4: Disable LEDs and WiFi


TCB13
 Share

Question

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.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Donate and support the project!

  • 0
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"

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...