Disable the Red and Green Lights on a Raspberry Pi

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'

 

Author Bio

Thank you for your interest in my blog! On this miniblog, I write mostly short (technical) blog posts that might interest other people. Read more about me or feel free to contact me.

 

2 thoughts on “Disable the Red and Green Lights on a Raspberry Pi

  1. Pingback: How much energy does a Raspberry Pi use per year? Cost calculation | Thomas' Miniblog
  2. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *