acpi

Justin Georgeson justin_georgeson at yahoo.com
Fri Nov 5 06:05:20 UTC 2004


Matt Zimmerman <mdz <at> canonical.com> writes:

> 
> On Fri, Nov 05, 2004 at 03:07:57AM +0000, Justin Georgeson wrote:
> 
> > I've noticed that in Windows, opening the laptop lid after entering S3 by
> > closing the lid doesn't trigger a wake. I have to hit the power button. So
> > I can put the `echo -n mem > /sys/power/state` in a script in /etc/acpi
> > that is called on the lid event, and that works, but when I hit the power
> > button while in S3, it seems to trigger a shutdown.  Understandable
> > considering the registered script for the powerbtn event shuts down. How
> > might I change the script to realise the machine is coming out of S3 and
> > just restart pcmcia and network instead of shutting down?
> 
> This is a known bug, but I don't think it's in bugzilla yet.  Please file it
> against acpid.
> 

https://bugzilla.ubuntu.com/show_bug.cgi?id=3256

What I currently have is a script to enter S3, and following the `echo ...` are
some commands to restart pcmcia/network, load some modules that were unloaded
before suspending, and chvt to 1 and back to 7. After commenting out the
powerbtn.sh contents the S3 script seems to be resume right as it should, but
the display (Intel i830M) never comes back. I changed the chvt calls to
stop/start gdm instead. Upon resume, I can ssh into the box, and I see the
whiptail dialogs saying X couldn't start and would I like try to reconfigure and
stop trying (I forget what they say). So something isn't being handled right
there. I've seen people mention passing acpi=off in grub, but I don't want to
turn off acpi as it's working really well for fan/temp control.

> > Where do I look to figure out what the kernel is doing when I run the
> > command `echo -n disk > /sys/power/state` and seemingly nothing
> > happens? Do I have to patch/rebuild the kernel for this, I seem to recall
> > mention that the swsusp stuff in the kernel.org kernels is left out of the
> > binary kernel packages.
> 
> https://bugzilla.ubuntu.com/show_bug.cgi?id=2003
> 

Guess I'll just wait ;)







More information about the ubuntu-users mailing list