From: Dan Hatton Sent: 04 November 2005 00:39
I'm trying to set up ACPI power management, but I can't get my system to resume from suspend-to-RAM; does anyone have any idea how to proceed, please?
The details: the system is Fedora core 4, on an IBM ThinkPad, with a home-compiled 2.6.14 kernel (but the result is much the same with a Fedora stock 2.6.13 kernel.)
After I suspend with a (bash) script (cobbled together from bits of advice and scripts on the WWW,) run in an xterm, whose functional part is:
rmmod uhci_hcd rmmod ehci_hcd echo `fgconsole` > /var/cache/acpi/vt chvt 8 echo -n "auto_disable" > /proc/acpi/ibm/video echo -n "mem" > /sys/power/state echo -n "auto_enable" > /proc/acpi/ibm/video chvt `cat /var/cache/acpi/vt` rm -f /var/cache/acpi/vt modprobe uhci_hcd modprobe ehci_hcd
then resume by pressing the power button, the system comes back, and shows me my xsession, but then hangs when trying to run any commands.
When I run the script from the console, then resume by pressing the power button, the system dies (after a long-ish pause) with various error messages, in which there are references to "spinlock recursion," "spinlock lockup," and repeatedly to "ATA Timeout."
Dan,
something of an oblique answer I'm afraid but it might point you in the direction of some useful resources.
I've recently been setting up my work HP nx9105 as a dual boot WinXP / Ubuntu system. My main problem was USB not working. This turned out to be ACPI related because of a BIOS bug. (Fix was to turn off ACPI and all my USB devices snapped into use :o) )
My point is that the Ubuntu Wiki and forums have a lot of discussion related to laptops and all things ACPI which may provide some ideas about ways you can figure out a solution.
Regards,
Keith ____________ COMMERCE, n. - A kind of transaction in which A plunders from B the goods of C, and for compensation B picks the pocket of D of money belonging to E. - Ambrose Bierce - The Devil's Dictionary
On Fri, 4 Nov 2005, Keith Watson wrote:
My point is that the Ubuntu Wiki and forums have a lot of discussion related to laptops and all things ACPI which may provide some ideas about ways you can figure out a solution.
Ah yes, thank you: adding 'ubuntu wiki' to my Google terms found me this: http://www.thinkwiki.org/wiki/Problems_with_SATA_and_Linux. Having patched my kernel as instructed, I can now suspend to RAM and resume happily.
Now I just have to figure out how to get the machine to suspend on a timer: Fedora doesn't distribute sleepd, and trying to compile it from source fails with
cc -O2 -Wall -DACPI_APM -c -o sleepd.o sleepd.c In file included from sleepd.c:21: acpi.h:20: error: syntax error before #apm_info# sleepd.c: In function #main_loop#: sleepd.c:132: error: #apm_info# undeclared (first use in this function) sleepd.c:132: error: (Each undeclared identifier is reported only once sleepd.c:132: error: for each function it appears in.) sleepd.c:132: error: syntax error before #ai# sleepd.c:177: error: #ai# undeclared (first use in this function) sleepd.c:179: warning: implicit declaration of function #apm_read# sleepd.c: In function #main#: sleepd.c:307: warning: implicit declaration of function #apm_exists# make: *** [sleepd.o] Error 1