Hibernation Once Again

Archived topics about LMDE 1 and LMDE 2
Locked
luis.nando

Hibernation Once Again

Post by luis.nando »

Hello, fellows, i was wondering if someone could help me out with the issue of getting no Hibernation. Firstly, i would like to say that I really did a previous research reviewing the following threads:
But i got no success out of them. So i`m doing something wrong. I will post the data i get from the commands:
free

Code: Select all

             total       used       free     shared    buffers     cached
Mem:       4027968    1373200    2654768          0     161280     625312
-/+ buffers/cache:     586608    3441360
Swap:     11800572          0   11800572
sudo parted -l print

Code: Select all

Model: ATA SAMSUNG HM500JI (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End    Size    Type      File system     Flags
 1      1049kB  488GB  488GB   primary   ext4            boot
 2      488GB   500GB  12,1GB  extended
 5      488GB   500GB  12,1GB  logical   linux-swap(v1)
sudo blkid

Code: Select all

/dev/sda5: UUID="13771693-e2d2-4651-9e4e-03f7a7440e3c" TYPE="swap" 
/dev/sda1: UUID="aa68b5fe-ca7d-4cb4-aa24-c33e52b19e52" TYPE="ext4" 
Now, some configuration files:
fstab

Code: Select all

# /etc/fstab: static file system information.
#
# Use 'vol_id --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    defaults        0       0
UUID=aa68b5fe-ca7d-4cb4-aa24-c33e52b19e52 /    ext4    commit=100,errors=remount-ro,user_xattr 0       1
UUID=13771693-e2d2-4651-9e4e-03f7a7440e3c swap swap sw 0 0

# entrada antiga UUID=fe1de181-2068-4f97-9a57-6bf9f41cae67 none swap    sw                           0       0

proc	/proc	proc	nodev,noexec,nosuid	0	0
# /dev/sda1  /	ext4	rw,errors=remount-ro	0	0
UUID=aa68b5fe-ca7d-4cb4-aa24-c33e52b19e52  /	ext4	rw,errors=remount-ro,user_xattr	0	0
# /dev/sda5  swap swap    sw  			0	0   
UUID=13771693-e2d2-4651-9e4e-03f7a7440e3c swap swap sw 0 0
# entrada antiga UUID=fe1de181-2068-4f97-9a57-6bf9f41cae67  swap swap    sw  			0	0   
sudo gedit /etc/initramfs-tools/conf.d/resume

Code: Select all

UUID=13771693-e2d2-4651-9e4e-03f7a7440e3c
  • I also set gksudo gedit /etc/default/bootlogd to BOOTLOGD_ENABLE=Yes but got no log in /var/log/boot

    and installed uswsusp from experimental.
After all those procedures explaned on the threads above, i still get Activating swap... unsuccessful on boot, got no hibernation. The suspend function works ok, though. Can anyone help me here?
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.
Skinnx86

Re: Hibernation Once Again

Post by Skinnx86 »

Hello Louis,

I will say this first, I am not a linux guru by any means but I do understand what you are going through, being the originator of the Hibernation (Again) post...

Before I start I would like to know, if you open System Monitor, does the swap area say "0.0 KiB (0.0%) out of 4GB" or "0.0 KiB (0.0%) out of 0GB". If it is the latter then your swap is not being activated at all (as indicated at boot). My understanding is that suspend works by putting the current state of the system into RAM, whereas hibernation works by placing said state into the swap partition. Suspend worked on both boxes I installed LMDE on, but hibernation took a workaround for it to "see" my swap partition. The following being the workaround I used;


I understand that you have gone through all the afore mentioned posts, but could I bring your attention to this bit:
1) sudo swapoff /dev/sda5

2) sudo mkswap /dev/sda5
The output also shows the UUID for your swap
... UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

3) gksudo gedit /etc/fstab
Your swap line should look like this (comment out the old entry)
UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx swap swap sw 0 0

4) gksudo gedit /etc/initramfs-tools/conf.d/resume
Your Resume line should look like this (comment out the old entry/entries)
RESUME=UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

5) sudo swapon UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

6) sudo update-initramfs -u

7) Reboot
Particularly step 6, I don't want to sound condescending, but did you do this step to update initramfs after? If you did ignore this.

uswsusp was an option for me before I found out how to edit fstab from google. The reason I held of from installing it was because I didn't want any unnecessary programmes, and also because I heard through forums that it didn't always work or caused more headaches that before (As mentioned here http://forums.linuxmint.com/viewtopic.p ... 1&p=376746). My conclusion on uswsusp is..... I have no idea :? , sorry :)

I am assuming that from the output of your blkid that you have 4GB of RAM and around 12Gb of Swap, Is that correct? If so you should have plenty of space for Hibernation! :roll:

In your fstab I noticed

Code: Select all

/dev/sda5  swap swap    sw           0   0  
was commented out, now I haven't tried it myself as I haven't needed to, but I have wondered if un-commenting it and commenting out

Code: Select all

UUID=13771693-e2d2-4651-9e4e-03f7a7440e3c swap swap sw 0 0
would work. I have had this idea as I have moved partitions around on my hdd and needed to edit fstab accordingly because there was change of the UUID of swap. Was it like this before you first edited fstab?

For the boot log you must type

Code: Select all

sudo gedit /var/log/boot
for you to view it in gedit. You then have to close gedit before you use the terminal again - unless you open another tab (ctrl+shift+t), sorry again if this bit sounded condescending.


FYI my /etc/initramfs-tools/conf.d/resume file looks like this in case you have issues resuming aswell

Code: Select all

#RESUME=UUID=184e7a0f-28cf-418a-9fef-e3c4e4e44d0b
RESUME=/dev/sda5
Hope this helps, but I have a feeling that we might have some to and fro, but do let me know .

Skinnx86
luis.nando

Re: Hibernation Once Again

Post by luis.nando »

Well, the cool thing about LMDE is that i am slowly bulding a system that goes with my needs, there is a lot of time since i opened this thread, but now, since I upgraded to gnome3 (which was such a useful think) and now I need to take my laptop to work I will give another try to fix the hibernation problem.

1.
Skinnx86 wrote:does the swap area say "0.0 KiB (0.0%) out of 4GB" or "0.0 KiB (0.0%) out of 0GB"
yes it says "0.0 KiB (0.0%) out of 4GB";
2. I also did the workaround you mentioned and updated the initramfs after;
3. And I just did:
Skinnx86 wrote:FYI my /etc/initramfs-tools/conf.d/resume file looks like this in case you have issues resuming aswell

Code: Select all
#RESUME=UUID=184e7a0f-28cf-418a-9fef-e3c4e4e44d0b
RESUME=/dev/sda5
Results: I still don`t get hibernation, instead the computer seems to prepare to hibernate but when I turn it on, it boots from the beginning. The suspend works ok.

Any other ideas?
Inkit

Re: Hibernation Once Again

Post by Inkit »

In the post immediately below yours Xircon has given a suggestion - update grub with information about the swap. It's to do with a swapfile, but I assume it would work for a partition too. You could give it a try, or you could PM him and ask if you think it will help in your case too.
luis.nando

Re: Hibernation Once Again

Post by luis.nando »

I`ve tried that too, thanks Inkit!
Locked

Return to “LMDE Archive”