11-12-2023, 03:29 AM
(11-12-2023, 12:56 AM)Tim Curtis Wrote: Does the power button on the 5 actually submit a Linux software poweroff command?
It definitely doesn't cut power to the Pi.
Quoting from the official Raspberry Pi documentation section on the Pi 5,
Quote:If you are running Raspberry Pi OS Lite in headless mode pressing the power button a single time will initite a shutdown.
If you want to force a hard shutdown, you should press and hold the Power Button.
If the Raspberry Pi board is shutdown, but still powered, pressing the power button will restart the board.
Default shutdown wattage is around 1 to 1.4W. However this can be decreased by manually editing the EEPROM configuration, sudo rpi-eeprom-config -e and change the settings to:
BOOT_UART=1
POWER_OFF_ON_HALT=1
BOOT_ORDER=0xf416
This should drop the shutdown power consumption to around 0.01W.
It's different if running full Bookworm Desktop.
I just checked journalctl after using the power button first to shut down Bookworm Lite and then to power up.
There's a ton of relevant output starting with the lines
Code:
Nov 11 22:08:32 raspberrypi systemd-logind[763]: Power key pressed short.
Nov 11 22:08:32 raspberrypi systemd-logind[763]: Powering off...
Nov 11 22:08:33 raspberrypi systemd-logind[763]: System is powering down.
...
followed by lots of lines concerning various processes shutting down and then ending with
Code:
Nov 11 22:08:43 raspberrypi systemd[1]: Reached target shutdown.target - System Shutdown.
Nov 11 22:08:43 raspberrypi systemd[1]: Reached target final.target - Late Shutdown Services.
Nov 11 22:08:43 raspberrypi systemd[1]: systemd-poweroff.service: Deactivated successfully.
Nov 11 22:08:43 raspberrypi systemd[1]: Finished systemd-poweroff.service - System Power Off.
Nov 11 22:08:43 raspberrypi systemd[1]: Reached target poweroff.target - System Power Off.
Nov 11 22:08:43 raspberrypi systemd[1]: Shutting down.
Nov 11 22:08:45 raspberrypi systemd-shutdown[1]: Syncing filesystems and block devices.
Nov 11 22:08:47 raspberrypi systemd-journald[284]: Journal stopped
The log continues with the first line of the next boot.
-----
Back to wayfire/chromium-browser, I now have a blank screensaver function working. Much more of this and I'll start thinking I actually understand Wayland compositors/window managers (not!).
Regards,
Kent