[ltp] T61: no power button key event when using evdev driver / HAL for keyboard configuration

Jens Rutschmann linux-thinkpad@linux-thinkpad.org
Mon, 15 Dec 2008 22:25:26 +0100


Jens Rutschmann wrote on 15.12.2008 10:56:
> I'll try playing around with the FDI files this evening.

OK, I added a few lines to /etc/hal/fdi/policy/10-x11-input.fdi. Now it looks 
like this:

<?xml version="1.0" encoding="utf-8"?>
<deviceinfo version="0.2">
	<match key="button.type" string="power">
		<merge key="input.x11_driver" type="string">evdev</merge>
	</match>
</deviceinfo>

When starting HAL with that Xorg accepts the power button as input device and 
key event works. So I removed the keyboard configuration from xorg.conf and 
restarted X. Now everything runs with the "evdev" driver without problems. Sweet.


A few things to mention:

The power button now sends "XF86PowerOff". When using the "kbd" driver it sent 
"XF86PowerDown". So I had to reconfigure the key association in KDE's control 
center.

The sleep button sends key events without further configuration. I wonder why: 
While the power button now is listed in "xinput list" the sleep button is not.
Perhaps the "Thinkpad Extra Buttons" device covers the Fn+F4 key combination so 
xorg isn't using the sleep buton event device at all.


Hope this helps anybody.

Best regards,
Jens