Sample Header Ad - 728x90

Linux Laptop won't hibernate, LVM on LUKS FDE but everything configured OK?

1 vote
1 answer
481 views
My Linux laptop (openSUSE Tumbleweed) should hibernate but won't and I do not understand why. I have had similar systems (Arch Linux) hibernate under the same circumstances (LVM on LUKS). Here is my config: - EFI-GRUB boot - LVM on LUKS; LVM has root, home and swap partitions - Swap enabled and mounted by UUID in /etc/fstab, swapon -s shows it being active. It is 32GB in size with 16GB RAM installed. - GRUB has resume statements in the default config and /boot/grub2/grub.cfg (see below). Here are a few commands to check hibernation capabilities of kernel and system: # zgrep HIBERN /proc/config.gz CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_HIBERNATION_HEADER=y CONFIG_HIBERNATE_CALLBACKS=y CONFIG_HIBERNATION=y CONFIG_HIBERNATION_SNAPSHOT_DEV=y CONFIG_HIBERNATION_COMP_LZO=y # CONFIG_HIBERNATION_COMP_LZ4 is not set CONFIG_HIBERNATION_DEF_COMP="lzo" So the kernel *is* configured to support hibernation. This boot (by GRUB) has: # cat /proc/cmdline BOOT_IMAGE=/boot/vmlinuz-6.11.6-2-default root=/dev/mapper/cryptolvm-opensuse splash=silent resume=/dev/mapper/cryptolvm-swap mem_sleep_default=deep security=selinux selinux=1 enforcing=1 mitigations=auto I tried varying resume= using UUID=.... with the swap's UUID with no effect. # cat /sys/power/state freeze mem Here disk is missing but I do not know why. Of course this will not work now: # systemctl hibernate Call to Hibernate failed: Sleep verb 'hibernate' is not configured or configuration is not supported by kernel Exit 1 Does the kernel depend on the BIOS to enable hibernation? (Not to my knowledge.) In this case, can I check something there?
Asked by Ned64 (9256 rep)
Nov 10, 2024, 03:18 PM
Last activity: Jan 6, 2025, 07:21 AM