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 _______________________________________________ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: %(user_address)s