2 .\" Copyright (c) 2010 AnyWi Technologies
3 .\" All rights reserved.
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 .Dd September 16, 2020
26 To compile this module into the kernel,
27 place the following line in your
28 kernel configuration file:
29 .Bd -ragged -offset indent
33 Alternatively, to load the module at boot
34 time, place the following line in
36 .Bd -literal -offset indent
42 module provides support for adding quirks for HID devices
45 device should be ignored by hid class
47 device should set the boot protocol
49 device should set the boot protocol
51 doesn't identify properly
52 .It HQ_MS_LEADING_BYTE
53 mouse sends an unknown leading byte
55 mouse has Z-axis reversed
57 spurious mouse button up events
59 Multitouch device exports HW timestamps
64 .Pa /sys/dev/hid/hidquirk.h
65 for the complete list of supported quirks.
67 The following tunable can be set at the
69 prompt before booting the kernel, or stored in
71 .Bl -tag -width indent
72 .It Va hw.hid.quirk.%d
73 The value is a string whose format is:
74 .Bd -literal -offset indent
75 .Qo BusId VendorId ProductId LowRevision HighRevision HQ_QUIRK,... Qc
80 for all HID devices matching
86 which have a hardware revision between and including
97 are all 16 bits numbers which can be decimal or hexadecimal based.
99 A maximum of 100 variables
100 .Ic hw.hid.quirk.0, .1, ..., .99
103 If a matching entry is found in the kernel's internal quirks table, it
104 is replaced by the new definition.
106 Else a new entry is created given that the quirk table is not full.
108 The kernel iterates over the
110 variables starting at
114 or the first non-existing one.
117 To install a quirk at boot time, place one or several lines like the
120 .Bd -literal -offset indent
121 hw.hid.quirk.0="0x18 0x6cb 0x1941 0 0xffff HQ_MT_TIMESTAMP"
132 driver was written by
133 .An Hans Petter Selasky Aq Mt hselasky@FreeBSD.org
136 subsystem and adopted to
139 .An Vladimir Kondratyev Aq Mt wulf@FreeBSD.org .
140 This manual page is based on
142 manual page written by
143 .An Nick Hibma Aq Mt n_hibma@FreeBSD.org .