#1107965 cinnamon-settings-daemon: When the lid is closed "Suspend" don't work while Rhythmbox is playing

Package:
cinnamon-settings-daemon
Source:
cinnamon-settings-daemon
Description:
daemon handling the Cinnamon session settings
Submitter:
SalvatoreClemente
Date:
2026-10-16 19:51:05 UTC
Severity:
normal
#1107965#5
Date:
2025-06-18 06:17:00 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

#1107965#20
Date:
2026-09-26 15:49:23 UTC
From:
To:
Hi Salvatore,

thanks for the reports, and sorry for the very late reply. #1107963 and
#1107965 describe the same problem, so I have merged them and reassigned
them to cinnamon-session, where the fix belongs.

I could reproduce it on trixie (cinnamon-session 6.4.0-1,
cinnamon-settings-daemon 6.4.3-1, systemd 257.13-1~deb13u1) and on
unstable (cinnamon-session 6.6.4-1, systemd 262). This is what happens:

- while playing, Rhythmbox asks the session not to suspend (its Power
Manager plugin is built in and always active);
- cinnamon-session turns that request into a logind inhibitor lock on
"sleep" in "block" mode;
- when the lid is closed, cinnamon-settings-daemon locks the screen and
asks logind to suspend.

Up to systemd 256, logind ignored block locks taken by the same user who
requested the suspend, so this worked. Since systemd 257 logind always
obeys them: the suspend request is refused ("Access denied") and the
laptop stays on with the screen locked. The same happens with any
application that inhibits suspend, not only Rhythmbox.

systemd 257 also added a "block-weak" mode that keeps the old behaviour,
and with a lock in that mode closing the lid suspends the system again
(tested on both, with cinnamon-session rebuilt with that change). I have
proposed upstream that cinnamon-session use it [2]. The upstream issue
[1] reports the same root cause.

Until then, pausing Rhythmbox before closing the lid avoids the problem:
the plugin releases its lock as soon as playback stops.

[1] https://github.com/linuxmint/cinnamon/issues/13219
[2] https://github.com/linuxmint/cinnamon-session/pull/219

Regards,
Fabio

#1107965#25
Date:
2026-10-16 19:06:12 UTC
From:
To:
Hello,

Bug #1107965 in cinnamon-session reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/cinnamon-team/cinnamon-session/-/commit/b474c937ea5cde9b83ce2a097809929164bf69bc
------------------------------------------------------------------------
d/patches: take the session's logind inhibitor in block-weak mode

Since systemd 257 logind always obeys "block" inhibitors, also those
held by the user who requests the operation. The "sleep:shutdown"
inhibitor that cinnamon-session takes on behalf of applications
inhibiting suspend (Rhythmbox while playing, browsers playing media)
therefore blocks the session itself: closing the lid no longer suspends
the laptop, the end-session dialog stops offering suspend, restart and
shut down, and even "systemctl reboot" is refused while the application
runs.

Backport of upstream commit 2f256e0 (linuxmint/cinnamon-session#219):
the inhibitor is taken in "block-weak" mode, which keeps the previous
semantics, and falls back to "block" on logind/elogind versions that
don't support it. Suspend on idle still honours the inhibitors, since
csd-power checks them itself.

Closes: #1107963, #1107965

Assisted-by: Claude Code:claude-opus-5-5
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1107965

#1107965#26
Date:
2026-10-16 19:49:26 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
cinnamon-session, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1107963@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Fabio Fantoni <fantonifabio@tiscali.it> (supplier of updated cinnamon-session package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 16 Oct 2026 21:28:13 +0200
Source: cinnamon-session
Built-For-Profiles: noudeb
Architecture: source
Version: 6.6.4-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Cinnamon Team <debian-cinnamon@lists.debian.org>
Changed-By: Fabio Fantoni <fantonifabio@tiscali.it>
Closes: 835846 1107963 1107965
Changes:
 cinnamon-session (6.6.4-2) unstable; urgency=medium
 .
   * d/patches:
     - use the running user D-Bus session bus instead of dbus-launch
     (Closes: #835846)
     - main.c-Report-the-failure-when-dbus-launch-cannot-be-exec.patch
     - take the session's logind inhibitor in block-weak mode
     (Closes: #1107963, #1107965)
   * d/rules: include architecture.mk
Checksums-Sha1:
 8c570db31f09ab2eb7ac37e2be741ed582973247 2655 cinnamon-session_6.6.4-2.dsc
 c98b818b3cba5d4cc72dd24e1ae954a4cad5906b 158177 cinnamon-session_6.6.4.orig.tar.gz
 4ca2166f0410f92a30e7a887aa801273c3489333 12164 cinnamon-session_6.6.4-2.debian.tar.xz
 b92dc6fb1dddfa34851fe4765c447f9ee2f533db 8360 cinnamon-session_6.6.4-2_source.buildinfo
Checksums-Sha256:
 fc7e41c414e60ccde162400493b445ecc298c7e6633fff5f4cf6b4019e21ed24 2655 cinnamon-session_6.6.4-2.dsc
 8fc66c06622ccf834a503df79ae70a2fb6732b6f07b37435cedaa7d1c4154912 158177 cinnamon-session_6.6.4.orig.tar.gz
 76c1141808204c33bcb905db09b92392e5b518f3abe3773d43affb6090046bfa 12164 cinnamon-session_6.6.4-2.debian.tar.xz
 1ee12648ea7b11c31e452960ba0287813bb7db827d117861c0879a7e7c3eea8c 8360 cinnamon-session_6.6.4-2_source.buildinfo
Files:
 e2f15e4ec2341bd6fa31ba4b2d8fa664 2655 x11 optional cinnamon-session_6.6.4-2.dsc
 6b0f341593ff026533c281a7980b0797 158177 x11 optional cinnamon-session_6.6.4.orig.tar.gz
 df63bc3dfc5e09f8cd254f0e1ca7c1f0 12164 x11 optional cinnamon-session_6.6.4-2.debian.tar.xz
 1f78c2a90bf4fc8bed5cd26967ab7468 8360 x11 optional cinnamon-session_6.6.4-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEELEHRfLe4S9D5+1GzaAZorpB/EB0FAmrSezcACgkQaAZorpB/
EB39HQ//c5Jx9m+2A+BlFud6YQJnPqlbmfOO3HEQsh4dyGTE2EOf7Wi5WdR433aU
eC+MglnSvL/bTELOObaFIzZ/1xMU2eGoKG9Te723M2kwCQoriEscqRhHkDC1PbzK
UdiXUO4u4hoBNY+czpDjqWAXOlYvGIMoaohGmlJQRHW7wP06nm+fYNWj1j0XR4Hn
VQ+HVbMvbXqPLpOhwOLr8mV9HcsB16hztjBtPKRjVGw8dNDxPuOkFtDuEGLElAL+
Ct58BptHLAVT4v7Nn4N1KCyGGGuGERBKUEidCa2yrVxxVLIG7E2R4dy6PSxihfT3
vAM1rAPk4tJOR5h1DgB9UqSUBSoWiFrmLTpJPQTO+fnXuDy/ZLv87gxM3vfek3mt
1UXsMb05/KFqk5SPr4tZpiSWu7LWi4JbbhBXoFuyqUXySH/exVISZuDq6CccH8IL
1YI4N/E2Mt4MwlfHZ7IdGEPQ+sAEDg6Zt+0CXysNk7cT3K3lnBMU8PYjU4YnWOQv
jLKMHCeOko2O34VbV5SiNqr8JVkACxozbzUEGqr0iRytUOuP4OofcizRXBvJsP6d
h4fX6wsZg/9909EsReWlr0AZTn4IF70sM3I9deuT1qfGGdYXoorRr2ITUbUYbZ8F
0LZ1Eku2KUWqmqy/nzWA6ezzsx9V4RP+axkXOQtjOHJQsfB4wwM=
=gnik
-----END PGP SIGNATURE-----

#1107965#31
Date:
2026-10-16 19:49:26 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
cinnamon-session, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1107965@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Fabio Fantoni <fantonifabio@tiscali.it> (supplier of updated cinnamon-session package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 16 Oct 2026 21:28:13 +0200
Source: cinnamon-session
Built-For-Profiles: noudeb
Architecture: source
Version: 6.6.4-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Cinnamon Team <debian-cinnamon@lists.debian.org>
Changed-By: Fabio Fantoni <fantonifabio@tiscali.it>
Closes: 835846 1107963 1107965
Changes:
 cinnamon-session (6.6.4-2) unstable; urgency=medium
 .
   * d/patches:
     - use the running user D-Bus session bus instead of dbus-launch
     (Closes: #835846)
     - main.c-Report-the-failure-when-dbus-launch-cannot-be-exec.patch
     - take the session's logind inhibitor in block-weak mode
     (Closes: #1107963, #1107965)
   * d/rules: include architecture.mk
Checksums-Sha1:
 8c570db31f09ab2eb7ac37e2be741ed582973247 2655 cinnamon-session_6.6.4-2.dsc
 c98b818b3cba5d4cc72dd24e1ae954a4cad5906b 158177 cinnamon-session_6.6.4.orig.tar.gz
 4ca2166f0410f92a30e7a887aa801273c3489333 12164 cinnamon-session_6.6.4-2.debian.tar.xz
 b92dc6fb1dddfa34851fe4765c447f9ee2f533db 8360 cinnamon-session_6.6.4-2_source.buildinfo
Checksums-Sha256:
 fc7e41c414e60ccde162400493b445ecc298c7e6633fff5f4cf6b4019e21ed24 2655 cinnamon-session_6.6.4-2.dsc
 8fc66c06622ccf834a503df79ae70a2fb6732b6f07b37435cedaa7d1c4154912 158177 cinnamon-session_6.6.4.orig.tar.gz
 76c1141808204c33bcb905db09b92392e5b518f3abe3773d43affb6090046bfa 12164 cinnamon-session_6.6.4-2.debian.tar.xz
 1ee12648ea7b11c31e452960ba0287813bb7db827d117861c0879a7e7c3eea8c 8360 cinnamon-session_6.6.4-2_source.buildinfo
Files:
 e2f15e4ec2341bd6fa31ba4b2d8fa664 2655 x11 optional cinnamon-session_6.6.4-2.dsc
 6b0f341593ff026533c281a7980b0797 158177 x11 optional cinnamon-session_6.6.4.orig.tar.gz
 df63bc3dfc5e09f8cd254f0e1ca7c1f0 12164 x11 optional cinnamon-session_6.6.4-2.debian.tar.xz
 1f78c2a90bf4fc8bed5cd26967ab7468 8360 x11 optional cinnamon-session_6.6.4-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEELEHRfLe4S9D5+1GzaAZorpB/EB0FAmrSezcACgkQaAZorpB/
EB39HQ//c5Jx9m+2A+BlFud6YQJnPqlbmfOO3HEQsh4dyGTE2EOf7Wi5WdR433aU
eC+MglnSvL/bTELOObaFIzZ/1xMU2eGoKG9Te723M2kwCQoriEscqRhHkDC1PbzK
UdiXUO4u4hoBNY+czpDjqWAXOlYvGIMoaohGmlJQRHW7wP06nm+fYNWj1j0XR4Hn
VQ+HVbMvbXqPLpOhwOLr8mV9HcsB16hztjBtPKRjVGw8dNDxPuOkFtDuEGLElAL+
Ct58BptHLAVT4v7Nn4N1KCyGGGuGERBKUEidCa2yrVxxVLIG7E2R4dy6PSxihfT3
vAM1rAPk4tJOR5h1DgB9UqSUBSoWiFrmLTpJPQTO+fnXuDy/ZLv87gxM3vfek3mt
1UXsMb05/KFqk5SPr4tZpiSWu7LWi4JbbhBXoFuyqUXySH/exVISZuDq6CccH8IL
1YI4N/E2Mt4MwlfHZ7IdGEPQ+sAEDg6Zt+0CXysNk7cT3K3lnBMU8PYjU4YnWOQv
jLKMHCeOko2O34VbV5SiNqr8JVkACxozbzUEGqr0iRytUOuP4OofcizRXBvJsP6d
h4fX6wsZg/9909EsReWlr0AZTn4IF70sM3I9deuT1qfGGdYXoorRr2ITUbUYbZ8F
0LZ1Eku2KUWqmqy/nzWA6ezzsx9V4RP+axkXOQtjOHJQsfB4wwM=
=gnik
-----END PGP SIGNATURE-----