How do I turn off the power light on my Raspberry Pi 4 with DietPi?
- DietPi-LED_control | LED trigger choices are now applied via udev rules, existing settings are migrated on DietPi-Update. This allows to skip running this script at boot and simplify the preboot script, which both reduces boot time a bid. Additionally, applied LED triggers can now be reset to system defaults, which removes related udev rules. Since the script is now for interactive usage only, it has been moved to /boot/dietpi/dietpi-led_control and an alias has been added to call it from console via “dietpi-led_control” command.
Set both LEDs to [none]
Boot Led’s keep resting to default.
Hmmm. Mine is an RPi2, so that might explain the difference? Sorry it doesn’t work on your end.
I’ve dove it before, but when I reboot it goes back to default settings.
I think Ropieee allows for control of LEDs if you want to try that route.
It does, but I want to run DietPi.
Disable the ACT LED.
Disable the PWR LED.
How do I get the text file?
I believe it is in /DietPi/config.txt
The nano text editor is included with dietpi, so you can type
I’m not certain whether changes to this file persist during DietPi version updates.
At least on the latest DietPi (6.30 as of this writing), the config file in in the /boot directory.
To disable both the power (red) and activity (green) LEDs, copy and paste the following text to the end of the file. If you want to disable only one of them, just skip the unneeded lines or comment them out by entering a # at the start of the line.
#--------Onboard LEDs-------- # Disable the ACT LED dtparam=act_led_trigger=none dtparam=act_led_activelow=off # Disable the PWR LED dtparam=pwr_led_trigger=none dtparam=pwr_led_activelow=off
Looks like the reboot persistence of
will be fixed in the next release. See release notes here: