My current setup:
- Ubuntu 18.04.1
- Encrypted partition with an LVM2 on it.
- root (/dev/mapper/it--vg-root)
- swap (/dev/mapper/it--vg-swap_1)
- Random cryptswap that maps to /dev/dm-3, whatever that might be, that seems to be gone now.
What have I done:
- Changed the swap for the system to
- Changed the UUID in
/etc/initramfs-tools/conf.d/resumeto the new swap partition and ran
sudo update-initramfs -u
GRUB_CMDLINE_LINUX_DEFAULT=variable with the UUID of the new swap partition and ran
- I created a file
/etc/systemd/sleep.confwith the following content:
- I rebooted the whole system
Then I tested two cases:
The system goes to hibernation properly. It boots back up, asks me for the decryption password and opens up all the windows and applications that I had open before.
The systemd goes to suspend mode. My power key indicates that by blinking.
After around ten seconds (mind the config in
sleep.conf) it turns back on and the screen goes to a blinking terminal cursor.
Then it goes down to what seems to be hibernation.
No indications that the system is still on. After pressing the power button the system comes back up, asking for the encryption key and continues to boot like it should after I typed it in.
After logging in all previously opened applications are not open anymore. Everything is closed and lost.
It seems like the computer was either shut down completely or the ram that was dumped after suspension was in fact empty, because the suspension already dumped it to the swap partition.
But those are just random theories.
My question is: how would I be able to debug this problem and find the problem?
If you have an answer to why this happening, I would take that, too :)