xinput ids

Peter Korsgaard peter at korsgaard.com
Mon Jun 8 22:23:36 PDT 2015


>>>>> "Peter" == Peter Hutterer <peter.hutterer at who-t.net> writes:

Hi,

>> To find the ID reliably. Is this the right way to do it? Is there
 >> perhaps a better way with udev/systemd?

 > what do you use for configuring and why do you need the ID specifically? if
 > you use xinput to configure things, you can use the device name as well.

 > xinput set-prop "some device name" "some property name" 1 2 3

A typical use case is to set the coordinate transformation matrix for
touchscreens in multihead setups.

In the likely situation that the touchscreens are of the same type they
will have the same device name, so you need to fish out the
corresponding /dev/input/event* device node and pass it to udevadm info
(assuming that the server is local) to E.G. key off the ID_PATH
(E.G. the USB port the touchscreen is connected to).

-- 
Bye, Peter Korsgaard


More information about the xorg mailing list