Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3745

Troubleshooting • Re: Power down on a Raspberry Pi

$
0
0

From a default install of Bookworm...

The only line in /etc/systemd/loingd.conf that is NOT commended out

Code:

HandlePowerKey=ignore
Can't cat /dev/input/event0

Related to this other thread of yours, no? viewtopic.php?p=2184495
Uh, I had a look at an untouched, unbooted Bookworm IMG:

Code:

pw/ssd/vanilla/2023-12-11/arm64$ ls -ltotal 2135680drwxr-xr-x 1 root root        174 Jan  9 15:36 .drwxr-xr-x 1 root root         20 Jan  9 15:34 ..-rwxr--r-- 1 root root 2738880512 Jan  9 15:35 2023-12-11-raspios-bookworm-arm64-lite.img-rwxr--r-- 1 root root  453980836 Jan  9 15:35 2023-12-11-raspios-bookworm-arm64-lite.img.xzpw/ssd/vanilla/2023-12-11/arm64$ sudo sdm --explore 2023-12-11-raspios-bookworm-arm64-lite.img* Enter IMG '2023-12-11-raspios-bookworm-arm64-lite.img'root@sdm:/# cd /etc/systemdroot@sdm:/etc/systemd# grep -v '#' logind.conf [Login]root@sdm:/etc/systemd# grep Power logind.conf#HandlePowerKey=poweroff#HandlePowerKeyLongPress=ignore#HandleLidSwitchExternalPower=suspend#PowerKeyIgnoreInhibited=no
Some untethered mouse must have changed yours?
Ok. So to clarify, the contents of the file I posted was after first boot,. I tried the cat of both files with that pi running.
I just downloaded the 64 bit version of the Bookwork desktop and the file /etc/systemd/logind.conf has the HandlePowerKey NOT commented out (see below). It is set to "ignore".
The power off event works as expected with the download, so I can now compare the differences between files.

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#UserStopDelaySec=10
HandlePowerKey=ignore
#HandlePowerKeyLongPress=ignore
#HandleRebootKey=reboot
#HandleRebootKeyLongPress=poweroff
#HandleSuspendKey=suspend
#HandleSuspendKeyLongPress=hibernate
#HandleHibernateKey=hibernate
#HandleHibernateKeyLongPress=ignore
#HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#RebootKeyIgnoreInhibited=no
#HoldoffTimeoutSec=30s

Statistics: Posted by Hamilton73 — Wed Jan 24, 2024 4:36 pm



Viewing all articles
Browse latest Browse all 3745

Trending Articles