[ltp] Re: thinkpad-acpi: inputdevice

Peter Jordan linux-thinkpad@linux-thinkpad.org
Wed, 25 Jul 2007 14:38:53 +0200


Tino Keitel, 07/25/07 14:22:

> On Wed, Jul 25, 2007 at 13:50:51 +0200, Peter Jordan wrote:
>> Hallo,
>>
>> i want to remap my thinkpad-acpi keymap on startup (i want use my
>> thinkventage button). my system is debian lenny with kernel 2.6.22.1 and
>> thinkpad-acpi 0.15
>>
>> The problem is that the input devnr of thinkpad-acpi input event is
>> changing with every startup.
>>
>> how can i identify the input devnr for thinkpad-acpi input event?
> 
> Do you mean the event device? I created this udev rule (however, not
> for a ThinkPad, but for another USB input device):
> 
> ------------------------------------------------------------------
> SUBSYSTEM!="input",                     GOTO="input-by-id2-end"
> ACTION!="add",                          GOTO="input-by-id2-end"
> # ignore the mid-level drivers
> KERNEL=="input[0-9]*",                  GOTO="input-by-id2-end"
> 
> KERNEL=="event*", \
>         SYMLINK+="input/by-id2/$SYSFS{idVendor}-$SYSFS{idProduct}"
> LABEL="input-by-id2-end"
> ------------------------------------------------------------------
> 
> With this, you should have unique event devices in /dev/input/by-id2/.
> 

thank you for responding, but i need the devnr for usage with input-kbd


PJ