The old Z16 way of getting hibernation to work does not work in 17 - the version of Gnome is too new Simpler Off Menu from Tweaks to work ([HOW TO] Enable Hibernate Option on ZorinOS 16 or other Gnome distros). Would be nice to get an option in the menu but one thing at a time...
It's a Microsoft Surface Pro 3 with 4gb ram. Everything works perfectly (have run 16 on it fine for years, 17 seems fine) but I can't work out why hibernation won't work
I know you said you updated grub, but did you update grub after updating lines of grub?
Update Grub:
sudo update-grub
Check again?
No joy?
Check logind.conf file with sudo [nano,vim,etc.]/etc/systemd/logind.conf and uncomment the below line if it is (remove #). Remember to save! This will allow you an optional way to test hibernation easily.
#HandleSuspendKey=suspend hibernate
Restart machine and then sudo systemctl hibernate as before, or alternatively, you can just press the hibernate button you just enabled on your keyboard. If it exists.... dun. dun. dun.
Look in Disks Utility (gnome-disks) or gparted (apt install) partition management applications and double check your UUID for the disk on which you want to install the 8GB swap. Does it match what you're placing in your fstab and GRUB?
Also double check that disk's mount location. Is it actually /dev/sda2? Or is that location pointing to the Live USB identified location?
Yep, thanks, I'd checked this earlier but double checked again, fstab and grub both have correct UUID
sda2 is the correct location; Gparted says filesystem is 'linux-swap', partition flag is 'swap', status is 'active' (quote marks mine). No usb sticks connected!
Have you had the chance to test @Aravisian's recommendation to verify if the appropriate Surface kernel is being used?
Kernels are frequently used to call forth the right driver module files to use for any given task. Those tasks require certain hardware to execute those tasks properly. If your kernel does not have driver support for hibernation, but you know for sure your Surface has that capability based on past experience, you might need to install the correct kernel and retest?
Hi, no I hadn't tried this yet...but have now. Confirmed kernel running, still no dice! I am beyond the limits of my limited Linux knowledge now
One this tho...I never actually had hibernation running on my SP3...I couldn't get it working before as I'd opted for encrypted drive on ZOS16. When I got some login issues this was an opportunity to upgrade and get hibernation. My SP Go does run hibernation fine on Opens use but this is obviously a different model and completely different distro
So perhaps it can't be done on SP3...I'll need to make a clonezilla and try and find a Debian based distro that does hibernation out of the box to test...unless someone on this forum can confirm either way
Hi, I just went through the hassle of activating hibernate and followed mainly the instructions by boldos.
The one thing I had to do that none of the instructions mentioned - my system was installed with default options, so it had the default swapfile, which did not disappear when I created the swap partition and subsequently got in the way. (To check, run "swapon --show", if there is more than 1 entry, it might be the issue why hibernation is not working).
"sudo swapoff /swapfile" got (temporarily) rid of it, and after that the hibernation worked like a charm.
Unfortunately, I observed that after a reboot the default swapfile will return, so I assume that I have to repeat this every time I reboot the computer. If anyone could point out how to permanently get rid of it, I'd appreciate it.
to show that swapfile. Generally, they are in Root so would be /swapfile
After you have verified that is its correct path placement, you can remove it with