You are not logged in.
Pages: 1
I have a Samsung NC10 netbook with GRUB 2.0 and I have lately been trying to get hibernation to work. Suspend works just as it should, but i really want hibernation as well.
I have done everything specified in the pm-utils wiki (https://wiki.archlinux.org/index.php/Pm-utils) except for the section "Including GRUB2's os-prober lines" that doesn't make any sense to me (I don't even have that line in my 30_os-prober file).
When i type 'pm-hibernation' it takes a while for the netbook to turn off and I can see and hear that it is writing something to the disk, but when I turn it on again I only get one error message, and then it boots up just like if I had turned it off before.
ERROR: resume: no device specified for hibernation
I am sure that my swap disk is /dev/sda2 and I have added this to /etc/default/grub:
GRUB_CMDLINE_LINUX="resume=/dev/sda2"
I have also tried to add the resume hook to /etc/mkinitcpio.conf as described in the wiki.
Do you have any advice on where to go from here?
Last edited by mindglowba7fb830d2cbbed73 (2012-08-24 13:22:22)
Offline
What's your /etc/fstab looks like? How big is swap partition and how much RAM you have?
Offline
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
UUID=246644ee-507b-45f5-86c7-998e2c584f17 / ext4 defaults 0 1
UUID=49258853-4e98-499a-9792-eee23a368007 /boot ext2 defaults 0 1
UUID=4b646a6c-e7a3-4b88-bfec-c040b1176dc3 /home ext4 defaults,user_xattr 0 1
UUID=bc4ccb0a-3664-4179-b358-0827e701dad3 swap swap defaults 0 0
The swap partition is 1258 MB and I have 1GB RAM.
Last edited by mindglowba7fb830d2cbbed73 (2012-08-23 23:36:20)
Offline
Try to use the UUID:
GRUB_CMDLINE_LINUX_DEFAULT="quiet resume=/dev/disk/by-uuid/bc4ccb0a-3664-4179-b358-0827e701dad3"
GRUB_CMDLINE_LINUX=""
Edit: Don't forget to update your grub config and add the resume hook (probably after the pata/sata hooks)
sudo grub-mkconfig -o /boot/grub/grub.cfg
Last edited by progandy (2012-08-24 01:14:49)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
That worked! May I ask why you put the UUID in GRUB_CMDLINE_LINUX_DEFAULT and not GRUB_CMDLINE_LINUX as described in the wiki. Thanks a lot for the help.
Offline
Strange thing is, suspend doesnt work now, only hibernation. When i use suspend and then turn on the computer it gives me this again:
ERROR: resume: no device specified for hibernation
and then the computer reboots.
Offline
Did you mess with a bunch of stuff while trying to fix hibernation? I wonder if you try reinstalling pm-utils what would happen.
As a side note, the distro is moving to systemd, and I have already made the switch (I love it by the way), and w/ it are sleep/hibernate/shutdown/reboot functions. Also some *very* basic acpi like settings... anyway sorry I strayed a bit there... the suspend and hibernate function of systemd is phenomenally fast and seemingly very stable. I am not sure how interested in switching init systems you are, but if it is in your plans, you may want to give it a try. It was surprisingly simple as long as you have already created the proper config files that replace rc.conf
Offline
Strange thing is, suspend doesnt work now, only hibernation. When i use suspend and then turn on the computer it gives me this again:
ERROR: resume: no device specified for hibernation
and then the computer reboots.
Try appending
resume=swap:/dev/sdaX
to your bootloader's kernel line, where X is the number of your swap partition.
Offline
Pages: 1