Page 2 of 2

Re: How I got hibernate to work

Posted: Tue Nov 15, 2011 3:19 am
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! :)

Re: How I got hibernate to work

Posted: Tue Nov 15, 2011 3:22 am
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

Re: How I got hibernate to work

Posted: Thu Nov 24, 2011 3:37 am
by 5oak
Bump. Please see my previous reply. Any help would be greatly appreciated!

Re: How I got hibernate to work

Posted: Mon Dec 19, 2011 8:20 am
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?

Re: How I got hibernate to work

Posted: Mon Dec 26, 2011 8:32 pm
by DataMan
They should be the same. Use the value for blkid to seed both files (if required).

-DataMan

Re: How I got hibernate to work

Posted: Mon Jan 09, 2012 5:42 pm
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 :?

Re: How I got hibernate to work

Posted: Mon Jan 09, 2012 6:38 pm
by xenopeek
Moved here by moderator

Re: How I got hibernate to work

Posted: Thu Mar 22, 2012 9:52 am
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