Disabling LEDs on Raspberry Pi

Disabling LEDs on Raspberry Pi

Lately, I’ve been on a tear shutting off as many device LED’s as I can. Note to self: stop walking around in the dark.

Love me some Pi, but wish they made LED management consistent across versions or provided a utility to do this automatically.

The terminal can display which model of Raspberry Pi is currently in use, including the name of the family and the version.

To have the terminal display the model of Raspberry Pi

  1. Open the terminal
  2. Enter the command: cat /sys/firmware/devicetree/base/model
  3. Read the Raspberry Pi model number

Add the following to the /boot/config.txt file

Raspberry Pi 3 Model B Rev 1.2

#----------------------------------
# Disable Red led
dtparam=pwr_led_trigger=none

# disable green activity led
dtparam=act_led_trigger=none
dtparam=act_led_activelow=off

# disable the network LEDs (couldn't get this to work)
dtparam=eth_led0=14
dtparam=eth_led1=14
#----------------------------------

Raspberry Pi 4 Model B Rev 1.1

#----------------------------------
# Disable Red led
dtparam=pwr_led_trigger=default-on
dtparam=pwr_led_activelow=off

# disable green activity led
dtparam=act_led_trigger=none
dtparam=act_led_activelow=off

# disable the network LEDs
dtparam=eth_led0=4
dtparam=eth_led1=4
#----------------------------------

Raspberry Pi 4 Model B Rev 1.4

#----------------------------------
# Disable Red led
dtparam=pwr_led_trigger=none

# disable green activity led
dtparam=act_led_trigger=none
dtparam=act_led_activelow=off

# disable the network LEDs
dtparam=eth_led0=4
dtparam=eth_led1=4
#----------------------------------

Inspiration: https://www.raspberrypi.org/forums/viewtopic.php?p=1306079

Leave a Reply

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