What is hibernation?
Hibernation, also known as suspend to disk, is powering off a computer while retaining its state. In hibernation, the computer needs no power: it can be unplugged. After turning the computer on again, the system is exactly as it was before entering hibernation.
Prerequisite
Hibernation requires a swap partition at least as large as the main memory. The rest of this manual assumes the existence one single such partition. Executing the following command in a terminal shows how much "Mem" and "Swap" the system has in "total" (first column):
$ free
If the system has no (or a too small) swap partition, it can be created (or enlarged) from a GNU/Linux live system such as Trisquel's, for instance using GParted, which is graphical interface to GNU Parted.
Setting up hibernation
To hibernate/resume Trisquel 11, Linux must be given the identification of the swap partition. Executing those commands in a terminal does that:
$ sudo sed -i "s/GRUB_CMDLINE_LINUX_DEFAULT=\"/&resume=UUID=$(blkid | grep swap | cut -d \" -f 2) /" /etc/default/grub
$ sudo update-grub
Revisions
04/14/2023 - 01:38
05/02/2023 - 10:14
08/03/2024 - 11:07
09/22/2024 - 02:39