You are not logged in.

#1 2012-08-23 19:56:12

mindglowba7fb830d2cbbed73
Member
Registered: 2011-04-10
Posts: 26

Hibernation resume problem

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

#2 2012-08-23 21:04:09

masteryod
Member
Registered: 2010-05-19
Posts: 433

Re: Hibernation resume problem

What's your /etc/fstab looks like? How big is swap partition and how much RAM you have?

Offline

#3 2012-08-23 23:34:00

mindglowba7fb830d2cbbed73
Member
Registered: 2011-04-10
Posts: 26

Re: Hibernation resume problem

# 
# /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

#4 2012-08-24 01:10:59

progandy
Member
Registered: 2012-05-17
Posts: 5,211

Re: Hibernation resume problem

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

#5 2012-08-24 10:07:29

mindglowba7fb830d2cbbed73
Member
Registered: 2011-04-10
Posts: 26

Re: Hibernation resume problem

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

#6 2012-08-24 13:23:40

mindglowba7fb830d2cbbed73
Member
Registered: 2011-04-10
Posts: 26

Re: Hibernation resume problem

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

#7 2012-08-24 15:41:18

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Hibernation resume problem

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

#8 2012-08-25 19:13:39

maevius
Member
From: Greece
Registered: 2009-09-10
Posts: 135
Website

Re: Hibernation resume problem

mindglowba7fb830d2cbbed73 wrote:

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

Board footer

Powered by FluxBB