Suspend2 and Ubuntu Dapper Drake

April 29th, 2006

I’m currently running the Ubuntu Dapper Drake Beta on my IBM Thinkpad. What I still don’t like in this latest release of Ubuntu is the usage of the in-kernel software-suspend. I used suspend2 for the past one and a half year and I was quite happy with it. So there isn’t any reason why one should change to the slow and somewhat broken in-kernel swsuspend…

The compilation with the suspend2 patch is quite straightforward:

  • download latest kernel sources
  • patch the kernel sources with the appropriate suspend2 patch
  • enable the suspend2 stuff with make menuconfig (don’t forget lzf compression, this will make the whole thing much faster on modern hardware)
  • make-kpkg and dpkg -i …

Not too difficult, but the interesting thing is how to use suspend2 hibernation functionality from the Gnome logout menu. It is a simple as changing the /etc/acpi/hibernate.sh to something like:

/usr/sbin/hibernate -F /etc/hibernate/hibernate.conf

provided that /etc/acpi/hibernate.conf is your configuration file for the hibernation. The same applies for the sleep button, where you need to change /etc/acpi/sleep.sh.

Comments are closed.