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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
1 1