Correctly identify touchpads
mjt at tls.msk.ru
Fri Dec 25 02:52:56 PST 2009
Michael Tokarev wrote:
> Dmitry Torokhov wrote:
>> On Thu, Dec 24, 2009 at 11:32:27PM +0300, Michael Tokarev wrote:
>>>>> B: KEY=6420 7000f 0 0 0 0
>>>>> B: ABS=11000003
>> Not really :( We print in groups of longs so it is either 32 or 64 bits
>> worth of data per number.
> Ok, I stand corrected. I verified the issue with 32bit kernel, and
> there, hald works as expected, listing `synaptics' as x11_driver
> and correct input.touchpad capability.
So the question is how userspace can detect the right size.
The above example shows 6 groups of numbers. With 32bit kernel that
turns into 12 groups. Is that enough clue?
How about changing kernel interface to print whole number in one go?
And the bug appears to be in kernel really, but assigning it to hal
at this point makes sense.
More information about the hal