Hibernate (Suspend-to-disk) finally working with Beryl/Compiz and the suspend2 kernel (2.6.15-26-686)

9 03 2007

After a week full of google searches, ubuntuforum discussions, and many, many script revisions, I finally am able to suspend-to-disk. Here is some background info:

  • Dell Inspiron 700m
  • Ubuntu 6.06.1 LTS
  • GNOME + Beryl/Emerald
  • Intel i855/i915 Video Chipset

1. After trying the hibernate/suspend functionality in the Gnome menus to no avail, I tried to Google myself a fix but instead stumbled upon another suspend utility called suspend2. After reading some success stories with other users on Dell laptops, I installed the suspend2 packages with Synaptic:

  • suspend2
  • suspend2-userui-usplash
  • initramfs-tools-suspend2
  • hibernate (if it’s not already installed)
  • acpi (not sure if this is needed)

2. To be honest, I had no idea what to do next so I went online to the suspend2 and learned that I needed to compile a new kernel and patch it. Not wanting to deal with that, Google came to my rescue again. Apparently, there are some repositories out there with precompiled kernels that already have the patch applied. So all I did was add:

deb http://dagobah.ucc.asn.au/ubuntu-suspend2 dapper/

to my ‘/etc/apt/sources.list’ (or System->Administration->Software Properties). Then:

sudo apt-get update

sudo apt-get upgrade

Hopped back into Synaptic Package Manager and searchd for ‘linux-image’. I found 4 packages with suspend2 already patched. I chose the 686-nosmp package because my Centrino laptop is only a single core. Choose 386 for older Pentiums and 686 for dual-cores. YMMV.

3. After the new kernel installed and grub was automatically updated, I checked to make sure the option


was been appended to /boot/grub/menu.lst (where X is my swap partition). Here’s mine:

title Ubuntu, kernel 2.6.15-26-686-nosmp

root (hd0,0)

kernel /vmlinuz-2.6.15-26-686-nosmp root=/dev/hda6 ro resume2=swap:/dev/hda5 quiet splash

initrd /initrd.img-2.6.15-26-686-nosmp



4. Good, already done. I then restarted into my new kernel.

5. Now to edit the hibernation scripts to match my hardware. Check back soon…




One response

2 04 2007

Loosing the Hibernate button is usually a problem with XGL, not Beryl/Compiz , and with an intel GFX card you have no reason to be using XGL ( Honestly, it’s a hack ) and you should simply use AIGLX instead. If in fact you are using XGL then you are going to a lot of work to simply work around the problem and are likely to break things changing kernels if you don’t know what you are doing.

Hope this helps.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: