hopefully someone in this forum can enlighten me about what is causing my problem.
First off, I use Ubuntu 18.04 LTS with Kernel 4.19.8 (generic I guess?).
I installed pm-utils and uswsusp since sudo systemctl hibernate
only causes the laptop screen to flicker and hang. Suspend (meaning closing the lid) works flawlessly though.
Now the problem:
Using ~15GB swap partition (8GB RAM) the first sudo pm-hibernate
succeeds, it writes the image and restores the session. When I repeat this after that, it does not seem to write the image again and hangs, forcing me to shut down using the power button. When hibernating and rebooting afterwards, it does not seem to work a second time as well, meaning only when I shut down completely, it works.
I added my UUID in /etc/default/grub at grub_cmdline_linux_default=... resume=...
and updated grub sudo update-grub
When trying out as root echo platform > /sys/power/disk
and echo disk /sys/power/state
everything freezes, similarly to using sudo systemctl hibernate
. Similarly for echo shutdown
and echo reboot
I tried out clearing the cache, using https://askubuntu.com/a/420152/902558 approach, meaning sync && sudo /sbin/sysctl vm.drop_caches=3
which returns vm.drop_caches=3
in the terminal. After rebooting and trying out sudo pm-hibernate
, everything freezes.
I use a Lenovo Yoga 700 14isk which has a Nvidia GPU as secondary gpu, although I don't have any nouveau drivers etc. installed. Perhaps this information can be useful.
If you need more information, please feel free to ask, although bare in mind that my Ubuntu knowledge is exhausted pretty quickly.