The Raspberry Pi has two LED light indicators:
- Green (the ‘action light’): to indicate the system is busy/working
- Red (the ‘power light’)’: to indicate the system is not getting enough power
To stop the lights from blinking, you can execute the following commands on your Raspberry Pi (via SSH for example):
Disable the green LED:
sudo sh -c 'echo 0 > /sys/class/leds/led0/brightness'
Disable the red LED:
sudo sh -c 'echo 0 > /sys/class/leds/led1/brightness'
Thanks – works great. I want to shut down the power & activity lights on my 4 RPi 4B cluster overnight, and back on the next day. Sending a 0, then a 1 works well for the red led.
For the activity led, 0 turns it off, but 1 turns it on solid (so it no longer indicates activity).
Any thoughts on how I might restore it to indicate activity?
Thanks for the help.
if you put echo 1 it enables it and echo 0 disables it
The default value for the activity led was 255 on my RPi* – perhaps that will restore the activity indication?
*Raspberry Pi OS Lite, 2nd Dec 2020 (Kernel 5.4)
Thanks! This works for my 3b