acpi not accepting command

Matthew Saltzman mjs at ces.clemson.edu
Sat Mar 12 04:01:26 UTC 2005


On Thu, 10 Mar 2005, E GCP wrote:

> Hi!
>
> I'm running FC3 (2.6.10-1.766_FC3smp) on a HP ZD7000 laptop (2G RAM). In 
> grub.conf I set up acpi=on apm=off and my sleep.sh is as shown below.
>
> Here is my sleep.sh:
> #!/bin/sh
> # pre-suspend:
> oldvt=$(fgconsole)
> chvt 1
> /sbin/modprobe -r uhci_hcd
> /sbin/modprobe -r ehci_hcd
> echo mem > /sys/power/state
> # on wake-up:
> video_post
> /sbin/modprobe uhci_hcd
> /sbin/modprobe ehci_hcd
> chvt $oldvt
>
> The script is run when I close the lid. So, I close the lid and the laptop 
> seems to go into sleep, but wakes up right away. I finally tracked down the 
> problem to this command:
> echo mem > /sys/power/state
>
> For example, if I type in a terminal as root: echo mem > /sys/power/state 
> nothing happens. It takes the command in very quicky and doesn't send any 
> error, but it also doesn't do anything either. Just like if I have pressed 
> the RETURN key with no command before it.
>
> It seems like I'm missing the proper ACPI support in the kernel, but this 
> kernel comes straight from Fedora and I have not changed anything in the 
> kernel. I have a HT CPU so I'm using the smp that needs ACPI and it 
> recognizes that ACPI is there with no errors. Also, the LID triggers the 
> sleep.sh script as it should. So, is there somewhere another switch for ACPI? 
> What am I missing?

(1) Is acpid running?

(2) People have reported the problem you are seeing with immediate 
wakeups.  In my script, the suspend is initiated by

 	echo 3 > /proc/acpi/sleep

That is supposed to be a workaround for this problem.

>
> Thanks,
> egcp
>
>
>
>

-- 
 		Matthew Saltzman

Clemson University Math Sciences
mjs AT clemson DOT edu
http://www.math.clemson.edu/~mjs




More information about the fedora-list mailing list