I’ve had Ubuntu on my laptop for a while, and it never hibernated. I’d do what looked like the right things, but it just didn’t work. So a couple of days ago I decided I should try to track down the problem. I was partially successful; hibernating a laptop properly seems to be difficult. Here’s what I did to track down (some of) the problem.
When it comes back after failing to hibernate, the system politely tells you to check the help file for common problems. So you bring up the help file and it contains a definition of hibernate, with no hints as to what might be going wrong, but a pointer to the Ubuntu support forums as well as to laptop testing pages which supposedly contain ideas of what to try. The laptop testing page claims that hibernate works for the Toshiba Tecra M2 that I have, so that didn’t help much.
Watching closely the next time I tried hibernating revealed an error message flashing by about not enough swap space. Searching for this reveals that the swap space the installer gives you by default may not be enough to manage hibernation. You need the same size swap as RAM, which I didn’t have. OK, out with the gparted livecd to reconfigure my partitions. Fortunately I had some spare unused room next to the swap partition to grow it into. The next error message I saw flashing by on hibernating (reading it involved hibernating multiple times, staring fixedly at the right point in the screen, hoping that the last message I saw might be of some use; why can’t these error messages by default be put in a nice error dialog box so I can actually read them?) was that the system couldn’t find the swap space. Poking around the Ubuntu support forum reveals that each time the machine is rebooted, the swap partition gets a new UUID, thereby killing the config files for any scripts that were set up to use the old one. More details here; following the steps in that posting finally made hibernate mostly work, albeit with a ton of error messages about the USB device (the mouse, I presume, since that’s the only USB device I have connected) which I’m ignoring. The mostly refers to the fact that the system often won’t actually come back to life after being in hibernation until I hit the power button and restart from scratch. I have yet to figure out what’s going on there; any hints are welcome.
Lauren, hibernation has always been working for several versions for my laptop.
Since 7.10 (Gusty), it stopped to work.
It may not be your problem but there is a problem with the ATI proprietary drivers and kernel 2.6.22 / 23.
Mischief managed (sorta):
http://blog.beuchelt.org/2007/12/26/Hibernating+Ubuntu.aspx
This works on a fresh install of 7.10, with the NVidia restricted drivers enabled.