← Back to team overview

multi-touch-dev team mailing list archive

Re: script to detect MT devices

 

On 08/18/2010 01:56 PM, Duncan McGreggor wrote:

> Hey Ara,
> 
> Marc's script looks nice, but I was waiting to get a resolution to the
> shell script/device/kernel issue before making some suggestions. Looks
> like the script you attached is an updated version that cleverly works
> around the issue.
> 
> Running the script no longer results in a traceback; I get results now.
> However, not all the results I expected. My expectations may be awry due
> to not knowing what the script outputs for other N-trig-based hardware.
> 
> Here's what I get:
> 
> Found device(s):
> SynPS/2 Synaptics TouchPad: /dev/input/event6
> N-Trig Pen: /dev/input/event9
> 
> Here's what I would expect (Henrik can correct my assumptions):
> 
> Found device(s):
> SynPS/2 Synaptics TouchPad: /dev/input/event6
> N-Trig Pen: /dev/input/event9
> N-Trig MultiTouch: /dev/input/event10
> N-Trig Touchscreen: /dev/input/event11
> 


Unfortunately the python code is not correct - I get false positives on my
machine. It seems the split is over word, whereas the shell script splits on bits.

Henrik



Follow ups

References