teh bigbro blog(tm)
Bigbro's foray into the scary world of blogging

Sun, 16 Mar 2008

Problem with Suspend to Disk on Linux

I use Ubuntu as my prefered OS on my desktop and laptop (I currently don't have any Apple kit) but since I got my Dell D430, I've been having a strange problem whereby the laptop would go to sleep (standby) as configured, but if left for some (long?) period of time, upon being woken up it would almost immediately suspend to disk. While this worked almost perfectly, it was most annoying to have to wait for the laptop to recover from standby, go into suspend to disk, and then come back out of suspend to disk (writing and reading ~2GB of RAM to disk in the process) before it was usable. I'm an impatient person and when I open my laptop to do work, I want it ready to do work as fast as possible.

While I've not isolated why the laptop started doing this yet, I've managed to work around the problem by configuring the /etc/default/acpi-support to only allow standby, and not allow suspend to disk. The big con of this solution is that I can no longer suspend to disk, though my laptop is rarely out of use for long enough for this to be a problem. The biggest problem I expect to see is that I can't change battery without having external power, or rebooting - something I could previously do by suspending to disk.

My acpi-support looks as follows, in case someone else is seeing the same problem:

ACPI_SLEEP=true

# Following line commented out to disable suspend to disk...
# ACPI_HIBERNATE=true

ACPI_SLEEP_MODE=mem

# Added usbserial to try and make the 3G modem work reliably between standby/restart cycles...
MODULES="usbserial"

# Added mysql to the services to stop and start between standby/restart cycles...
STOP_SERVICES="mysql"

# All other options are left at the default values for Ubuntu.
# Example taken from Ubuntu 7.10 (Gutsy) and running on a Dell D430 laptop.

Hopefully this will help someone else seeing the same problems I am. I've not managed to find anyone else seeing the same behaviour, so if you've come across it - and particularly if you have a better solution than the one detailed above - please drop me a mail at blog-at-signal2noise.ie.
posted at: 17:33 | path: /technical | permanent link to this entry


copyright © 2005-2008, Gareth Eason