Dual-core Thinkpad fails to suspend with cpu governor active
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-source-2.6.17 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: linux-source-2.6.17
Greetings,
I have found a bug in Ubuntu 6.10 / Edgy related to software-suspend.
When sending my ThinkPad R60e to sleep (eg by closing the lid), the machine will sometimes fail to suspend correctly.
After some experimentation, it appears that this is a kernel bug related to cpufreq governors. If a cpufreq governor other than "performance" is active (eg "ondemand"), then the laptop will usually fail to suspend properly. In this error case, the screen goes blank but the machine never enters a suspend mode, and can still be controlled with CTRL-ALT-DELETE, SysRq, etc.
(There have been some lengthy discussions on LKML discussing the broken state of cpufreq locking - see http://
Installing the following scripts seems to reliably correct this problem:
#!/bin/sh
# /etc/acpi/
echo "performance" > /sys/devices/
echo "performance" > /sys/devices/
#!/bin/sh
# /etc/acpi/
echo "ondemand" > /sys/devices/
echo "ondemand" > /sys/devices/
Cheers,
David
--
David McBride <email address hidden>
Department of Computing, Imperial College, London
Confirming - I encountered the bug on a ThinkPad X60s.
I didn't have any problems resuming, but occasionally suspending failed, hanging the system as described.
After setting up the scripts posted in the original description, the problem hasn't occured again.