Hibernation does not work

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
miggoycor

Hibernation does not work

Post by miggoycor »

When I press hibernate, the machine seems to respond and power down. However, when I resume, it turns on normally, as in it was booted, not hibernated. Nothing was saved and Mint started a new session. It did not even remember it went on hibernation. I made sure the amount of active RAM was less than the amount of the Swap Partition, but nothing was saved, apparently.

I have 2 gig ram and 2 gig swap.

I am using Linux Mint 14 Cinammon.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
DataMan

Re: Hibernation does not work

Post by DataMan »

It's been a really long time since I had to deal with the suspend/hibernate issues. I put together a small paper a while back dealing with the topic in Mint Debian. I'm not certain if it applies to your situation. Suggest taking a look at the paper and see if the resume is set properly. If not the paper should address how to fix it.

http://www.boomerclan.info/techpaperslx.html

Hope this helps.

-DataMan
SyncroMaverick

Re: Hibernation does not work

Post by SyncroMaverick »

It seems to me, that the resume-partition is not set on installation. You have to edit /etc/initramfs-tools/conf.d/resume

Code: Select all

RESUME=UUID=<swap_UUID>
where <swap_UUID> has to be the same as for the swap-partition in your /etc/fstab
After editing /etc/initramfs-tools/conf.d/resume you have to run

Code: Select all

sudo update-initramfs -u
edusson

Re: Hibernation does not work

Post by edusson »

The step by SyncroMaverick is correct, but I was missing also telling grub that it needed to look for the swap partition. I found the solution here (just go there if the link works):
http://chriseiffel.com/everything-linux ... 4-mint-11/

Reposting here in case one day link goes away. Basically there are few problems that can create the issue. The link goes through several (check it out if this doesn't fix it) but this fix is addressing the problem where GRUB (the boot loader) doesn't know where to look for the swap partition, at boot time. All what I needed to do was:

sudo gedit /etc/default/grub

Look for the line that starts with. GRUB_CMDLINE_LINUX

Add the following:

GRUB_CMDLINE_LINUX=”resume=UUID=Your-SWAP-UUID other-option=value”

where in my case, my Your-swap-UUID was b71d9df1-1b6a-4320-9046-0ec62a49cea0

To find out what number is that you can do cat /etc/fstab
"You may or may nor have other options. Be careful that you type in the correct path or UUID for the drive here. If you don’t then when you try to resume you will have to boot in safe mode to fix the drive name and re-run the update-grub script."

Then save the file and update grub with the following command:

sudo update-grub

And then do, if you had not, the steps by SyncroMaverick (basically entering the swap UUID in another file too)

Good luck!
Locked

Return to “Hardware Support”