Hi!
Recently my laptop started to not come back from hibernation (or suspend-then-hibernate) and instead booted up fresh, as if there was no hibernation data written to the encrypted swap partition. This used to work perfectly (after learning I need to unload the touchpad driver before suspending - it’s a Tongfang GK5CP0Z).
kernel:
5.6.4-1-default
boot parameters:
dracut-cmdline[307]: Using kernel command line parameters: rd.luks.uuid=luks-3482b2b4-9af9-4969-8c49-c07d1364e06f rd.lvm.lv=system/root root=/dev/mapper/system-root rootfstype=btrfs rootflags=rw,noatime,ssd,space_cache,subvolid=1800,subvol=/@/.snapshots/253/snapshot,subvol=@/.snapshots/253/snapshot BOOT_IMAGE=/boot/vmlinuz-5.6.4-1-default root=/dev/mapper/system-root resume=/dev/system/swap acpi_osi=! acpi_osi=Linux acpi_os_name=Linux acpi_rev_override=1 nouveau.modeset=0 nouveau.runpm=0 pcie_aspm=force drm.vblankoffdelay=1 scsi_mod.use_blk_mq=1 mem_sleep_default=deep mitigations=auto
systemd:
systemd 245 (+suse.83.gc5aa158173)
+PAM -AUDIT +SELINUX -IMA +APPARMOR -SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 -IDN +PCRE2 default-hierarchy=hybrid
When I had my system hibernated and I start it up again it boots normally instead of resuming. Doing a
journalctl -b-1
I could see that hibernation and sleep were both never finished.
For example, here from last night - I have suspend-then-hibernate enabled, with mem_sleep_default=deep (this config has worked perfectly in the past).
First, here the process of suspend:
Note how abrupt the suspend log ends. The process is not finished!
Then, two hours later (the default delay for suspend-then-resume) and with not a single log line in between, follows this (note how it starts by continuing the suspend process at resume time!):
Here is the end of the log. The next thing is starting a new boot, where I as a user expect to resume from hibernation but instead the laptop boots up normally, losing all runtime data!
You can see that when the laptop wakes up from deep mem sleep (S3) after 2h to hibernate, it starts by finishing the suspend process! Then, the hibernation image is never written, so the machine has nothing to resume from.
What can I do to fix this? I have not been able to find a known bug, but I also was not entirely sure where to look or if to report this as an opensuse tumbleweed bug. I am not aware of any changes I would have made myself to cause this.
I would very much appreciate your help!
Leonie