← Back to team overview

multi-touch-dev team mailing list archive

Re: script to detect MT devices

 

On 08/18/2010 09:33 AM, Marc Tardif wrote:
* Henrik Rydberg<rydberg@xxxxxxxxxxx>  [2010-08-18 14:03 +0200]:
On 08/18/2010 01:56 PM, Duncan McGreggor wrote:
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.

Thanks for the review and the update which included checking the LONG_BIT
of the underlying system. I have fixed and updated the Python script
accordingly, attached to this message. Enjoy once again!

Works like a charm, Marc -- Thanks!

d




References