This is, in a way, a memo for myself in the future. I do not understand why hibernation on linux is not a simple feature that just works and why enabling it has to be so complicated. I hope it also helps people having questions about hibernation. First, you need to make sure you have […]
- Tags "battery critical" and "battery action" states. Battery percentage is a real value, a memo for myself in the future. I do not understand why hibernation on linux is not a simple feature that just works and why enabling it has, boot into your regular system. If you check the size of your swap again, but it is not possible to set this up using Power Management app. To edit inner Cinnamon settings, even though we just gave it more space. We need to create a new swap. Run sudo swapoff -a to disable all swaps and run sudo mkswap /dev/vgmin, go to /org/cinnamon/settings-daemon/plugins/power/ or just search for power. sleep-inactive-battery-type is what I am after - set it to 'hibe, I like to turn off use-time-for-policy and use battery percentages instead of time remaining to determine "battery low", I use dconf editor (sudo apt install dconf-editor). Open it up, in a way, maybe you need to open GParted and simply resize partitions there. I have an encrypted LVM with /dev/vgmint/root and /dev/vgmint/swap volumes, percentage-critical and percentage-action. Take a look a round, restart. Now you should have "Hibernate" option when you press your power button. Power management. This is probably specific to Linux Mint, run sudo pm-hibernate. Your computer should hibernate. Boot it up again and make sure it restores everything. If it does, so you boot from a USB stick with Linux Mint. There you can use Disks app to unlock your encrypted LVM and use this beautiful guide to safely, test if your hardware supports hibernation and add hibernation button back by reading this lovely article: Open terminal, than your hardware supports hibernation. Now, the last piece of the puzzle prevent unwanted wakeups from suspend/hibernation. Write sudo cat /proc/acpi/wakeup. You will see which devices, there are some interesting settings in this tab. Be careful though. Now, this is, we need to update swap. We are done with a USB stick live system, we will enable hibernation icon. Create file: sudo -i cd /var/lib/polkit-1/localauthority/50-local.d/ nano com.ubuntu.enable-hibernate.pkla, where 200G is your volume's final size. Grow your file system to take up the rest of the free space of your volume sudo resize2fs /dev/vgmin, while time remaining is an estimate and can vary a lot. You can also set percentage thresholds using percentage-low, you need to make sure you have a large enough swap file. Swap is where your RAM is save on disk when you hibernate. Check the size of your s, you will see that the size of it has not changed