I am trying to get my hibernation working on my Librem 14, PureOS 10 KDE flavor, build as of 2021-12-18. I am running Pureboot. So far I read a lot of the forums here and on the internet on the topic and I got as close as I am now but I’d need some help to move forward.
When installing PureOS, I used manual partitioning to create an encrypted swap partition with size of ~1.5*ram (30gb). I selected to encrypt the partition and provided a password for that partition (sorry for the photo of the screen):
After install I do see a hibernate button and apparently it works, but I cannot wake up from my hibernate state. When I unencrypt drives I first unlock my root partition with my password and then it searches for resume device, but shows an error: “Couldn’t assume device type, choosing default (Plain)”.
I went to check /etc/crypttab, I found this:
luks-3a8e828d-5f7c-44ba-9647-efc80de7eab7 /dev/disk/by-id/nvme-Samsung_SSD_970_PRO_512GB_S5HRNS0R101615A-part2 /dev/urandom swap,cipher=aes-xts-plain64,size=256,noearly
(cannot paste more screenshots due to a new account here)
From what I see the swap partition is using a random password even though I set an encryption password in PureOs installer. I assume, if I can successfully make sure that the password is not random anymore, I should be able to open the partition during startup and resume from hibernation. I have no idea how to do that though, at this point my Linux knowledge is pretty sporadic and I do not have a slightest picture of what exactly happens when the laptop boots and how to do what I need. I am also not sure how to back up my system so that if I mess up I’d still be able to revert changes and not reinstall the system. When I tried to change the entry in /etc/crypttab from /dev/random/ to something else the system failed to load.
If anyone could help me move forward I would really appreciate it. Thanks!