[PATCH] acpid: add missing lid switch definition

Eric Martin eric.martin at gmx.net
Sun Jul 1 00:10:41 UTC 2012


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
@@ -75,6 +75,7 @@
  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 {



More information about the busybox mailing list