There's a bunch of controls you can use in /boot/config.txt
act_led_trigger Choose which activity the LED tracks.
Use "heartbeat" for a nice load indicator.
(default "mmc")
act_led_activelow Set to "on" to invert the sense of the LED
(default "off")
N.B. For Pi 3B, 3B+, 3A+ and 4B, use the act-led
overlay.
act_led_gpio Set which GPIO to use for the activity LED
(in case you want to connect it to an external
device)
(default "16" on a non-Plus board, "47" on a
Plus or Pi 2)
N.B. For Pi 3B, 3B+, 3A+ and 4B, use the act-led
overlay.
pwr_led_trigger
pwr_led_activelow
pwr_led_gpio
As for act_led_*, but using the PWR LED.
Not available on Model A/B boards.
And
Name: act-led
Info: Pi 3B, 3B+, 3A+ and 4B use a GPIO expander to drive the LEDs which can
only be accessed from the VPU. There is a special driver for this with a
separate DT node, which has the unfortunate consequence of breaking the
act_led_gpio and act_led_activelow dtparams.
This overlay changes the GPIO controller back to the standard one and
restores the dtparams.
Load: dtoverlay=act-led,<param>=<val>
Params: activelow Set to "on" to invert the sense of the LED
(default "off")
gpio Set which GPIO to use for the activity LED
(in case you want to connect it to an external
device)
REQUIRED
For example my Zero has
dtparam=act_led_activelow=on
so that the LED isn't a power LED, but works like a activity LED (on other RPis)
Take a look at /boot/overlays/README
for details.
You probably want
dtparam=pwr_led_activelow=on
to turn your RED LED off. I don't have a RPi4B, so I can't test that and confirm it does what you want. This does the same thing as @Dirk's answer but without needing a script run at boot time.
none
anddefault-on
) documented? – Seamus Jun 11 '21 at 05:59@reboot echo none > /sys/class/leds/led1/trigger
in root's crontab. – Greg Chabala Mar 12 '22 at 20:24