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)
Tue, Nov 26, 3:42 AM
Unknown Object (File)
Thu, Nov 21, 3:01 PM
Unknown Object (File)
Thu, Nov 21, 2:09 AM
Unknown Object (File)
Sat, Nov 9, 4:45 AM
Unknown Object (File)
Fri, Nov 8, 5:18 PM
Unknown Object (File)
Oct 28 2024, 7:05 AM
Unknown Object (File)
Sep 30 2024, 8:15 PM
Unknown Object (File)
Sep 30 2024, 7:42 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 Skipped
Unit
Tests Skipped

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

One variable per line.

519

extra spacing here before report_id;

sys/dev/usb/usb_hid.c
862

Try to write like this:

scale[16][2] = {

....

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

sys/modules/usb/wmt/Makefile
3

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.