Your message dated Mon, 17 Aug 2026 21:21:23 +0200
with message-id <[email protected]>
and subject line Re: Bug#906231: systemd: restarting systemd-logind causes
power-button event to immediately shutdown cinnamon without asking
has caused the Debian Bug report #906231,
regarding systemd: restarting systemd-logind causes power-button event to
immediately shutdown cinnamon without asking
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
906231: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906231
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: systemd
Version: 239-7
Severity: important
Hi.
Since some systemd ugprade (unfortunately I don't remember which one it was
exactly, cause I
hit the problem only rarely)... when systemd-logind has been restarted, e.g. by
needrestart
after upgraded and I press the powerbutton, cinnamon shuts down immediately,
without asking
what I want to do (suspend, hibernate, restart, etc.) as usual.
Could as well be a bug in cinnamon itself but since it occured after some
systemd upgrade
I report it first here... please reassign if you think it's cinnamon specific.
severity important, as it can be quite problematic if one has e.g. written some
longer text
file and just wants to suspend the systemd... and then everything is gone as
the system
shuts down without any further request ;-)
Thanks,
Chris.
-- Package-specific info:
-- System Information:
Debian Release: buster/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.17.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_DE.UTF-8, LC_CTYPE=en_DE.UTF-8 (charmap=UTF-8),
LANGUAGE=en_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages systemd depends on:
ii adduser 3.117
ii libacl1 2.2.52-3+b1
ii libapparmor1 2.13-8
ii libaudit1 1:2.8.3-1+b1
ii libblkid1 2.32.1-0.1
ii libc6 2.27-5
ii libcap2 1:2.25-1.2
ii libcryptsetup12 2:2.0.4-2
ii libgcrypt20 1.8.3-1
ii libgnutls30 3.5.19-1
ii libgpg-error0 1.32-1
ii libidn11 1.33-2.2
ii libip4tc0 1.6.2-1.1
ii libkmod2 25-1
ii liblz4-1 1.8.2-1
ii liblzma5 5.2.2-1.3
ii libmount1 2.32.1-0.1
ii libpam0g 1.1.8-3.8
ii libseccomp2 2.3.3-3
ii libselinux1 2.8-1+b1
ii libsystemd0 239-7
ii mount 2.32.1-0.1
ii procps 2:3.3.15-2
ii util-linux 2.32.1-0.1
Versions of packages systemd recommends:
ii dbus 1.12.10-1
ii libpam-systemd 239-7
Versions of packages systemd suggests:
ii policykit-1 0.105-21
ii systemd-container 239-7
Versions of packages systemd is related to:
pn dracut <none>
ii initramfs-tools 0.132
ii udev 239-7
-- Configuration Files:
/etc/systemd/logind.conf changed [not included]
-- no debconf information
--- End Message ---
--- Begin Message ---
This was a systemd bug, not a Cinnamon one, and it has been fixed
upstream long ago.
The desktop takes a `block` inhibitor lock on
`handle-power-key:handle-suspend-key:handle-hibernate-key`
(csd-media-keys); when that lock is
lost, logind falls back to its default `HandlePowerKey=poweroff` and
shuts down immediately,
which is the symptom reported here. Restarting logind used to drop those
inhibitors — see
https://github.com/systemd/systemd/issues/11825, fixed by
https://github.com/systemd/systemd/pull/13143, merged in July 2019 and
released in systemd v243.
Buster shipped 241 and was affected; bullseye and later are not.
Retested on recent unstable (cinnamon 6.6.9-1, cinnamon-settings-daemon
6.6.4-1, systemd 261.2-1,
lightdm, X11): after `systemctl restart systemd-logind` the session
survives, the inhibitor list
is unchanged, and pressing the power button brings up the usual dialog
instead of powering off.
logind logs "Power key pressed short." and takes no action, as it should.
Closing accordingly. Note that the polkit part mentioned later in this
log (authentication being
required again after a logind restart) is a separate matter, considered
by design upstream.
OpenPGP_signature.asc
Description: OpenPGP digital signature
--- End Message ---