Closed seamusdemora closed 3 years ago
"All is well, except that the red pwr-led remains lit at full brightness in low power mode."
That is the required behavior to indicate that the power is ok. There is no need to add additional configuration complexity to turn this on for developer debug. You could just measure 3V3 to check.
@timg236 : "There is no need..." Respectfully disagree - that is an opinion, not a statement of fact. And as I explained, it has nothing to do with "developer debug".
In "halt mode" everything is stopped - the only way to display "reduced brightness" or "blinking" for the power-led would be to have the VPU and/or CPU running, and that would increase power consumption...
@lurch : That makes sense - the only other way to do it would be in hardware - which didn't seem likely. I'd actually be quite happy with OFF
- I mentioned brightness and blinking as I didn't want to leave out any possibilities. I suppose driving a bright red LED in low power mode might be useful for some, but it makes little sense to me. But I do get that it's a challenge & I can imagine you've plenty of those :)
The power LED is required to be on to indicate that 5V is on and we aren't going to add extra code to configure the behavior during HALT. You can connect an LED to 3V3 to check whether it's in the power-off state because 3V3 is an output of the PMIC which will be off when POWER_OFF_ON_HALT is activated.
@timg236 : But surely you can see that having a red LED that glows both during low power mode (a non-operational state) AND when the RPi is in a fully operational state is not the ideal situation. Yes - I could add yet another LED to be extinguished when the 3V3 bus is powered off, but that doesn't extinguish the red power led.
Would you consider outlining what needs to be done to make this happen? You provide the outline, someone else writes the code?
Really. no
@seamusdemora If you're that concerned about the red LED still glowing in halt mode, you could just cover it with electrical tape?
The code to control the LEDs is all buried inside the closed-source firmware, so isn't modifiable by anyone outside of the RPi engineering team, all of whom have far more important things to be working on.
This repository tracks bugs for the Raspberry Pi 4 bootloader EEPROM and Linux update scripts.
Mandatory information
Revision : b03111
Raspbian GNU/Linux 10 (buster)
Describe the bug
vcgencmd bootloader_version
=Mar 18 2021 08:54:11
sudo halt
pwr-led
remains lit at full brightness in low power mode.To Reproduce Steps to reproduce the behavior:
sudo halt
.Expected behaviour A clear and concise description of what you expected to happen:
lowest possible power state for halt
, providing an option to extinguish/reduce/blink the pwr-led will further that objective.Bootloader version and configuration If you have modified the default bootloader release or configuration then please attach the bootloader configuration vcgencmd bootloader_config and version (vcgencmd bootloader_version)
SD card boot (please complete the following information):
Network boot (please complete the following information): Network boot bug normally require one or more of the following log types. PiServer is the officially supported network boot server.
N/A - boot from SD card
USB boot (please complete the following information): Verify that the the USB device works correctly when hot-plugged under Linux and attache the output of 'lsusb -vvv'
Additional context Add any other context about the problem here.
Things I've tried that didn't have any effect on the pwr-led brightness or state:
sysfs
prior tosudo halt
to enter low power mode:echo none | sudo tee /sys/class/leds/led1/trigger
dtparam=pwr_led_activelow=on
in/boot/config.txt
The Bootloader configuration page describes how to enable UART or NETCONSOLE logs. For complex USB boot issues NETCONSOLE logs are recommended.