You are not logged in.

#1 2011-10-03 11:08:37

Niamh
Member
Registered: 2011-03-06
Posts: 18

Hibernate isn't working properly (pm-utils)

After installing pm-utils, suspend worked out-of-the-box, however hibernate doesn't work properly.
Laptop shut's down (goes to hibernate) and after turning it back on, it doesn't load the previous state.
(I've testet it couple of times by leaving random apps opened - libreoffice writer, chromium etc.)
It's as if I'm shutting it down rather then hibernating.

I did all the basic setup like adding "resume=/path/to/swap"
and afterwards added the "resume" hook to mkinitcpio, and it still doesn't work.
I've also tried hibernate in test mode as it's suggested here (found the link on wiki pages) and according to the test, it should all be working.

My guess is that image saved to swap isn't restored after returning from hibernation for some reason, so if anyone has any ideas... I'd really appreciate it smile

Offline

#2 2011-10-03 11:34:55

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Hibernate isn't working properly (pm-utils)

Check /var/log/pm-suspend.log for clues, and watch for relevant messages at boot time, when the resume hook is activated.

Offline

#3 2011-10-03 12:54:49

Niamh
Member
Registered: 2011-03-06
Posts: 18

Re: Hibernate isn't working properly (pm-utils)

According to pm-suspend.log hibernation is successful, and I haven't seen anything different during boot time. I'm not
sure if there should be anything different during boot time, but it looks just the same as if I didn't have the resume hook.

Is there any way to debug or make a bit more detailed test only with resume part?  That seems to be problem, although I
can't figure out why.

Offline

#4 2011-10-03 13:11:07

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: Hibernate isn't working properly (pm-utils)

Check the kernel log for something like this:

PM: Hibernation image not present or could not be loaded

Did you rebuild the initrd image after making the changes to mkinitcpio?


I laugh, yet the joke is on me

Offline

#5 2011-10-03 13:23:21

Niamh
Member
Registered: 2011-03-06
Posts: 18

Re: Hibernate isn't working properly (pm-utils)

Yes, just as it's described in wiki.

Offline

#6 2011-10-03 13:28:01

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: Hibernate isn't working properly (pm-utils)

Does the kernel log indicate anything?


I laugh, yet the joke is on me

Offline

#7 2011-10-03 14:38:24

Niamh
Member
Registered: 2011-03-06
Posts: 18

Re: Hibernate isn't working properly (pm-utils)

PM: Checking hibernation image partition /dev/sda3
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
PM: Hibernation image not present or could not be loaded.

Definitely a problem. Although, this are the only indications of swap being created.

PM: Marking nosave pages: 000000000009d000 - 0000000000100000
PM: Marking nosave pages: 00000000ba99f000 - 00000000bafff000
PM: Marking nosave pages: 00000000bb000000 - 0000000100000000
PM: Basic memory bitmaps created
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu

Some googling showed that there shoud be some steps including syncing filesystems and actually logging the
creation of image, but there are none (there's enough swap memory to create one).

Offline

#8 2011-10-03 16:56:27

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: Hibernate isn't working properly (pm-utils)

Well, the "image not present" shows that something went wrong with your resume hook.  Do you mind posting the hooks array from mkinitcpio.conf?  Maybe the grub menu.lst for good measure as well.


I laugh, yet the joke is on me

Offline

#9 2011-10-04 00:19:31

Niamh
Member
Registered: 2011-03-06
Posts: 18

Re: Hibernate isn't working properly (pm-utils)

menu.lst

# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /boot/vmlinuz-linux root=/dev/sda1 resume=/dev/sda3 ro quiet i915.i915_enable_rc6=1  
initrd /boot/initramfs-linux.img

Except "resume", everything else is default setting.

HOOKS="base udev autodetect pata scsi sata resume filesystems"

Offline

#10 2011-10-04 00:57:09

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: Hibernate isn't working properly (pm-utils)

Is your swap large enough?  What does free say about your swap?


I laugh, yet the joke is on me

Offline

#11 2011-10-04 01:21:33

Niamh
Member
Registered: 2011-03-06
Posts: 18

Re: Hibernate isn't working properly (pm-utils)

It's large enough and /dev/sda3 is the swap partition.


            total       used       free     shared    buffers     cached
Mem:          3877       1808       2069          0         23       1310
-/+ buffers/cache:        473       3404
Swap:         4384          0       4384

Offline

#12 2011-10-04 01:38:49

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: Hibernate isn't working properly (pm-utils)

What is the output for this:

cat /sys/power/state

Also, have you tried hibernating with just acpi instead of using pm-hibernate?

echo disk > /sys/power/state

Last edited by the sad clown (2011-10-04 01:39:21)


I laugh, yet the joke is on me

Offline

#13 2011-10-04 15:33:39

Niamh
Member
Registered: 2011-03-06
Posts: 18

Re: Hibernate isn't working properly (pm-utils)

the sad clown wrote:

What is the output for this:

cat /sys/power/state

Output of "cat /sys/power/state"

 standby mem disk 



Also, have you tried hibernating with just acpi instead of using pm-hibernate?

echo disk > /sys/power/state

I've tried that as well, but the result is still the same. There are no changes in kernel.log compared to pm-hibernate.

Offline

#14 2011-10-05 00:33:10

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: Hibernate isn't working properly (pm-utils)

Then it isn't pm-utils (which is the front end), it's with acpi.  I don't think I can help you.  The only thing I can think of is that despite the fact that suspend to ram works for you, that a module is hanging and interfering with hibernate.  I don't even know if that is possible, but it is the only thing that comes to mind.  Sorry I couldn't get hibernate working for you.


I laugh, yet the joke is on me

Offline

#15 2011-10-05 01:08:50

Niamh
Member
Registered: 2011-03-06
Posts: 18

Re: Hibernate isn't working properly (pm-utils)

Thank you for your time. I'll keep the thread open if someone else gets any ideas smile

Offline

#16 2012-01-21 10:18:40

chmurli
Member
Registered: 2008-12-23
Posts: 51

Re: Hibernate isn't working properly (pm-utils)

Hi, I had similar problem.
Do you use swapfile or normall swap partition? If swapfile you have to add resume_offset to starting parameters and resume must point swap partition not swap file explicitly!
I had make changes to: https://wiki.archlinux.org/index.php/Sw … e_resuming

Offline

#17 2015-05-14 06:17:40

baronleonardo
Member
Registered: 2014-01-05
Posts: 10

Re: Hibernate isn't working properly (pm-utils)

I have the same problem here

Offline

#18 2015-05-14 07:19:42

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,896
Website

Re: Hibernate isn't working properly (pm-utils)

baronleonardo, please don't necrobump.

https://wiki.archlinux.org/index.php/Fo … bumping.22

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB