I've just recently installed Debian 11 on my laptop, but I can not get hibernation to my swapfile working.
After adding the swapfile to my /etc/fstab, the "Hibernation" option was added automatically to the logoff screen in KDE Plasma, but it will not resume to my old session.
I read that I have to edit /etc/initramfs-tools/conf.d/resume to point to the file, but whatever I enter, I get initramfs/cryptsetup errors:
Code: Select all
RESUME=/dev/mapper/md1_crypt/swapfile
Code: Select all
sudo update-initramfs -u
...
W: initramfs-tools configuration sets RESUME=/dev/mapper/md1_crypt/swapfile
W: but no matching swap device is available.
Code: Select all
RESUME=/swapfile
Code: Select all
sudo update-initramfs -u
...
cryptsetup: ERROR: Couldn't resolve device /swapfile
Code: Select all
RESUME=/dev/mapper/md1_crypt
I know I had hibernation working on Debian 10, but I can't remember having such issues with setting it up. However, I also noticed that both helper packages "hibernate" and "uswsusp" are no longer available.
Does somebody know what goes wrong here, because I can see the active swapfile in "free", but it just won't resume.