INC-2026-05-23-001: Resolution

Resolution

Fix: logind drop-in to override HandlePowerKey

Created /etc/systemd/logind.conf.d/power-button.conf to change power button behavior from poweroff to suspend:

sudo mkdir -p /etc/systemd/logind.conf.d
sudo tee /etc/systemd/logind.conf.d/power-button.conf <<'EOF'
[Login]
HandlePowerKey=suspend
EOF

Applying the change

systemctl restart systemd-logind terminates all active user sessions, including Hyprland. This was discovered during this incident when the command killed the graphical session.
Safe method (no session disruption)
sudo systemctl kill -s HUP systemd-logind
Alternative: reboot when convenient
# The drop-in takes effect on next boot automatically
sudo reboot
Unsafe method (kills graphical session)
# DO NOT use unless you are prepared to lose your session
sudo systemctl restart systemd-logind

Verification

busctl get-property org.freedesktop.login1 /org/freedesktop/login1 \
    org.freedesktop.login1.Manager HandlePowerKey
# Output: s "suspend"

Secondary incident during fix

Applying the fix via systemctl restart systemd-logind caused an unintended session termination. logind manages user sessions, seats, and display access — restarting it kills all active sessions. The user was forced to re-login to Hyprland. No data loss, but all open applications were terminated.

The safe alternative (systemctl kill -s HUP systemd-logind) sends SIGHUP, which causes logind to reload its configuration without terminating sessions.