Re: [PATCH] HID: multitouch: add support for Win 8.1 multitouch touchpads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey Benjamin,

I was the one to submit the original Surface 2 patch. I have been
testing the 3.15/multitouch branch with the Surface Pro 2 type cover.
This patch doesn't actual enable the keyboard/mouse to work. This
patch only works when there is a HID_UP_BUTTON and/or HID_DG_TOUCHPAD
in usage, which is not the case on this device. The reason the type
cover is not working with hid-multitouch is mt_input_mapping is
returing -1 to ignore the device. This happens becuase of:

if (!td->mtclass.export_all_inputs &&
   field->application != HID_DG_TOUCHSCREEN &&
   field->application != HID_DG_PEN &&
   field->application != HID_DG_TOUCHPAD)
return -1;


I notice that there is now a mt.export_all_inputs which could allow
the surface type cover keyboard to get handled properly. Is this
something that sould be added to hid-multitouch for this device? The
driver could check for device ID's and set export_all_inputs to true.
It could also check for GenericDesktop application in hid field and
return 0 in mt_input_mapping.

I can submit a patch with one of these changes if you think it would
be better than the current patch for the surface from Derya. I belive
that patch adds hardware ID's to hid core and sets the HID Group to
generic.

On Thu, Mar 20, 2014 at 12:36 PM, Benjamin Tissoires
<benjamin.tissoires@xxxxxxxxx> wrote:
> On Thu, Mar 20, 2014 at 5:02 AM, Jiri Kosina <jkosina@xxxxxxx> wrote:
>> On Wed, 19 Mar 2014, Andrew Duggan wrote:
>>
>>> Multitouch touchpads built for Win 8.1 need to be sent an input mode feature report
>>> in order to start reporting multitouch events. This is the same process sent
>>> to Win 7 multitouch touchscreens except the value of the feature report is 3 for
>>> touchpads.
>>>
>>> Signed-off-by: Andrew Duggan <aduggan@xxxxxxxxxxxxx>
>>> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@xxxxxxxxxx>
>>
>> Applied, thanks.
>
> Thanks Jiri.
>
> Derya, can you test if this also solves the problem with the Surface 2
> touch cover?
> (if you remove the special vendor handling in hid_scan_report)
>
> Cheers,
> Benjamin
> --
> To unsubscribe from this list: send the line "unsubscribe linux-input" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux