Saturday, April 2, 2022

[SOLVED] Turn off leds of Raspberry Pi

Issue

I would like to turn off the leds of my Raspberry Pi.

I tried modifying the file echo none >/sys/class/leds/led0/trigger but nothing changed.

Is this possible?


Solution

It's Mar 15, 2022, and the answer today is:

The documentation is now located here:

  • on your local file system: /boot/overlays/README
  • online at GitHub: the README file

The README is a rather choppy document, but you can find enough to get started. The parameters of interest are act_led_*, and pwr_led_*. There are three device tree parameters (dtparam) for both act_led and pwr_led: _trigger, _activelow and _gpio, but the documentation doesn't mention all possible values for them. Through guesswork, I learned the correct values to turn the activity/green and power/red LEDs OFF:

To turn both act_led and pwr_led OFF, add these two lines to the file /boot/config.txt, and then reboot:

dtparam=act_led_trigger=none
dtparam=pwr_led_trigger=none

There are also parameters for extinguishing the Ethernet LEDs also, but they only work for the 3B+ & 4B models: eth_led0 & eth_led1. Fortunately, the documentation does enumerate a set of values for the 3B+ and the 4B.

UPDATE: Additional details are now posted on GitHub



Answered By - Seamus
Answer Checked By - Katrina (WPSolving Volunteer)