You are not logged in.

#1 2011-06-13 19:19:50

James2k
Member
Registered: 2011-06-13
Posts: 19

[SOLVED] My Laptop won't hibernate

Hi all,

I'm a new user to Arch, really liking it thus far, great learning curve.

So far managed to solve all problems I've encountered except for one, and that is to get my laptop to hibernate.

I've got a Compaq Presario CQ60 laptop which is running Arch Linux 32-bit with Gnome 3 Shell and every attempt I make hibernate seems to fail. When I try and hibernate my laptop it seems to do something for a moment as the screen goes blank with a cursor in the top left and it looks like theres some hard drive activity during the black screen, the laptop then powers off as expected but on booting back into Arch it just boots as if it was started from a shutdown.

I've been reading the Wiki page about hibernation in Arch (https://wiki.archlinux.org/index.php/Pm … nd2disk.29) and have followed all the guidelines. I have installed acpi, pm-utils, upower as well as made sure there is resume paramater on my linux line in GRUB2

Here are my configs below:

fdisk:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x82df4bb0

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   751489023   375743488    7  HPFS/NTFS/exFAT
/dev/sda2       751489024   764180373     6345675   82  Linux swap / Solaris
/dev/sda3       764180374   976768064   106293845+  83  Linux
Partition 3 does not start on physical sector boundary.

Bootloader Arch Entry:

menuentry 'Arch GNU/Linux, with Linux vmlinuz26' --class arch --class gnu-linux$
        savedefault
        insmod ext2
        set root='(hd0,3)'
        search --no-floppy --fs-uuid --set 661cc977-27ef-40d6-8cbf-6f6fae40370e
        echo    'Loading Linux vmlinuz26 ...'
        linux   /boot/vmlinuz26 root=/dev/sda3 ro  quiet splash resume=/dev/sda2 vga=773
        echo    'Loading initial ramdisk ...'
        initrd  /boot/kernel26.img
}

/proc/swaps output:

[james@james-laptop ~]$ cat /proc/swaps
Filename                Type        Size    Used    Priority
/dev/sda2                               partition    6345668    0    -1

Despite hibernate not working, suspend is OK.

Hope someone can help me solve my problem! I did search around for answer before writing this thread!

Thanks,

James

Last edited by James2k (2011-06-14 06:40:06)

Offline

#2 2011-06-14 02:46:26

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: [SOLVED] My Laptop won't hibernate

You also need to include 'resume' in the HOOKS array in /etc/mkinitcpio.conf. Then you need to recreate the initramfs image by running 'mkinitcpio -p kernel26' as root. After doing these additional modifications, the laptop should be able to resume from disk.

Offline

#3 2011-06-14 06:39:26

James2k
Member
Registered: 2011-06-13
Posts: 19

Re: [SOLVED] My Laptop won't hibernate

Thanks foutrelis! This is what I've been missing! After adding resume to the hooks and regenerating the initramfs image I was able to hibernate my laptop!

Offline

Board footer

Powered by FluxBB