linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Reporting the lid status using INPUT
@ 2007-06-15 12:29 Richard Hughes
  2007-06-15 13:12 ` [patch] " Richard Hughes
  0 siblings, 1 reply; 10+ messages in thread
From: Richard Hughes @ 2007-06-15 12:29 UTC (permalink / raw)
  To: linux-acpi; +Cc: a_bartok, Bastien Nocera, David Zeuthen

Guys,

I'm getting a few bugreports where:

* user shuts lid, initiates suspend
{lid is reported down}
* user opens lid, resume completes

But I'm not getting any lid INPUT up event. This works if you don't
initiate suspend when you shut the lid (blank screen for instance) -- so
I know my hardware is okay.

I see:

input_report_switch(input, SW_LID, !state);

in response to an event, but I'm thinking in a resume hook we should
probably do acpi_evaluate_integer(handle, "_LID", NULL, &state) and then
send an event, just so userspace is aware of what the state of the panel
is.

Does this sound sane?

Richard.



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

end of thread, other threads:[~2007-06-27 19:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-15 12:29 Reporting the lid status using INPUT Richard Hughes
2007-06-15 13:12 ` [patch] " Richard Hughes
2007-06-15 14:29   ` Dmitry Torokhov
2007-06-15 14:53     ` Richard Hughes
2007-06-16 17:11       ` Richard Hughes
2007-06-16 17:51         ` Dmitry Torokhov
2007-06-24 22:06           ` GMail
2007-06-25 20:49             ` Bartók Albert
2007-06-25 21:24               ` Richard Hughes
2007-06-27 19:42               ` Richard Hughes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).