CFT: Driver for generic MS Windows 7/8/10 - compatible USB HID multi-touch touchscreens
Vladimir Kondratyev
vladimir at kondratyev.su
Sun Aug 13 22:59:18 UTC 2017
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
More information about the freebsd-current
mailing list