1 Jul 2012 02:10
[PATCH] acpid: add missing lid switch definition
Eric Martin <eric.martin <at> gmx.net>
2012-07-01 00:10:41 GMT
2012-07-01 00:10:41 GMT
This patch adds a missing LID0 switch definition.
Without it, closing the notebook lid is not detected by acpid.
diff busybox.orig/util-linux/acpid.c busybox/util-linux/acpid.c
--- busybox.orig/util-linux/acpid.c
+++ busybox/util-linux/acpid.c
<at> <at> -75,6 +75,7 <at> <at>
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 {
RSS Feed