[Pommed-commits] r359 - trunk/pommed
jblache at alioth.debian.org
jblache at alioth.debian.org
Sat Sep 22 16:58:01 UTC 2007
Author: jblache
Date: 2007-09-22 16:58:00 +0000 (Sat, 22 Sep 2007)
New Revision: 359
Modified:
trunk/pommed/evdev.c
Log:
Add a little comment on the lid events usage.
Modified: trunk/pommed/evdev.c
===================================================================
--- trunk/pommed/evdev.c 2007-09-22 16:30:02 UTC (rev 358)
+++ trunk/pommed/evdev.c 2007-09-22 16:58:00 UTC (rev 359)
@@ -188,7 +188,12 @@
}
else if (ev.type == EV_SW)
{
- /* Lid switch */
+ /* Lid switch
+ *
+ * Note: this can't tell you when the machine comes back from suspend,
+ * because we close and reopen event devices at that time so we never
+ * get to see the lid open event on resume.
+ */
if (ev.code == SW_LID)
{
if (ev.value)
More information about the Pommed-commits
mailing list