usbhid(4)

usbhid4

Usb hid transport driver

Usage

To compile this driver into the kernel, place the following lines in your kernel configuration file:

device usbhid

Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):

usbhid_load="YES"

Overview

The usbhid driver provides a interface to USB Human Interface Devices (HIDs).

Sysctl variables

The following variables are available as both sysctl(8) variables and loader(8) tunables:

hw.usb.usbhid.enable

Enable usbhid and make its priority greater than other USB HID drivers, such as ukbd(4), ums(4), and uhid(4). Default is 1.

hw.usb.usbhid.debug

Debug output level, where 0 is debugging disabled and larger values increase debug message verbosity. Default is 0. Debug messages are printed on the system console and can be viewed using dmesg(8).

Releases

15 releases since FreeBSD 13.0-RELEASE; the text changed 4 times.

  1. 13.0–13.2
  2. 13.3–14.3
  3. 14.4–14.5
  4. 15.0
  5. 15.1–16.0

History

The usbhid driver first appeared in FreeBSD 13.0. It was enabled by default in FreeBSD 15.0.

Authors

The usbhid driver was written by Vladimir Kondratyev ⟨[email protected]⟩.

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.