summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Martin <eric.martin@gmx.net>2012-07-07 17:06:50 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2012-07-07 17:06:50 (GMT)
commit5345b8db8b30326d9ab0db9ac11fde9e7b9d3686 (patch)
tree924ab96a4dec2256d15f3f29496aaf1cf4c1b26b
parentc5fe9f7b723f949457263ef8e22ab807d5b549ce (diff)
downloadbusybox-5345b8db8b30326d9ab0db9ac11fde9e7b9d3686.tar.gz
busybox-5345b8db8b30326d9ab0db9ac11fde9e7b9d3686.tar.bz2
acpid: add missing lid switch definition
This patch adds a missing LID0 switch definition. Without it, closing the notebook lid is not detected by acpid. Signed-off-by: Eric Martin <eric.martin@gmx.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--util-linux/acpid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util-linux/acpid.c b/util-linux/acpid.c
index 1b22f3a..5d27929 100644
--- a/util-linux/acpid.c
+++ b/util-linux/acpid.c
@@ -75,6 +75,7 @@ struct acpi_event {
static const struct acpi_event f_evt_tab[] = {
{ "EV_KEY", 0x01, "KEY_POWER", 116, 1, "button/power PWRF 00000080" },
{ "EV_KEY", 0x01, "KEY_POWER", 116, 1, "button/power PWRB 00000080" },
+ { "EV_SW", 0x05, "SW_LID", 0x00, 1, "button/lid LID0 00000080" },
};
struct acpi_action {