You are not logged in.
Pages: 1
Topic closed
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
Offline
Check /var/log/pm-suspend.log for clues, and watch for relevant messages at boot time, when the resume hook is activated.
Offline
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
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
Offline
Does the kernel log indicate anything?
I laugh, yet the joke is on me
Offline
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
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
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
Is your swap large enough? What does free say about your swap?
I laugh, yet the joke is on me
Offline
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
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
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
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
Thank you for your time. I'll keep the thread open if someone else gets any ideas
Offline
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
I have the same problem here
Offline
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
Pages: 1
Topic closed