Read the statement by Michael Teeuw here.
How to turn off Raspberry Pi LEDs
-
Hello, I have a question.
I am using the Raspberry Pi 4B and tried turning the power led and other status leds off configuring the boot/config.txt file and using the “echo 0 | sudo tee /sys/class/leds/led{1,0}/brightness” command. However, they didn’t change anything. I think this is due to the pm2 and the boot/config.txt somehow gets skipped when booting.
Does anyone have suggestions how I can turn them off or run the boot/config.txt file?
Thank you very much for your help! -
@GuestMirror never heard of any option to turn off the LEDs except on pi0w.
-
@GuestMirror boot/config.txt is processed long before pm2 is started…
-
@GuestMirror Try this in bootconfig.txt
# Turn off PWR LED dtparam=pwr_led_trigger=none dtparam=pwr_led_activelow=off # Turn off ACT LED dtparam=act_led_trigger=none dtparam=act_led_activelow=off # Turn off Ethernet ACT LED dtparam=eth_led0=4 # Turn off Ethernet LNK LED dtparam=eth_led1=4
-
@sdetweil Is there a way to see if the boot/config.txt loads properly? I tried troubleshooting it by setting different things in there like rotating the display etc. however, even with all my other changes commented out nothing changes when booting.
-
@Fozi I already tried that but it won’t work for some reason.
-
@Fozi @GuestMirror
Works on my RPi 4
I just copied and pasted to the bottom of the config.txt did a PM2 stop all and then sudo reboot and when it came backup they where on for a few seconds and then went off. @GuestMirror are you in the /boot/config.txt?@Fozi said in How to turn off Raspberry Pi LEDs:
@GuestMirror Try this in bootconfig.txt
# Turn off PWR LED dtparam=pwr_led_trigger=none dtparam=pwr_led_activelow=off # Turn off ACT LED dtparam=act_led_trigger=none dtparam=act_led_activelow=off # Turn off Ethernet ACT LED dtparam=eth_led0=4 # Turn off Ethernet LNK LED dtparam=eth_led1=4
-
Hi,
I do not have a Pi 4 but on my Pi 3 Model B I have this:
sudo nano /boot/config.txt
# Disable the PWR LED dtparam=pwr_led_trigger=none dtparam=pwr_led_activelow=off # Disable the Activity LED dtparam=act_led_trigger=none dtparam=act_led_activelow=off
crontab -e
@reboot echo 0 | sudo tee /sys/class/leds/led1/brightness
You can try this to see if the above cron entry works (before rebooting):
echo 0 | sudo tee /sys/class/leds/led1/brightness
Perhaps some stuff does not work or does the same, but both the power LED and activity LED on my Pi are off in the end.
Btw, on my Pi 3 Model B Plus, only the /root/config.txt line are needed.Concerning the LAN LED’s I found following:
# Disable LAN-LEDs on Raspberry Pi 3B+ dtparam=eth_led0=14 dtparam=eth_led1=14
# Disable LAN-LEDs on Raspberry Pi 4 dtparam=eth_led0=4 dtparam=eth_led1=4
Good luck!
-
here are the amendments to boot/config.txt file. For BULLSEYE, you have to use different parameters to make them work
these work for pi3 and pi 4
Pre BULLSEYE
-
Disable the PWR LED
dtparam=pwr_led_trigger=none
dtparam=pwr_led_activelow=off -
Disable the Activity LED
dtparam=act_led_trigger=none
dtparam=act_led_activelow=off -
Disable ethernet port LEDs
dtparam=eth_led0=4
dtparam=eth_led1=4
BULLSEYE ONLY
-
Disable the PWR LED
dtparam=pwr_led_trigger=default-on
dtparam=pwr_led_activelow=off -
Disable the Activity LED
dtparam=act_led_trigger=none
dtparam=act_led_activelow=off -
Disable Ethernet port LEDs
dtparam=eth_led0=4
dtparam=eth_led1=4
-