getting device path or sysfs name of input device

Peter Korsgaard jacmet at sunsite.dk
Sun May 9 13:56:31 PDT 2010


>>>>> "Tias" == Tias  <tias at ulyssis.org> writes:

Hi,

 Tias> So my question is:

 Tias> - how can I ask the Xserver for the sysfs name of a device
 Tias>   (having its XID)
 Tias> - equivalently: how can I ask for the input device path (I can
 Tias>   then use udevadm to find the sysfs name)

I recently sent a patch to the server to expose the device path as an
xinput property:

http://thread.gmane.org/gmane.comp.freedesktop.xorg.devel/7730/

And one to evdev to expose the output of the EVIOCGPHYS ioctl (useful as
unique key, other info can be looked up by using it as a key in
/proc/bus/input/devices:

http://thread.gmane.org/gmane.comp.freedesktop.xorg.devel/7729

-- 
Bye, Peter Korsgaard



More information about the xorg mailing list