← Back to team overview

multi-touch-dev team mailing list archive

Re: script to detect MT devices

 

On 08/16/2010 05:52 AM, Henrik Rydberg wrote:
> Hi all, please find enclosed a script that answers the question
> 
> "Do I have any MT devices installed?"
> 
> The script checks the kernel event devices for their actual capabilities, so any
> driver which uses ABS_MT_POSITION_X, the corner stone of the MT protocol, will
> be listed.
> 
> Cheers,
> Henrik

Henrik and Rafi,

I've tried to use this script with the Lenovo T410s, and it fails. It
seems that the following N-trig device returns two integers instead of
the expected one integer:

  /sys/class/input/event10/device/capabilities/abs

cat'ing it gives the following:

  730100 3

I haven't discovered any other irrgularities, but there may be some. Do
you guys know why this is? What it signifies? How to update the script
to account for it?

Here's some more info:

  $ cat /sys/class/input/event10/device/name
  N-Trig MultiTouch
  $ cat /sys/class/input/event10/device/phys
  usb-0000:00:1d.0-1.8/input1

Thanks,

d



Follow ups

References