CFT: Driver for generic MS Windows 7/8/10 - compatible USB HID multi-touch touchscreens

From: Vladimir Kondratyev <vladimir_at_kondratyev.su>
Date: Mon, 14 Aug 2017 01:58:52 +0300
Hi, all

Following patch [1] adds support for generic MS Windows 7/8/10 - 
compatible USB HID multi-touch touchscreens via evdev protocol.
It is intended to be a native replacement of hid-miltitouch.c driver 
found in Linux distributions and multimedia/webcamd port.

Patch is made for 12-CURRENT and most probably can be applied to recent 
11-STABLE and 11.1-RELEASE (not tested)

How to test.

1. Apply patch [1]
2. To compile this driver into the kernel, place the following lines 
into your kernel configuration file:
       device wmt
       device usb
       device evdev
    Alternatively, to load the driver as a module at boot time, place the 
following line in loader.conf(5):
       wmt_load="YES"
3. Install x11-drivers/xf86-input-evdev or 
x11-drivers/xf86-input-libinput port
4. Tell XOrg to use evdev or libinput driver for the device:

Section "ServerLayout"
     ....
     InputDevice    "TouchScreen0" "SendCoreEvents"
EndSection


Section "InputDevice"
     Identifier  "TouchScreen0"
     Driver      "evdev"
#   Driver      "libinput"
     Option      "Device" "/dev/input/eventXXX"
EndSection

Exact value of "/dev/input/eventXXX" can be obtained with evemu-record 
utility from devel/evemu.

Note1: Currently, driver does not support pens or touchpads.
Note2: wmt.ko should be kld-loaded before uhid driver to take precedence 
over it! Otherwise uhid can be kld-unloaded after loading of wmt.

[1] wmt review: https://reviews.freebsd.org/D12017
     Raw diff: 
https://reviews.freebsd.org/file/data/ruebvnmyzymnhc7ho37f/PHID-FILE-nue7bjzefxyvwjkcfepd/D12017.diff


-- 
WBR
Vladimir Kondratyev
Received on Sun Aug 13 2017 - 20:59:18 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:12 UTC