Page MenuHomeFreeBSD

wmt: Driver for generic MS Windows 7/8/10 - compatible USB HID multi-touch devices
ClosedPublic

Authored by wulf on Aug 13 2017, 10:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 5, 7:23 PM
Unknown Object (File)
Mar 19 2024, 8:06 AM
Unknown Object (File)
Jan 26 2024, 4:29 AM
Unknown Object (File)
Jan 13 2024, 2:56 AM
Unknown Object (File)
Dec 28 2023, 3:24 PM
Unknown Object (File)
Dec 22 2023, 10:31 AM
Unknown Object (File)
Dec 19 2023, 10:55 PM
Unknown Object (File)
Nov 11 2023, 6:33 PM
Subscribers

Details

Summary

Add support for generic MS Windows 7/8/10 - compatible USB HID multi-touch touchscreens via evdev protocol.
Intended to be a native replacement of hid-miltitouch.c driver found in Linux distributions and multimedia/webcamd port.

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"

To get multi-touch device working in X, one should install ports/x11-drivers/xf86-input-evdev and properly configure it.

Currently, driver does not support pens or touchpads.

Note: wmt.ko should be kld-loaded before uhid driver to take precedence over it! Otherwise uhid can be kld-unloaded after loading of wmt.

Test Plan

Tested with ELAN (0x04f3:0x0012) and VirtualBox touchscreens

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

CFT has been announced on current@

bcr added a subscriber: bcr.

OK from manpages, but you need to bump the .Dd to the date when you commit this. Thanks!

This revision is now accepted and ready to land.Aug 14 2017, 7:03 AM
hselasky added inline comments.
sys/dev/usb/input/wmt.c
516 ↗(On Diff #32015)

One variable per line.

519 ↗(On Diff #32015)

extra spacing here before report_id;

sys/dev/usb/usb_hid.c
862 ↗(On Diff #32015)

Try to write like this:

scale[16][2] = {

....

[0] = { ... },
[1] = { ... },
[2] = { ... },

sys/modules/usb/wmt/Makefile
3 ↗(On Diff #32015)

Should you use ${SRCTOP} here ? Check other Makefiles in sys/modules/usb .

wulf edited edge metadata.

Make code style more consistent with other usb drivers and style(9) manpage.
No functional changes.

This revision now requires review to proceed.Aug 14 2017, 10:09 PM
This revision is now accepted and ready to land.Aug 15 2017, 7:50 AM

CFT on Twitter via @FreeBSDHelp (hope it helps)

Thank you!

This revision was automatically updated to reflect the committed changes.