13

Can I disable the yellow (PWR?) LED on the Pi Zero?

I've tried setting the brightness to 0 of led1 (it starts life as 255) and led0 is already 0 but I still get the LED glow.

Out of interest, I only managed to set the brightness file to zero by running the following from /etc/rc.local

echo 0 > /sys/class/leds/led1/brightness

Verified after booting with the following.

$ cat /sys/class/leds/led1/brightness
0

If I try as the pi user or even via sudo, I get the following error. Even after chmod. Any ideas why?

-bash: /sys/class/leds/led0/brightness: Permission denied
Toby
  • 264
  • 2
  • 10

2 Answers2

8

Add the following to /boot/config.txt and reboot.

dtparam=act_led_trigger=none

The LED is wired with inverse logic.

Write 1 to GPIO 47 to switch it off.

Write 0 to GPIO 47 to switch it on.

joan
  • 71,852
  • 5
  • 76
  • 108
0

sudo nano /boot/config.txt

There is currently a different way to achieve this on different pi models. You may want to add model filters to config file as followingly:

#Disable Power LED (Red)
[pi3]
dtparam=pwr_led_trigger=none
[pi3+]
[pi4]
dtparam=pwr_led_trigger=default-on
[all]
dtparam=pwr_led_activelow=off

#Disable Activity LED (Green) dtparam=act_led_trigger=none dtparam=act_led_activelow=off

sudo reboot