I'm having trouble getting hibernation to work on my Linux system. I've created a swap file at /swapfile, allocating 32GB of space for my 16GB of RAM, but when I try to hibernate using the command 'sudo systemctl hibernate', I get an error saying there's not enough suitable swap space available. I've made sure the UUIDs in fstab, grub, and initramfs are all correct and I've verified them using blkid. When I run 'sudo update-initramfs -u', it also warns that there is no matching swap device available. I've disabled Secure Boot and followed all the tutorials carefully. Can anyone help me figure out why hibernation isn't working?
2 Answers
I recently switched to Manjaro, and it configured hibernation without any issues right out of the box. If you're experimenting with Linux, it might be worth considering other distros in the future if hibernation is a key feature for you.
Have you checked if SNAP is still installed on your system? I had a similar issue with hibernation not working because SNAP processes were running in the background. Once I removed SNAP, hibernation started working perfectly again.
Yes, SNAP is currently installed on my machine. Could you explain how you removed it?

Thanks for the input! I'm actually trying to focus on Ubuntu for now since I'm still learning programming and want to stick with one distro for a while.