Hello,
I am trying to get hibernate to work correctly with my laptop as we
periodically have powercuts and I would like the contents saved to the
swap partition so when the power comes back on I can resume where I left
off.
I use GUID Partition Table (GPT) and UUID= and PARTUUID= to describe my
partitions both in grub.cfg (where for mysterious reasons I have to have
the root= partition use PARTUUID=)
Please also note that THIS IS ON A SYSTEMD SYSTEM.
I have the following set in grub.cfg:
menuentry "GNU/Linux, Linux vmlinuz-3.17.6-lfs-20141209-systemd" {
linux /vmlinuz-3.17.6-lfs-20141209-systemd
root=PARTUUID=3c1bdec4-6be6-4d66-8d88-76b9e50bb7ce rootdelay=15 ro
resume=UUID=2280a26b-4ff4-4dde-9848-0d9bbc999de5
Please note that as this is an external USB hard drive the rootedelay
option is REQUIRED. I have also placed the resume=UUID line before the
rootdelay= option and it has made no difference.
I have also rebooted before testing the pm-hibernate command.
I do have acpid installed and have correctly changed the grep line. The
contents of the files are:
root [ ~ ]# cat /etc/acpi/events/lid
event=button/lid
action=/etc/acpi/lid.sh
root [ ~ ]# cat /etc/acpi/lid.sh
#!/bin/sh
/bin/grep -q open /proc/acpi/button/lid/C235/state && exit 0
/usr/sbin/pm-hibernate
I also have pm-utils-1.4.1 installed.
I have not put anything in /etc/pm/sleep.d or altered anything in
/usr/lib/pm-utils/sleep.d.
When I issue the command pm-hibernate the screen goes black for a few
seconds, then comes back to normal and then after a few seconds shuts the
computer down as it is meant to do.
When I restart the computer, it does not resume at all. It just does a
normal restart. There is an option within the kernal configuration that I
set to /dev/sdb12 for the suspend to disk (hibernate) option. So that is
compiled into the kernel.
The pm-suspend-hybrid seems to work as designed and suspends the system,
and when I press the power button a few minutes later it resumes the
session.
When I close the laptop lid the same result happens for pm-hibernate, ie
normal boot rather than resuming.
I have absolutely no idea how to solve this. This is the first time that
I have seriously tried this as I really need to get it working.
Do any scripts have to be put in /etc/pm/sleep.d?
I also have UPower-0.99.2 installed.
The exact same behaviour of hibernate occurs if within lxde I click on the
hibernate button.
I must say that I am running these tests as root. If they do not work as
root then I do not think they will work as my normal user either. I like
working directly as root for building the system and then revert to a
normal user after I have things the way I want them.
Regards,
Christopher.
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page