From a fresh install using an ext4 encrypted fs including 16.5gb encrypted swap partition my system never resumes from hibernation, boots up as if I’ve done a restart/shutdown with all app state/data lost. I’ve got 16gb ram.
While resuming/booting it mentions openswap has failed, but I can’t find a mention of this using dmesg or journalctl.
While hibernating
Sep 09 10:12:21 inspiron-14-5425 systemd[1]: Starting Hibernate...
Sep 09 10:12:21 inspiron-14-5425 kernel: PM: Image not found (code -16)
Sep 09 10:12:21 inspiron-14-5425 systemd-sleep[300144]: Entering sleep state 'hibernate'...
Sep 09 10:12:21 inspiron-14-5425 kernel: PM: hibernation: hibernation entry
I don’t know if kernel: PM: Image not found (code -16)
is an issue?
swapon -v
NAME TYPE SIZE USED PRIO
/dev/dm-1 partition 16.5G 0B -2
cat /proc/swaps
Filename Type Size Used Priority
/dev/dm-1 partition 17353728 0 -2
cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=2f42a0e3-affa-4b4e-8387-09e46b6a5650 rw cryptdevice=UUID=de401af2-7847-4411-a933-4a31273ce6e8:luks-de401af2-7847-4411-a933-4a31273ce6e8 root=/dev/mapper/luks-de401af2-7847-4411-a933-4a31273ce6e8 resume=/dev/mapper/luks-452feb95-f3a5-4724-9a44-1564feba49e7 loglevel=3 nowatchdog nvme_load=YES
cat /etc/mkinitcpio.conf
HOOKS="base udev autodetect modconf block keyboard keymap consolefont encrypt openswap resume filesystems fsck"
cat /etc/fstab
/dev/mapper/luks-452feb95-f3a5-4724-9a44-1564feba49e7 swap swap defaults 0 0
/etc/openswap.conf
is empty
I’ve never seen any usage of my swap partition. Where do I go from here?