You are not logged in.

#1 2011-11-28 13:56:05

connexion2000
Member
Registered: 2006-10-15
Posts: 116

Computer cannot wake up from hibernation

Hi,
I configured hibernation according to wiki.

menu.lst:

title  Arch Linux  [/boot/vmlinuz-linux]
root   (hd0,4)
kernel /vmlinuz-linux root=/dev/sda6 ro resume=/dev/disk/by-uuid/3f2588a1-f2b5-4ce7-8f92-9357671c1720
initrd /initramfs-linux.img

blkid

/dev/sda1: LABEL="Windows" UUID="6A32412A3240FC97" TYPE="ntfs" 
/dev/sda2: LABEL="Programy" UUID="A0A25EAAA25E84A6" TYPE="ntfs" 
/dev/sda3: LABEL="Media" UUID="6C86742A8673F346" TYPE="ntfs" 
/dev/sda5: UUID="ce581e2c-6131-49d3-bc5d-9427414a2352" TYPE="ext4" 
/dev/sda6: UUID="2cdb770e-dbdb-443a-8c23-b3f0102b7dbd" TYPE="ext4" 
/dev/sda7: UUID="3f2588a1-f2b5-4ce7-8f92-9357671c1720" TYPE="swap" 
/dev/sda8: UUID="5A9D-A2B5" TYPE="vfat" 

mkinitcpio.conf

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

I can successfully hibernate my computer, but it doesn't wake up. It just boots normally. In dmesg I can see:

 PM: Hibernation image not present or could not be loaded.

I checked paths and everything, but I can't get it to work.
Please help.

Offline

#2 2011-11-28 19:01:41

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,489

Re: Computer cannot wake up from hibernation

Have you rebuilt the image after adding the resume to the mkinitcpio.conf hooks?

Offline

#3 2011-11-28 23:09:15

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: Computer cannot wake up from hibernation

As per Strike0: https://wiki.archlinux.org/index.php/Mk … activation

After changes are made to the configuration file, the image must be regenerated. For the stock Arch Linux kernel, linux, this is accomplished with the command:

# mkinitcpio -p linux

Happened to me as well.

Offline

#4 2012-01-11 09:48:09

ianhoolihan
Member
Registered: 2011-08-20
Posts: 85

Re: Computer cannot wake up from hibernation

I am having the same problem, although I have regenerated the mkinitcpio image as well. The system seems to go into hibernate, but when I try to wake it up (power button), it enters grub, and then hangs with a blank screen and a "_" flashing.

I have a Thinkpad X40, with the following menu.lst

# DEVICE NAME CONVERSIONS
#
#  Linux           Grub
# -------------------------
#  /dev/fd0        (fd0)
#  /dev/sda        (hd0)
#  /dev/sdb2       (hd1,1)
#  /dev/sda3       (hd0,2)

...


# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
#kernel /vmlinuz-linux root=/dev/disk/by-uuid/b60f344b-305a-4fff-accb-0831b5ac105d ro
#make hibernate work
kernel /vmlinuz-linux root=/dev/disk/by-uuid/b60f344b-305a-4fff-accb-0831b5ac105d resume=/dev/sda2 ro
initrd /initramfs-linux.img

and mkinitcpio.conf

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

and dmesg | grep 'PM'

[    0.989388] PM: Checking hibernation image partition /dev/sda2
[    0.999673] PM: Hibernation image not present or could not be loaded.
[    2.343547] PM: Starting manual resume from disk
[    2.343558] PM: Hibernation image partition 8:2 present
[    2.343564] PM: Looking for hibernation image.
[    2.369128] PM: Image not found (code -22)
[    2.369135] PM: Hibernation image not present or could not be loaded.

Does anyone have any ideas?

Ianhoolihan

Offline

#5 2012-01-11 13:24:30

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,489

Re: Computer cannot wake up from hibernation

I am not sure if it matters for it, but I would put the "ro" right after the root partition, not your swap.
Also check if you have acpi installed.
edit: and you can check if removing the autodetect helps (see here)

Last edited by Strike0 (2012-01-11 13:26:24)

Offline

#6 2012-01-11 19:37:24

ianhoolihan
Member
Registered: 2011-08-20
Posts: 85

Re: Computer cannot wake up from hibernation

Haha, excellent! Removing autodetect works!

Offline

#7 2012-01-11 19:55:41

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,489

Re: Computer cannot wake up from hibernation

Cool, maybe connexion2000 reads this as well, as that is up in his old config also.

Offline

Board footer

Powered by FluxBB