OpenBoot
Draft: this page is not reviewed yet.

Input driverDraft

Maturity: experimental. What the hardware is, how the code reaches it and what has been seen working is on the page of each generation; the table at the end links them.

What the driver is#

win/obhid is a lower filter in the HID stack for the ACPI device ACPI\OBHD0001, below the inbox mshidkmdf function driver. It makes the built-in keyboard and trackpad appear to Windows as ordinary HID devices. The firmware's ACPI tables publish the device (see Drivers).

Behaviour toward Windows#

  • Keyboard. Reports from the device are passed to Windows in the layout Windows expects. A function-key layer maps the top row to either the F1 to F12 keys or media keys; the registry value FnMode selects which (default: F-keys first).
  • Trackpad. Contact frames are converted to Windows Precision Touchpad reports, with five contacts, palm rejection by a confidence test, and a mouse fallback. Feature and input-mode reports are answered.
  • Collections. The registry value Collections switches the keyboard, touchpad and consumer-control collections on and off.
  • Debug input. A debug build (OBHID_TEST_INPUT) accepts synthetic key and touch events through a shared page, for tests. The release build does not contain this path.

The INF is self-contained: the Windows Setup image has mshidkmdf.sys but not its INF, so the service section is carried in obhid.inf.

Build and host tests#

tools/win/build-obhid.sh debug|release <outdir> builds on a Linux host: Clang compiles, lld-link links against the NuGet WDK libraries that tools/win/fetch-wdk.sh fetches, and osslsigncode signs with a self-made certificate (stored outside the repository). It writes obhid.sys, obhid.inf and the test certificate. A catalogue cannot be made on Linux: the script ends with the message no catalog route on Linux and a non-zero exit, and tools/win/build-obhid-vm.sh with the files under tools/win/vm/ carries out the INF check, catalogue and signature on a Windows machine instead. The tools you need are clang, lld-link, openssl (3.4 or newer) and osslsigncode.

Host tests: make -C tests/obhid_host test. They run the core with fake devices and prove nothing about hardware.

Generations#

The hardware reality of this stream, per generation:

Generation Page
M5 Series M5 Series