Hibernation with Librem 13v3/2

I’m going to circle back around on this one, as I FINALLY got it working.

Granted i’m on Ubuntu 20.04 now, but this should work on PureOS as well provided you have the space for a swap.

I’m only going to give a brief what I did below, but you’ll need to do some searching online if that is not enough for you.

The first thing you need to do is create a swap partition that is big enough to hold your session. Using the amount of ram you have installed is required, as anything smaller and hibernation will not work. *

Once you have created said partition and made it active, you’ll need to get the UUID for the new partition, and add it to your grub, and appending to the default: resume=UUID=YOUR_SWAP_UUID

From here update grub (sudo update-grub).

On Ubuntu, you’ll need to unmount the 1gb swap it creates by default, before trying it out. Once you have done all of this you would type: sudo systemctl hibernate

If it works, your screen goes blank as the contents of ram are dumped into the swap partition. When that is finished the machine turns off.

Turning it back on, you’ll need to enter passwords to decrypt your encrypted partitions. Once that is successful, you’ll see that it says it is resuming using the UUID image you specified.

Viola. It works. No more draining battery when you know you wont be using the laptop for an extended amount of time. Welcome to the 21st century.

  • if you wish for this partition to be encrypted, you’ll need to sort that out. Disks and gparted can be used in conjunction to resize (shrink or expand) any of your current Luks partitions. Very useful tools for sure.
1 Like