How I got hibernate to work

Archived topics about LMDE 1 and LMDE 2
5oak

Re: How I got hibernate to work

Post by 5oak »

likenatural wrote:I got it to work by simply doing this change. Then Reume worked fine.
commented the earlier line and added the current syntax. It worked , i dont know whats missing in debian/LMDE to recognise the first commented syntax.

/etc/initramfs-tools/conf.d/resume:

#RESUME=UUID=xxxxxxxx
RESUME=/dev/disk/by-uuid/xxxxxxxx




Previously, the below error is happening in /var/log/dmesg.

PM: Hibernation image not present or could not be loaded.
Yep, that did the trick for me too. Cheers! :)
5oak

Re: How I got hibernate to work

Post by 5oak »

atupmok wrote:When I run the command sudo

Code: Select all

update-initramfs -u
I get the following messages.

update-initramfs: Generating /boot/initrd.img-2.6.38-8-generic-pae
cryptsetup: WARNING: failed to detect canonical device of /dev/sda6
Warning: No support for locale: en_US.utf8
Same error here. Does anyone know what this means? :? Hibernate isn't working as it should. It only works on some occasions but mostly not at all... :(

Also, I've tried both kernels (2 and 3) but the problem persists.

Please help. Should I give up on hibernate?

Best regards,

Stijn
5oak

Re: How I got hibernate to work

Post by 5oak »

Bump. Please see my previous reply. Any help would be greatly appreciated!
Last edited by 5oak on Tue Dec 20, 2011 7:25 am, edited 2 times in total.
watusimoto

Re: How I got hibernate to work

Post by watusimoto »

Trying to follow the instructions; the UUID for my swap disk shown by blkid is different than that listed in /etc/fstab. Should I change the fstab to match?
DataMan

Re: How I got hibernate to work

Post by DataMan »

They should be the same. Use the value for blkid to seed both files (if required).

-DataMan
krustybaguette
Level 3
Level 3
Posts: 153
Joined: Thu Mar 31, 2011 8:24 am

Re: How I got hibernate to work

Post by krustybaguette »

disko wrote:The is how I got install to resume from hibernate (LDME, but should work still).

use blkid to get the UUID number of your swap partition and make sure this number matches the one in /etc/fstab.

got to /etc/initramfs-tools/conf.d check the UUID in the resume file in this DIR matches the one you got from BLKID

run update-initramfs -u

reboot, ensure you system is set to hibernate, pop open a few programs to test and try to hibernate and resume.

Hope that helps, worked for me..
Running isadora on my Lenovo X60 laptop with two hard disks installed and two OS's on each disk. I tried this solution once before with only one hard disk and the DVD drive installed in the multi-bay. Now I only use the DVD occassionally so I am keeping both hard drives installed most of the time. Here's the results of:
step 1) blkid shows two swap partitions
/dev/sda5: UUID="f283b760-334f-4799-a454-1eecbee6b2fc" TYPE="swap"
/dev/sdb5: UUID="802286a9-86b8-4613-8ed5-bb79d37a07b0" TYPE="swap"

step 2) resume file showed the correct UUID for /dev/sdb5
RESUME=UUID=802286a9-86b8-4613-8ed5-bb79d37a07b0
(I notice that there is no mention of /dev/sdb5 OR /dev/sda5 and wonder if that's significant because)

step 3) I added a line to the resume file so it now reads as follows
RESUME=UUID=802286a9-86b8-4613-8ed5-bb79d37a07b0
RESUME-UUID=f283b760-334f-4799-a454-1eecbee6b2fc

Resulting in:
kenneth@kenneth-Lenovo-X60 ~ $ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-2.6.32-21-generic
/etc/initramfs-tools/conf.d/resume: 2: RESUME-UUID=f283b760-334f-4799-a454-1eecbee6b2fc: not found

corrected line 2 of above replacing "-" with "=" and ran update initramfs -u with following result
kenneth@kenneth-Lenovo-X60 ~ $ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-2.6.32-21-generic
cryptsetup: WARNING: found more than one resume device candidate:
UUID=802286a9-86b8-4613-8ed5-bb79d37a07b0
UUID=f283b760-334f-4799-a454-1eecbee6b2fc

I am now going to try rebooting and see what happens. I'll be back to report results.

UPDATE: After rebooting, creating a test document in Libre Office, running Guayadeque, I did Menu/Quit/Hibernate with same result. Screensaved starts and then freezes. Only way out is to power down with the power button and then reboot. Seems like when I was previously running LM 10 I could recover from suspend and hibernate but not with LM11, 12, and now LM9. It is frustrating to say the least.

2nd UPDATE: Dead in the water! I tried to resolve the problem by editing /etc/fstab where UUID had gotten swapped from /dev/sda5 to /dev/sdb5 Strangely enough Bodhi Linux boots, suspends, and hibernates just fine, but at present I cannot boot into isadora. I tried editing /etc/initramfs-tools/conf.d/resume back to what it was from within Bodhi, but file permissions would not permit. How do I fix this mess? Worst case I reinstall LM9 after finding a safe place for /home.
All suggestions considered and welcomed :?
Last edited by krustybaguette on Tue Jan 10, 2012 1:14 am, edited 2 times in total.
User avatar
xenopeek
Level 25
Level 25
Posts: 29595
Joined: Wed Jul 06, 2011 3:58 am

Re: How I got hibernate to work

Post by xenopeek »

Moved here by moderator
Image
ItalianBoy

Re: How I got hibernate to work

Post by ItalianBoy »

krustybaguette wrote:
step 3) I added a line to the resume file so it now reads as follows
RESUME=UUID=802286a9-86b8-4613-8ed5-bb79d37a07b0
RESUME-UUID=f283b760-334f-4799-a454-1eecbee6b2fc

Resulting in:
kenneth@kenneth-Lenovo-X60 ~ $ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-2.6.32-21-generic
/etc/initramfs-tools/conf.d/resume: 2: RESUME-UUID=f283b760-334f-4799-a454-1eecbee6b2fc: not found

corrected line 2 of above replacing "-" with "=" and ran update initramfs -u with following result
kenneth@kenneth-Lenovo-X60 ~ $ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-2.6.32-21-generic
cryptsetup: WARNING: found more than one resume device candidate:
UUID=802286a9-86b8-4613-8ed5-bb79d37a07b0
UUID=f283b760-334f-4799-a454-1eecbee6b2fc

:?
You have to insert only one UUID, the one you want to use for swap, in the resume file
Locked

Return to “LMDE Archive”