Subject: bug#77806: elogind behavior changed: power key turns computer off

From: Bas Alberts <[email-masked]>
Date: Wed, 16 Apr 2025 03:03:28 +0000

On Mon, 14 Apr 2025 18:46:33 +0200, 
Ludovic Courtès <[email-masked]> wrote:
>
> Yet the config reads this:
>
> $ grep -i powerkey $(sudo herd configuration elogind)
> HandlePowerKey=suspend
> PowerKeyIgnoreInhibited=no

I'm having the same issue.

My config is also unchanged but after this week's upgrades elogind no
longer respects HandleLidSwitch=hibernate and my laptop defaults to
s2idle which is prohibitively battery consuming on my hardware.

λ ~ › grep -i HandleLidSwitch= $(sudo herd configuration elogind)
HandleLidSwitch=hibernate

... on lid close:

[ 3603.354720] PM: suspend entry (s2idle)
[ 3603.359069] Filesystems sync: 0.004 seconds
[ 3603.368060] Freezing user space processes

...

Kind regards,
Bas