My knowledge of this is quite limited. I'm using an MSI GS75 Stealth 95G laptop, with an Ubuntu 19.04 and Windows 10 dual boot.
sudo systemctl hibernate seems to just turn off my computer. When I boot back up, none of my programs are back.
At first, I checked my swap size with
sudo swapon --show. Because it was 2 GB, and my laptop has 32 GB of RAM, I resized the swap size to 32 GB, following this tutorial. The swap size was sucessfully changed. However, the
sudo systemctl hibernate command still didn't work.
sudo swapon --show resulted in the following:
NAME TYPE SIZE USED PRIO /swapfile file 32G 0B -2
However, the command
grep swap /etc/fstab resulted in:
/swapfile none swap sw 0 0
This is all I could figure out. I tried many different things, several tutorials, and nothing seemed to work.
Thanks very much for the help.