How I got hibernate to work
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
How I got hibernate to work
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..
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..
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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
-
- Level 4
- Posts: 359
- Joined: Thu Jun 24, 2010 2:22 pm
Re: How I got hibernate to work
I had the same problem, and this fixed it!
Don't know why but the UUIDs in fstab, both for swap and / were all wrong; and also in the resume file.
Hibernating in now nativelly working fine.
That's a bullseye, thanks a lot!
Bruno
Don't know why but the UUIDs in fstab, both for swap and / were all wrong; and also in the resume file.
Hibernating in now nativelly working fine.
That's a bullseye, thanks a lot!
Bruno
Bye for now,
Bruno
(Always backup before you screw up :)
Bruno
(Always backup before you screw up :)
Re: How I got hibernate to work
Could you be more specific? When I try using blkid, nothing happens. I do have it installed.
Re: How I got hibernate to work
Doesn't seem to make a difference. Is blkid supposed to print the UUID in the terminal when I execute it? I know that I have blkid installed because when I type "blkid -help", it shows the command options for it. It's just when I do anything else, nothing happens.disko wrote:Mozenrath
Try "blkid -c /dev/null"
Re: How I got hibernate to work
Try to run blkid as root user, for example via sudo:Mozenrath wrote: Doesn't seem to make a difference. Is blkid supposed to print the UUID in the terminal when I execute it? I know that I have blkid installed because when I type "blkid -help", it shows the command options for it. It's just when I do anything else, nothing happens.
Code: Select all
sudo blkid
Re: How I got hibernate to work
Thanks disko! That worked for me too.
Note: this thread should be sticky
Note: this thread should be sticky
Re: How I got hibernate to work
+1marlar wrote:Thanks disko! That worked for me too.
Note: this thread should be sticky
Re: How I got hibernate to work
I have an interesting situation. I have a hardware RAID that my system is installed on. Here is my setup:
/boot 512 usb drive w/ swap
/ RAID Array 1 w/ swap
/home RAID Array 2 w/ swap
I pull up my blkid and everything is perfect except my usb swap is not listed (I added it later in Gparted). So I added a listing for it. I am going to run the updates and see if this fixes the issue.
In order for my RAID to start up correctly from hibernate I need to make sure the drivers get loaded back up from the usb.
Just my 2 cents.
/boot 512 usb drive w/ swap
/ RAID Array 1 w/ swap
/home RAID Array 2 w/ swap
I pull up my blkid and everything is perfect except my usb swap is not listed (I added it later in Gparted). So I added a listing for it. I am going to run the updates and see if this fixes the issue.
In order for my RAID to start up correctly from hibernate I need to make sure the drivers get loaded back up from the usb.
Just my 2 cents.
Re: How I got hibernate to work
Speaking of which, is there somewhere I can edit what I want to do in order to wake the computer up? Is this a MB BIOS setting?
Re: How I got hibernate to work
I use mint 10. Swap is right size (2,2 GB), ram 1024, Pentium 4.
First I did not had hibernate installed - I installed it. Second I had error while:
sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-2.6.35-24-generic
cryptsetup: WARNING: found more than one resume device candidate:
/dev/sdc5
UUID=8f7961e1-3069-48f4-85f8-9d8ebee84a28
Warning: No support for locale: et_EE.utf8
Hibernate does not work. It just locks screen. One time worked, but not booted up. Suspend is working fine. What could be the issue?
First I did not had hibernate installed - I installed it. Second I had error while:
sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-2.6.35-24-generic
cryptsetup: WARNING: found more than one resume device candidate:
/dev/sdc5
UUID=8f7961e1-3069-48f4-85f8-9d8ebee84a28
Warning: No support for locale: et_EE.utf8
Hibernate does not work. It just locks screen. One time worked, but not booted up. Suspend is working fine. What could be the issue?
Re: How I got hibernate to work
I spent days learning new commands and following suggestions such as above. I really appreciate the willingness of people to share their knowledge. I've a new build with Asus M4A88TD-V EVO MB/Phenom II X4 840 and 16 gig ram. What made suspend/hibernate work for me was taken from anthers advice to disable USB3 and SATA6 in the bios. Now my suspend and hibernate work without any issues. I'm running Mint10 64bit.
-
- Level 3
- Posts: 153
- Joined: Thu Mar 31, 2011 8:24 am
Re: How I got hibernate to work
Don't know if thread is "sticky". I'm guessing that means permanent? Anyway, all my UUID's matched and here's what happens at last step:marlar wrote:Thanks disko! That worked for me too.
Note: this thread should be sticky
kenneth@kenneth-ThinkPad-X60 ~ $ sudo update-initramfs /u
Invalid argument for option -k.
Usage: /usr/sbin/update-initramfs [OPTION]...
Options:
-k [version] Specify kernel version or 'all'
-c Create a new initramfs
-u Update an existing initramfs
-d Remove an existing initramfs
-t Take over a custom initramfs with this one
-b Set alternate boot directory
-v Be verbose
-h This message
Since I didn't specify option /k what gives?
Edit added a few hours later:
After doing the above I rebooted and ran notepad under wine, a game or two, Open Office Writer, and closed my lid (set to suspend) after a wait I reopened the lid and after entering my password previously open program remained open. That is a step in the right direction. Still waiting to get hibernate to work.
Re: How I got hibernate to work
Hi,
I have a similiar problem with resuming from hibernation using uswsusp. The system freezes while showing the boot screen "resuming from /dev/disk/by-uuid/..."
I followed the instructions above but I have no clue why it still doesn't work.
/etc/uswsusp.conf
/etc/fstab
/etc/initramfs-tools/conf.d/resume
I have a similiar problem with resuming from hibernation using uswsusp. The system freezes while showing the boot screen "resuming from /dev/disk/by-uuid/..."
I followed the instructions above but I have no clue why it still doesn't work.
/etc/uswsusp.conf
Code: Select all
# /etc/uswsusp.conf(8) -- Configuration file for s2disk/s2both
resume device = /dev/disk/by-uuid/799e7fec-75d7-48ba-846e-0e3843455027
splash = y
compress = y
early writeout = y
# image size = 1439618826
image size = 0
RSA key file = /etc/uswsusp.key
shutdown method = platform
# threads = y
Code: Select all
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# Commented out by Dropbox
# /dev/sda1 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=799e7fec-75d7-48ba-846e-0e3843455027 none swap sw 0 0
/dev/sda1 / ext4 errors=remount-ro,user_xattr 0 1
Code: Select all
#RESUME=UUID=799e7fec-75d7-48ba-846e-0e3843455027
RESUME=/dev/disk/by-uuid/799e7fec-75d7-48ba-846e-0e3843455027
Re: How I got hibernate to work
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.
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.
Re: How I got hibernate to work
When I run the command sudo 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
Code: Select all
update-initramfs -u
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
Re: How I got hibernate to work
Worked for me as well. Fixed my hibernate problem in LMDE. Many thanks.marlar wrote:Thanks disko! That worked for me too.
Note: this thread should be sticky
Re: How I got hibernate to work
Thanks to disko! It also worked for me. (I was surprised to see Grub load when coming out of hibernate though)
Matt
Matt