[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1181919208.2681.6.camel@work>
Date: Fri, 15 Jun 2007 15:53:28 +0100
From: Richard Hughes <hughsient@...il.com>
To: Dmitry Torokhov <dmitry.torokhov@...il.com>
Cc: linux-acpi <linux-acpi@...r.kernel.org>, a_bartok@...email.hu,
Bastien Nocera <hadess@...ess.net>,
David Zeuthen <david@...ar.dk>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [patch] Reporting the lid status using INPUT
On Fri, 2007-06-15 at 10:29 -0400, Dmitry Torokhov wrote:
> On 6/15/07, Richard Hughes <hughsient@...il.com> wrote:
> > On Fri, 2007-06-15 at 13:29 +0100, Richard Hughes wrote:
> > > 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.
> >
> > Attached patch fixed the issue for me. Comments?
> >
>
> The patch makes perfect sense. The only issue I have is this:
>
> > + /* on resume we send the state; it might be the same, but userspace
> > + * should handle duplicated events */
>
> If switch state matches to what input layer thinks it is the event
> will not even reach userspace.
Okay, new patch attached, thanks for the speedy review.
Signed-off-by: Richard Hughes <richard@...hsie.com>
Download attachment "button-resume.patch" of type "message/rfc822" (2210 bytes)
Powered by blists - more mailing lists