[ltp] Re: Bluetooth button not working after installing Debian 2.6.29 kernel

Bjørn Mork linux-thinkpad@linux-thinkpad.org
Fri, 17 Apr 2009 16:01:15 +0200


Henrique de Moraes Holschuh <hmh@hmh.eng.br> writes:

> Hmm, let me check the latest acpid in Debian...  Hey, it has been updated,
> my info was outdated.  Check acpid -n.  It now listens over netlink.

Thanks for the pointer.  I've now finally looked at it, and using this
patch on top of the Debian acpid restores previous functionality for me,
using a default Debian linux-image-2.6.29-1-amd64 kernel (version
2.6.29-2):


--- a/input_layer.c	2009-04-17 15:27:40.000000000 +0200
+++ b/input_layer.c	2009-04-17 15:48:45.000000000 +0200
@@ -57,7 +57,16 @@
 	{{{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"},
+
+	/* Additional Lenovo Thinkpad keys */
+	{{{0,0}, EV_KEY, KEY_BATTERY, 1}, "ibm/hotkey HKEY 00000080 00001003"},
+	{{{0,0}, EV_KEY, KEY_RADIO, 1}, "ibm/hotkey HKEY 00000080 00001005"},
+	{{{0,0}, EV_KEY, KEY_SWITCHVIDEOMODE, 1}, 
+	        "ibm/hotkey HKEY 00000080 00001007"},
+	{{{0,0}, EV_KEY, KEY_F22, 1}, "ibm/hotkey HKEY 00000080 00001008"},
+	{{{0,0}, EV_KEY, KEY_F24, 1}, "ibm/hotkey HKEY 00000080 00001009"},
+	{{{0,0}, EV_KEY, KEY_ZOOM, 1}, "ibm/hotkey HKEY 00000080 00001014"},
 };
 	
 /*----------------------------------------------------------------------*/



Any reasons why this shouldn't be added to acpid?  Any additional keys
which should be included at the same time?


Bjørn