diff options
author | Eric Martin <eric.martin@gmx.net> | 2012-07-07 19:06:50 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-07-07 19:06:50 +0200 |
commit | 5345b8db8b30326d9ab0db9ac11fde9e7b9d3686 (patch) | |
tree | 924ab96a4dec2256d15f3f29496aaf1cf4c1b26b | |
parent | c5fe9f7b723f949457263ef8e22ab807d5b549ce (diff) | |
download | busybox-5345b8db8b30326d9ab0db9ac11fde9e7b9d3686.tar.gz |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util-linux/acpid.c b/util-linux/acpid.c index 1b22f3a01..5d2792948 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 { |