Yes - I seem to recall that the firmware controlling the Power (red) LED is prone to change. Perhaps the bug report will get this fixed eventually, or perhaps it won't?
In either case, the sysfs interface still works, even though it's been deprecated for over 2 years. Here's a couple of ways to turn off the power (red) LED:
1. Turn Power LED OFF at boot time using cron:
Because root privileges are needed to write to sysfs, you should use the root crontab:
$ sudo crontab -e
# root's crontab opens for editing in your default text editor...
# add the following line:
@reboot /usr/bin/echo '1' > /sys/class/leds/led1/brightness
save, exit the editor & reboot your system to verify
Note that this is easily extended to turn the LED ON & OFF at specified times; e.g. ON during the day, OFF at night.
2. Turn Power LED OFF (or ON) from the command line:
You can use the same command used in the root crontab, but you'll first need to su to root. If you prefere to use sudo instead, you can use the tee command instead of the redirect ( > ) to accomplish this:
$ echo '1' | sudo tee /sys/class/leds/led1/brightness # OFF
If you wish to turn the Power LED ON:
$ echo '0' | sudo tee /sys/class/leds/led1/brightness # ON
If you wish to read the status of the Power LED:
$ cat /sys/class/leds/led1/brightness
Which can be used in a script to check and/or change the Power LED state:
$ if [ $(cat /sys/class/leds/led1/brightness) == '0' ]; then echo "ON"; else echo "OFF"; fi;
3. Use the revised device tree configuration to extinguish the Power LED:
Some interim(?) responses to the Aug 21 bug report suggest that a revised dtparam configuration will extinguish the Power LED on the following newer models:
- Raspberry Pi 3 Model B+
- Raspberry Pi 4 Model B
- Raspberry Pi 400
- Raspberry Pi Compute Module 4
For these models, the revised dtparam configuration to extinguish the Power LED is:
dtparam=pwr_led_trigger=default-on
dtparam=pwr_led_activelow=off