Tuesday, February 06, 2007

 

Hibernate support with kernel 2.6.20

I read some post on the net explaining that with kernel version < 2.6.19 the hibernate and suspend may not work with the AHCI SATA. It may not work beause the AHCI was not restore after the suspend...

With the default Ubuntu 6.10 kernel (2.6.17-10), the suspend was not working.

So I upgrade to kernel 2.6.20:

This is the step:
cd /usr/src
sudo wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.tar.bz2
sudo tar xjf linux-2.6.20.tar.bz2
cd linux-2.6.20
cp /boot/config-2.6.17-10-generic .config
make oldconfig
make
make modules_install install
cd /boot/
mkinitramfs -o initrd.img-2.6.20 2.6.20

Then I add the following grub entry in /boot/grub/menu.lst:
title Ubuntu, kernel 2.6.20
root (hd0,4)
kernel /boot/vmlinuz-2.6.20 root=/dev/sda5 ro quiet pci=nomsi
initrd /boot/initrd.img-2.6.20
quiet
savedefault
boot


Note: With kernel 2.6.17-10, I was using the acpi=force irqpoll kernel option, but the system hang when I used it with 2.6.20, do I remove it.

Then the hibernate and suspend work like a charm...

Enjoy,

Alexandre Hudon

Comments:
Good news that suspend and hibernate work. I figured it was a SATA issue because I could get it to come out of suspend, but the drives would be read-only, despite what mount said.
 
Also, check out ubuntu1501.blogspot.com

Both of you are working on the same thing. Maybe you should coordinate efforts so you don't duplicate effort?
 
Post a Comment

Subscribe to Post Comments [Atom]





<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]