From: Richard Hughes <hughsient@gmail.com>
To: linux-acpi <linux-acpi@vger.kernel.org>
Cc: a_bartok@freemail.hu, Bastien Nocera <hadess@hadess.net>,
David Zeuthen <david@fubar.dk>
Subject: Reporting the lid status using INPUT
Date: Fri, 15 Jun 2007 13:29:27 +0100 [thread overview]
Message-ID: <1181910567.4819.7.camel@work> (raw)
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.
next reply other threads:[~2007-06-15 12:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-15 12:29 Richard Hughes [this message]
2007-06-15 13:12 ` [patch] Reporting the lid status using INPUT 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-25 21:24 ` Richard Hughes
2007-06-27 19:42 ` Richard Hughes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1181910567.4819.7.camel@work \
--to=hughsient@gmail.com \
--cc=a_bartok@freemail.hu \
--cc=david@fubar.dk \
--cc=hadess@hadess.net \
--cc=linux-acpi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.