xinput ids

Peter Hutterer peter.hutterer at who-t.net
Mon Jun 8 15:36:13 PDT 2015


On Mon, Jun 08, 2015 at 02:53:34PM +0800, Kai Hendry wrote:
> Hi there,
> 
> I'm trying to reliably configure a touch input device in X. However the
> IDs can change between reboots.
> 
> From doing some googling, it seems that most people script something
> like:
> 
> ID=`xinput list | grep -Eo 'ouchpad\s*id\=[0-9]{1,2}' | grep -Eo
> '[0-9]{1,2}'`
> 
> 
> 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

Cheers,
   Peter



More information about the xorg mailing list