Bug#1056135: regression: hibernation issues with 255~rc2-1
Christoph Anton Mitterer
calestyo at scientia.org
Fri Nov 17 13:20:14 GMT 2023
Package: systemd
Version: 255~rc2-1
Severity: normal
Hey.
The following two issues are both solved when downgrading to 254.5-1 (and completely
rebooting the system, before trying again - they also shop up again, only after
completely rebooting the upgraded systemd again):
1) I have a somewhat special hibernation setup.
Hibernation goes to a btrfs swap file on top of dm-crypt.
The following unit files are used for that:
/etc/systemd/system/data-swap-hibernation.swap:
[Unit]
Before=systemd-hibernate.service
StopWhenUnneeded=true
[Swap]
What=/data/swap/hibernation
Options=noauto
[Install]
RequiredBy=systemd-hibernate.service
I also have a /etc/systemd/system/hibernation-cleanup.service:
[Unit]
Description=synchronise cached writes to persistent storage and free page cache before hibernation in order to minimise the image
Before=hibernate.target
[Service]
Type=oneshot
ExecStart=sync
ExecStart=@sh %n:sh -c 'printf 1 >/proc/sys/vm/drop_caches'
[Install]
WantedBy=hibernate.target
but I don't think this has anything to do with the issue here.
There are symlinks:
/etc/systemd/system/systemd-hibernate.service.requires/data-swap-hibernation.swap -> /etc/systemd/system/data-swap-hibernation.swap
/etc/systemd/system/hibernate.target.wants/hibernation-cleanup.service -> /etc/systemd/system/hibernation-cleanup.service
Especially, the hibernation file may not be availabe (or activated as swap),
yet, when I go into hibernation.
This caused desktop environments (I use Cinnamon) not to show the "Hiberate"
button, which I've been able to solve via a:
/etc/systemd/system/systemd-logind.service.d/disable-hibernation-swap-check.conf:
[Service]
Environment="SYSTEMD_BYPASS_HIBERNATION_MEMORY_CHECK=1"
However, starting with 255~rc2-1 (but solved when going back to 254.5-1)
this no longer seems to have an effect. At least Cinnamon then doesn't show
the Hibernate button anymore.
2) When, because of (1), manually calling:
# systemctl hibernate
Call to Hibernate failed: No such file or directory
The above error occurs (which itdoes not with 254.5-1), but the system then
still seems to hibernate normally (and can also resume from that).
Notice also that I've changed logind.conf and sleep.conf.
Any ideas? I can forward the issue upstream if you think it's happening there.
Thanks,
Chris.
-- Package-specific info:
-- System Information:
Debian Release: trixie/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.5.0-4-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_DE.UTF-8, LC_CTYPE=en_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages systemd depends on:
ii libacl1 2.3.1-3
ii libapparmor1 3.0.12-1
ii libaudit1 1:3.1.1-1
ii libblkid1 2.39.2-6
ii libc6 2.37-12
ii libcap2 1:2.66-4
ii libcryptsetup12 2:2.6.1-5
ii libfdisk1 2.39.2-6
ii libgcrypt20 1.10.2-3
ii libkmod2 30+20230601-2
ii liblz4-1 1.9.4-1
ii liblzma5 5.4.4-0.1
ii libmount1 2.39.2-6
ii libpam0g 1.5.2-9.1
ii libseccomp2 2.5.4-2
ii libselinux1 3.5-1
ii libssl3 3.0.12-2
ii libsystemd-shared 255~rc2-1
ii libsystemd0 255~rc2-1
ii libzstd1 1.5.5+dfsg2-2
ii mount 2.39.2-6
ii systemd-dev 255~rc2-1
Versions of packages systemd recommends:
ii dbus [default-dbus-system-bus] 1.14.10-3
ii ntpsec [time-daemon] 1.2.2+dfsg1-2
Versions of packages systemd suggests:
ii libfido2-1 1.13.0-1+b1
ii libip4tc2 1.8.9-2
ii libp11-kit0 0.25.0-5
ii libqrencode4 4.1.1-1
pn libtss2-esys-3.0.2-0 <none>
pn libtss2-mu0 <none>
pn libtss2-rc0 <none>
ii polkitd 123-3
ii python3 3.11.4-5+b1
pn python3-pefile <none>
pn systemd-boot <none>
ii systemd-container 255~rc2-1
pn systemd-homed <none>
pn systemd-resolved <none>
pn systemd-userdbd <none>
Versions of packages systemd is related to:
ii dbus-user-session 1.14.10-3
pn dracut <none>
ii initramfs-tools 0.142
ii libnss-systemd 255~rc2-1
ii libpam-systemd 255~rc2-1
ii udev 255~rc2-1
-- Configuration Files:
/etc/systemd/logind.conf changed:
[Login]
HandleSuspendKey=ignore
HandleSuspendKeyLongPress=ignore
HandleLidSwitch=lock
HandleLidSwitchExternalPower=lock
HandleLidSwitchDocked=lock
/etc/systemd/sleep.conf changed:
[Sleep]
HibernateMode=shutdown platform
-- no debconf information
More information about the Pkg-systemd-maintainers
mailing list