Hibernation? Using it?

You know, I hadn’t looked at hibernation on Linux on a long time due to many issues with it in the past, but you twigged me to give it a shot again, and lo and behold, it… just works?

I’m honestly a little surprised!

And it works around an issue where, if I suspended my laptop while plugged into my USB dock, then unplugged, it would fail to wake up (and vice versa). With hibernation it works fine.

A couple tips for folks who want to try this:

  1. Make sure you have a swap space (either a partition or a file) at least as large as your physical memory.
  2. Update /etc/default/grub and to the kernel arguments add “resume=UUID=[uuid of swap space]”. You can get the UUID from blkid.

Then you can test with “systemctl hibernate”.

If you’re happy with it, you can integrate hibernate into your system with some tips from here:

and here:

https://ubuntuhandbook.org/index.php/2020/05/lid-close-behavior-ubuntu-20-04/

6 Likes