You are not logged in.
For some reason my laptop won't resume after hibernating with pm-hibernate.
I have added the resume hook to /etc/mkinitcpio.conf and the swap drive to /boot/grub/menu.lst.
Is s2disk reports no error when creating image file and the hook is run on next boot but it doesn't work.
dmesg output:
PM: Checking image partition /dev/sda6
PM: Resume from disk failed.
PM: Starting manual resume from disk
PM: Resume from partition 8:6
PM: Checking hibernation image.
PM: Error -22 checking image file
PM: Resume from disk failed.
Any ideas?
Offline
Show us the output to the following commands: "df -h" and "free".
Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.
Offline
gustaf@myhost:~$ free
total used free shared buffers cached
Mem: 2062312 550380 1511932 0 39912 218132
-/+ buffers/cache: 292336 1769976
Swap: 2048252 0 2048252
gustaf@myhost:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 10M 244K 9.8M 3% /dev
/dev/disk/by-uuid/295976ce-2dec-40c7-a8ae-499184c1b9ef
4.6G 1.3G 3.1G 30% /
none 1007M 24K 1007M 1% /dev/shm
/dev/sda1 487M 21M 441M 5% /boot
/dev/sda7 22G 17G 3.9G 81% /home
/dev/sda8 4.6G 3.6G 851M 81% /usr
/dev/sda2 25G 13G 13G 49% /mnt/winsys
/dev/sda5 54G 42G 12G 78% /mnt/windata
Offline
What does the "Hooks" line in /etc/mkinitcpio.conf look like? I have 'resume' second from last, before 'filesystem'.
Also, did you run `mkinitcpio -p kernel26` after updating /etc/mkinitcpio.conf?
Offline
you also need to add to the kernel boot line:
resume=/dev/disk/by-uuid/aabf9ab7-ce2c-4d1e-9975-3157ee1352bd
with the appropiate uuid for your swap partition
Offline
Also, is your memory larger than your swap size? It looks a bit bigger from the output of your 'free' command. In which case, I suspect resume from hibernation might never work.
Last edited by Painless (2010-08-15 22:33:48)
Offline
As I said in the OP I have added the resume hook in the correct place and the swap drive to the boot line using uuid instead of as /dev/sda6, this did not help.
I've ran mkinitcpio -p kernel26 aswell.
The swap drive is a little bit smaller than the RAM maybe, but according to the wiki the resume-image is most often smaller than the actual memory
size so this should work.
The wierdest part is that I have used pm-hibernate successfully on this
computer before.
Offline