tags 521280 + patch thanks Hi,
another thing that needs to be done is to start acpid with the `-n' option. Attached is a patch for the acpid source package that adds the necessary definitions to input_layer.c and sets the `-n' option in acpid.default. Please apply this patch, as acpid is currently broken. Cheers, harry
diff -urN a/debian/acpid.default b/debian/acpid.default
--- a/debian/acpid.default 2009-11-08 17:17:37.000000000 +0100
+++ b/debian/acpid.default 2009-11-08 17:10:12.692962806 +0100
@@ -1,7 +1,7 @@
# Options to pass to acpid
#
# OPTIONS are appended to the acpid command-line
-#OPTIONS=""
+OPTIONS="-n"
# Modules to load before starting acpid
#
diff -urN a/debian/patches/input_events.diff b/debian/patches/input_events.diff
--- a/debian/patches/input_events.diff 1970-01-01 01:00:00.000000000 +0100
+++ b/debian/patches/input_events.diff 2009-11-08 17:06:37.816447496 +0100
@@ -0,0 +1,55 @@
+diff -ruN a/input_layer.c b/input_layer.c
+--- a/input_layer.c 2009-10-20 18:17:28.135310348 +0200
++++ b/input_layer.c 2009-10-20 18:32:04.907313692 +0200
+@@ -57,7 +57,50 @@
+ {{{0,0}, EV_KEY, KEY_SUSPEND, 1},
+ "button/suspend SUSP 00000080 00000000"},
+ {{{0,0}, EV_SW, SW_LID, 1}, "button/lid LID close"},
+- {{{0,0}, EV_SW, SW_LID, 0}, "button/lid LID open"}
++ {{{0,0}, EV_SW, SW_LID, 0}, "button/lid LID open"},
++ /* blue access IBM button on Thinkpad T42p*/
++ {{{0,0}, EV_KEY, KEY_PROG1, 1}, "button/prog1 PROG1 00000080 00000000"},
++ {{{0,0}, EV_KEY, KEY_VENDOR, 1},
++ "button/vendor VNDR 00000080 00000000"},
++ {{{0,0}, EV_KEY, KEY_FN_F1, 1}, "button/fnf1 FNF1 00000080 00000000"},
++ {{{0,0}, EV_KEY, KEY_FN_F2, 1}, "button/fnf2 FNF2 00000080 00000000"},
++ /* Fn-F2 produces KEY_BATTERY on Thinkpad T42p */
++ {{{0,0}, EV_KEY, KEY_BATTERY, 1},
++ "button/battery BAT 00000080 00000000"},
++ {{{0,0}, EV_KEY, KEY_SCREENLOCK, 1},
++ "button/screenlock SCRLCK 00000080 00000000"},
++ {{{0,0}, EV_KEY, KEY_COFFEE, 1},
++ "button/coffee CFEE 00000080 00000000"},
++ {{{0,0}, EV_KEY, KEY_SLEEP, 1}, "button/sleep SBTN 00000080 00000000"},
++ {{{0,0}, EV_KEY, KEY_WLAN, 1}, "button/wlan WLAN 00000080 00000000"},
++ {{{0,0}, EV_KEY, KEY_FN_F6, 1}, "button/fnf6 FNF6 00000080 00000000"},
++ {{{0,0}, EV_KEY, KEY_SWITCHVIDEOMODE, 1},
++ "button/videomode VMOD 00000080 00000000"},
++ {{{0,0}, EV_KEY, KEY_FN_F9, 1}, "button/fnf9 FNF9 00000080 00000000"},
++ {{{0,0}, EV_KEY, KEY_FN_F10, 1},
++ "button/fnf10 FNF10 00000080 00000000"},
++ {{{0,0}, EV_KEY, KEY_FN_F11, 1},
++ "button/fnf11 FNF11 00000080 00000000"},
++ /* Fn-F9 produces KEY_F24 on Thinkpad T42p */
++ {{{0,0}, EV_KEY, KEY_F24, 1}, "button/fnf24 FNF24 00000080 00000000"},
++ {{{0,0}, EV_MSC, 4, 12}, "button/fnbs FNBS 00000080 00000000"},
++ {{{0,0}, EV_MSC, 4, 13}, "button/fnins FNINS 00000080 00000000"},
++ {{{0,0}, EV_MSC, 4, 14}, "button/fndel FNDEL 00000080 00000000"},
++ {{{0,0}, EV_MSC, 4, 18}, "button/fnpgdown FNPGDOWN 00000080 00000000"},
++ {{{0,0}, EV_KEY, KEY_ZOOM, 1}, "button/zoom ZOOM 00000080 00000000"},
++ {{{0,0}, EV_KEY, KEY_BRIGHTNESSDOWN, 1},
++ "button/brightnessdown BRTDN 00000080 00000000"},
++ {{{0,0}, EV_KEY, KEY_BRIGHTNESSUP, 1},
++ "button/brightnessup BRTUP 00000080 00000000"},
++ {{{0,0}, EV_KEY, KEY_KBDILLUMTOGGLE, 1},
++ "button/kbdillumtoggle KBILLUM 00000080 00000000"},
++ {{{0,0}, EV_KEY, KEY_VOLUMEDOWN, 1},
++ "button/volumedown VOLDN 00000080 00000000"},
++ {{{0,0}, EV_KEY, KEY_VOLUMEUP, 1},
++ "button/volumeup VOLUP 00000080 00000000"},
++ /* mute button produces KEY_MIN_INTERESTING on Thinkpad T42p */
++ {{{0,0}, EV_KEY, KEY_MIN_INTERESTING, 1},
++ "button/mininteresting MININT 00000080 00000000"}
+ };
+
+ /*----------------------------------------------------------------------*/
diff -urN a/debian/patches/series b/debian/patches/series
--- a/debian/patches/series 2009-11-08 17:17:37.000000000 +0100
+++ b/debian/patches/series 2009-11-08 17:07:06.117286756 +0100
@@ -1,3 +1,4 @@
event.c.diff
netlink.diff
+input_events.diff
gcc44.diff
signature.asc
Description: PGP signature

