How I got hibernate to work

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read this

Re: How I got hibernate to work

Postby 5oak on Tue Nov 15, 2011 3:19 am

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! :)
User avatar
5oak
Level 1
Level 1
 
Posts: 31
Joined: Fri Jan 25, 2008 4:39 pm

Linux Mint is funded by ads and donations.
 

Re: How I got hibernate to work

Postby 5oak on Tue Nov 15, 2011 3:22 am

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
User avatar
5oak
Level 1
Level 1
 
Posts: 31
Joined: Fri Jan 25, 2008 4:39 pm

Re: How I got hibernate to work

Postby 5oak on Thu Nov 24, 2011 3:37 am

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.
User avatar
5oak
Level 1
Level 1
 
Posts: 31
Joined: Fri Jan 25, 2008 4:39 pm

Re: How I got hibernate to work

Postby watusimoto on Mon Dec 19, 2011 8:20 am

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?
watusimoto
Level 1
Level 1
 
Posts: 5
Joined: Mon Dec 19, 2011 6:39 am

Re: How I got hibernate to work

Postby DataMan on Mon Dec 26, 2011 8:32 pm

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

-DataMan
Linux'd since 2005 Linux ID 422356 Ubuntu ID 15015
User avatar
DataMan
Level 6
Level 6
 
Posts: 1192
Joined: Thu Dec 04, 2008 6:47 am
Location: Carmel, Indiana USA at /var/www

Re: How I got hibernate to work

Postby krustybaguette on Mon Jan 09, 2012 5:42 pm

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.
krustybaguette
Level 2
Level 2
 
Posts: 80
Joined: Thu Mar 31, 2011 8:24 am

Re: How I got hibernate to work

Postby xenopeek on Mon Jan 09, 2012 6:38 pm

Moved here by moderator
Forum Rules | IRC Channel Rules
Image
Arch Linux / 64-bit / Gnome Shell
User avatar
xenopeek
Level 21
Level 21
 
Posts: 13653
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: How I got hibernate to work

Postby ItalianBoy on Thu Mar 22, 2012 9:52 am

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
ItalianBoy
Level 1
Level 1
 
Posts: 25
Joined: Sat Mar 20, 2010 5:43 am

Linux Mint is funded by ads and donations.
 
Previous

Return to Other Topics

Who is online

Users browsing this forum: No registered users and 0 guests