← Back to team overview

multi-touch-dev team mailing list archive

Re: script to detect MT devices

 

On 08/17/2010 04:52 PM, Rafi Rubin wrote:
> On 08/17/10 18:40, Duncan McGreggor wrote:
>> 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
> 
> That is a bit strange.  What kernel version were you using at the time
> and do you have another kernel version installed?
> 
> (wondering if its just a broken sprintf)

 $ uname -a
 Linux bree 2.6.35-15-generic #21-Ubuntu SMP Wed Aug 11 16:41:40 UTC
2010 i686 GNU/Linux



Follow ups

References