On 6/15/07, Richard Hughes <hughsient@xxxxxxxxx> 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. -- Dmitry - To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html