[ltp] How to use the input interface?

Henrique de Moraes Holschuh linux-thinkpad@linux-thinkpad.org
Tue, 4 Dec 2007 13:08:13 -0200


On Tue, 04 Dec 2007, Evgeni Golov wrote:
> I would like to use the "new" input interface to map my extra keys to
> something reasonable.
> Using ThinkPad ACPI Extras v0.16 (2.6.24-rc1) i get a /dev/input/event4
> and using "input-events 4" I see the keys being pressed and released,
> so the thinkpad-acpi part seems to work fine.

Well, it should have worked with 0.16, but I don't have any faith on -rc1.
You might want to try to update to kernel 2.6.24-rc4 with 0.18-20071203 from
ibm-acpi.sf.net.  Or even better, whatever is in the latest Linus git tree,
with the patches from ibm-acpi.sf.net.

> However I cannot get these through to Xorg, so my windowmanager could
> handle it :(
>
> I've put the following into my xorg.conf:
> Section "InputDevice"
>         Identifier	"ThinkPad Extra Buttons"
>         Driver		"evdev"
>         Option          "Name"          "ThinkPad Extra Buttons"
> EndSection
> 
> But when X starts, I only get:
> (EE) ThinkPad Extra Buttons: cannot open input pEvdev
> (II) UnloadModule: "evdev"
> (EE) PreInit returned NULL for "ThinkPad Extra Buttons"
> 
> Did I miss something?

No, it should have worked.  You can also try to match using the "Phys"
string, instead of the "Name".  If that works, please tell us about it.
There is also the possibility of matching on vendor, version and product.
See manpage evdev(4).

That said, I have no idea why it didn't work.  I will play with it a bit and
see if I can reproduce it.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh