<SOLVED> Hibernation from LM 21.2

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
dan63043
Level 1
Level 1
Posts: 20
Joined: Fri Oct 06, 2023 6:34 pm

<SOLVED> Hibernation from LM 21.2

Post by dan63043 »

Setting up hibernation seems to change from version to version. Couldn't find anything relevant to Linux Mint 21.2. What I'd like to do is hibernate from "Battery Applet with Monitoring and Shutdown (BAMS) (batterymonitor@pdcurtis) Version 2.0.0

What I've done so far:
$ cat /etc/initramfs-tools/conf.d/resume
RESUME=UUID=895458ff-b786-461e-9aef-f41d6ffabbe7

sudo update-initramfs -u -k all

$ grep hibernate ~/.local/share/cinnamon/applets/batterymonitor@pdcurtis/5.4/suspendScript
systemctl hibernate

$ reboot

Then I let the battery run down, and expected it to hibernate at about 10%. Instead, when I restarted the machine, the battery was completely drained. This is on a fairly old AMD laptop that has 20GB of RAM and 32 GB swap. The RESUME UUID matches the swap partition (which is always completely free.)

Any ideas?
Last edited by LockBot on Sun Apr 14, 2024 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
dan63043
Level 1
Level 1
Posts: 20
Joined: Fri Oct 06, 2023 6:34 pm

Re: <SOLVED> Hibernation from LM 21.2

Post by dan63043 »

I deleted the "resume" file and reran update-initramfs -u -k all

In /etc/default/grub, I put:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=895458ff-b786-461e-9aef-f41d6ffabbe7"

Then I rebooted and tested hibernation, and it worked.
christiand
Level 1
Level 1
Posts: 9
Joined: Fri Jun 24, 2022 12:56 pm

Re: <SOLVED> Hibernation from LM 21.2

Post by christiand »

I'm on LMDE 6 "Faye", swap partition encrypted inside LVM. To get resume to work I had to append resume=UUID=swap-partition-uuid inside /etc/default/grub.d/50_lmde.cfg in row GRUB_CMDLINE_LINUX_DEFAULT=...
Locked

Return to “Other topics”