public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Lid switch not waking machine
@ 2003-07-07  1:16 Matthew Garrett
       [not found] ` <20030707011638.GA19894-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Matthew Garrett @ 2003-07-07  1:16 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

If I press the lid switch to put my laptop to sleep, releasing it 
doesn't wake it up. acpi_hw_enable_gpe_for_wakeup only seems to be 
called from acpi_enable_gpe and only if ACPI_EVENT_WAKE_ENABLE is set - 
acpi_enable_gpe only seems to be called from acpi_ec_gpe_query, and then 
only as:

        acpi_enable_gpe(NULL, ec->gpe_bit, ACPI_NOT_ISR);

So, should this function be being called for my lid switch, and if so 
how? Or am I barking up the wrong tree entirely? Windows resumes happily 
if the switch is released, so it's presumably capable of generating a 
wakeup event.

-- 
Matthew Garrett | mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01

^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: Lid switch not waking machine
@ 2003-07-14  0:44 Grover, Andrew
  0 siblings, 0 replies; 7+ messages in thread
From: Grover, Andrew @ 2003-07-14  0:44 UTC (permalink / raw)
  To: Nate Lawson, Matthew Garrett; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

> From: Nate Lawson [mailto:nate-Y6VGUYTwhu0@public.gmane.org] 
> > Under Windows, opening the lid results in the system 
> waking, so it seems
> > that the hardware is capable of it. It'd be nice if the same were
> > possible under Linux.
> 
> Under FreeBSD, my IBM T23 suspends/resumes (S3) based on the 
> lid switch
> just fine.

Yeah this should work.

If we're not enabling the lid device for wakeup then that explains part
of it. As for the other part of the problem, it sounds like we are not
re-enabling GPEs or fixed events properly on wakeup. To be honest don't
think any Linux development has happened to specifically make this work,
so I'm not surprised it doesn't. :) If you have time to figure out what
exactly the problem is on your system and how to fix it then that would
be a big step in the right direction.

Maybe looking at FreeBSD's code and seeing what they're doing would be a
good start? ;-)

Regards -- Andy


-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-07-14  0:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-07  1:16 Lid switch not waking machine Matthew Garrett
     [not found] ` <20030707011638.GA19894-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
2003-07-07  2:26   ` Matthew Garrett
2003-07-07 12:13     ` Derek Broughton
     [not found]       ` <007301c34481$29864080$3746028e-dP0OE4Ef7fWw5LPnMra/2Q@public.gmane.org>
2003-07-07 12:44         ` Simon Gates
2003-07-07 13:12         ` Matthew Garrett
     [not found]           ` <20030707131244.GA31883-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
2003-07-09 19:24             ` Nate Lawson
  -- strict thread matches above, loose matches on Subject: below --
2003-07-14  0:44 Grover, Andrew

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox