Skip to content

GKMD 4.11.0

Choose a tag to compare

@4zyz4 4zyz4 released this 28 Nov 05:19
· 8 commits to main since this release

v4.11.0 — 2026-11-28 — HIDMaestro 2.2.0–2.4.1 USB/IP sync and digitizer profiles

English | 简体中文

GKMD 4.11.0 syncs the USB/IP runtime work that landed in HIDMaestro 2.2.0
through 2.4.1 and applies to GKMD's pure USB/IP backend. No managed API or
C ABI function changed.

Highlights

  • Connection-table lookups retry — a lookup that finds no owner reads the
    table up to three times, with spare room doubling from 64 to 8192 rows, so a
    table that grows or is caught mid-update no longer rejects a legitimate
    host-controller import. Two counters record how single reads fail.
  • Attaches held by killed programs are freed — before an attach, the host
    controller's connections to GKMD ports of exited processes are ended. A
    program killed inside the import handshake used to hold the controller's
    attach path forever; the handshake now fails, the request returns, and the
    next attach proceeds.
  • Liveness by connect — the stale sweep no longer trusts the TCP listener
    table, which can miss another process's loopback listener. It probes every
    relevant port in parallel with SYN retransmissions off; a dead port fails in
    under a millisecond inside the one-second budget.
  • USB 2.0 port count — the create reads the count from the host
    controller's root hub, falls back to the driver's parameters rule, and
    counts only imports below SuperSpeed. A create past the limit is refused by
    name before the attach, and the attach checks again if it fails.
  • Interrupt IN answers respect the URB — every parked read keeps its
    TransferBufferLength, and the pump, protocol replies and queued-frame
    answers send no more bytes than it asked for.
  • Extended frames must match the declared report — a HID device sends an
    extended frame only at the declared length of the report it names; other
    frames are dropped and the last report keeps serving reads and
    GET_REPORT(Input).
  • No-ID output reports — a descriptor with no Report ID items publishes
    report ID 0 and the data whole on interrupt OUT and SET_REPORT, matching
    what the UMDF2 driver gives the output ring. Keyboards, mice and the raw
    Xbox 360 output are affected.
  • Precision touchpad, touchscreen and pen — three new built-in personas,
    precision-touchpad (5 contacts), touchscreen (10 contacts) and pen.
    HidDescriptorBuilder emits their descriptors and feature answers,
    including the touchpad's 257-byte certification report; SubmitTouch and
    SubmitPen pack the reports, and TouchDeviceMode exposes the mode
    Windows writes. Windows enumerates them as "HID-compliant touch pad",
    "HID-compliant touch screen" and "HID-compliant pen", and wrote Device
    Mode 3 / 2 for the first two in a live run.
  • 1024-byte input lane — the extended lane grows from 80 to 1024 bytes,
    so a 10-contact touchscreen report (104 bytes) and a 257-byte feature
    answer fit whole. Multi-report touch submits are handed to the pump one at
    a time through an in-process input-read event.

Artifacts

File Size Notes
GKMD-v4.11.0-windows-x64.zip 26,806,626 bytes Windows x64: GKMD.dll (29,291,520 bytes, NativeAOT PE, embeds USBip-0.9.8.1-x64.exe), gkmd.h, LICENSE, THIRD-PARTY-NOTICES.txt
GKMD-v4.11.0-windows-arm64.zip 19,663,217 bytes Windows ARM64: GKMD.dll (22,362,624 bytes, NativeAOT PE, embeds USBip-0.9.8.1-arm64.exe), gkmd.h, LICENSE, THIRD-PARTY-NOTICES.txt
GKMD-v4.11.0-linux-x64.zip 1,706,589 bytes Linux x64: libGKMD.so (3,440,288 bytes, NativeAOT ELF, no installer payload), gkmd.h, LICENSE, THIRD-PARTY-NOTICES.txt
GKMD-v4.11.0-linux-arm64.zip 1,633,379 bytes Linux ARM64: libGKMD.so (3,571,288 bytes, NativeAOT ELF, no installer payload), gkmd.h, LICENSE, THIRD-PARTY-NOTICES.txt

SHA-256:

  • GKMD-v4.11.0-windows-x64.zip: 3CCDBF773084C1211FB3B4FDFAA5390F5EC0DD5C914595C1E2702F29F2ADB3E8
  • GKMD-v4.11.0-windows-arm64.zip: 7807E50897F60A50F1C074898F1050E3E81EEF051F7E107F911B31336876C9B6
  • GKMD-v4.11.0-linux-x64.zip: 640587102533F4C6B84E19CF07B6993EFEA80A4CD5BC408C294F2891CFDBBDC7
  • GKMD-v4.11.0-linux-arm64.zip: DBA9E1D7F47FFF085D21BEAC4F99B5207E1B2D97F6D127BDDC859DB360FB27D6

Build / verify

dotnet build -c Debug and the Windows (net10.0-windows) and Linux
(net10.0) targets both compile with 0 warnings and 0 errors. The Linux
packages were built on WSL Ubuntu; the Windows packages on Windows.

A live Windows run created the three digitizer personas, and Windows
enumerated them as “HID-compliant touch pad”, “HID-compliant touch screen”
and “HID-compliant pen”; it wrote Device Mode 3 for the touchpad and 2 for
the touchscreen.

v4.11.0 — 2026-11-28 — 同步 HIDMaestro 2.2.0–2.4.1 并新增触控板、触屏与笔

English | 简体中文

GKMD 4.11.0 同步 HIDMaestro 2.2.0 至 2.4.1 中适用于 GKMD 纯 USB/IP 后端的运行时改动,
并新增精确触控板、触屏与笔三种 digitizer persona。
托管 API 与 C ABI 函数均未改变。

主要改动

  • 连接表查找重试 — 找不到 owner 时最多重读三次,备用空间从 64 行逐次翻倍到 8192 行;
    表在增长或更新中的短暂不一致不再拒绝合法的 host controller import。另记录两种单次读取失败的计数。
  • 被终止程序的 attach 不再永久占住 — attach 前结束 host controller 与已退出 GKMD 进程之间仍存在的连接。
    被杀死在 import 握手内的程序原本会永久占住 attach 路径;现在握手失败、请求返回,后续 attach 正常进行。
  • 按 connect 判断存活 — 死服务清扫不再信任 TCP listener 表(它可能漏掉其它进程的 loopback listener)。
    改为并行 connect 所有相关端口并关闭 SYN 重传;死端口在 1 秒预算内以毫秒级失败。
  • USB 2.0 端口计数 — 从 host controller 根集线器读取端口数,根集线器不回答时回退到驱动参数规则;
    只统计低于 SuperSpeed 的 import。端口已满时 create 在 attach 前按名称拒绝,attach 失败时再检查一次。
  • 中断 IN 应答遵守 URB 长度 — 每个挂起的读取记住自己的 TransferBufferLength;
    输入泵、协议应答与排队帧应答都不发送超过该长度的字节。
  • 扩展帧必须匹配声明的报文 — HID 设备只发送与所声明报文长度一致的扩展帧;
    其它帧被丢弃,最后一份报文继续服务读取与 GET_REPORT(Input)。
  • 无 Report ID 的输出报文 — 描述符没有 Report ID 项时,interrupt OUT 与 SET_REPORT
    发布 report ID 0 和完整数据,与 UMDF2 驱动写入输出 ring 的内容一致;涉及键盘、鼠标与原始 Xbox 360 输出。
  • 精确触控板、触屏与笔 — 新增 precision-touchpad(5 指)、touchscreen(10 指)与 pen
    三个内建 persona。HidDescriptorBuilder 生成它们的描述符与 feature 应答(含触控板 257 字节认证报告);
    SubmitTouch / SubmitPen 负责打包,TouchDeviceMode 暴露 Windows 写入的模式。Windows 将其识别为
    “HID-compliant touch pad”、“HID-compliant touch screen”与“HID-compliant pen”,实测前两者分别被写入
    Device Mode 3 与 2。
  • 1024 字节输入通道 — 扩展通道从 80 字节扩到 1024 字节,完整承载 10 指触屏的 104 字节报文与
    257 字节 feature 应答。多帧 touch 提交通过进程内 input-read 事件逐帧交给输入泵。

构建产物

文件 大小 说明
GKMD-v4.11.0-windows-x64.zip 26,806,626 字节 Windows x64:GKMD.dll(29,291,520 字节,NativeAOT PE,内嵌 USBip-0.9.8.1-x64.exe)、gkmd.h、LICENSE、THIRD-PARTY-NOTICES.txt
GKMD-v4.11.0-windows-arm64.zip 19,663,217 字节 Windows ARM64:GKMD.dll(22,362,624 字节,NativeAOT PE,内嵌 USBip-0.9.8.1-arm64.exe)、gkmd.h、LICENSE、THIRD-PARTY-NOTICES.txt
GKMD-v4.11.0-linux-x64.zip 1,706,589 字节 Linux x64:libGKMD.so(3,440,288 字节,NativeAOT ELF,无安装器载荷)、gkmd.h、LICENSE、THIRD-PARTY-NOTICES.txt
GKMD-v4.11.0-linux-arm64.zip 1,633,379 字节 Linux ARM64:libGKMD.so(3,571,288 字节,NativeAOT ELF,无安装器载荷)、gkmd.h、LICENSE、THIRD-PARTY-NOTICES.txt

SHA-256:

  • GKMD-v4.11.0-windows-x64.zip:3CCDBF773084C1211FB3B4FDFAA5390F5EC0DD5C914595C1E2702F29F2ADB3E8
  • GKMD-v4.11.0-windows-arm64.zip:7807E50897F60A50F1C074898F1050E3E81EEF051F7E107F911B31336876C9B6
  • GKMD-v4.11.0-linux-x64.zip:640587102533F4C6B84E19CF07B6993EFEA80A4CD5BC408C294F2891CFDBBDC7
  • GKMD-v4.11.0-linux-arm64.zip:DBA9E1D7F47FFF085D21BEAC4F99B5207E1B2D97F6D127BDDC859DB360FB27D6

构建 / 验证

dotnet build -c Debug 的 Windows(net10.0-windows)与 Linux(net10.0)目标均以 0 警告、0 错误通过。
Linux 包在 WSL Ubuntu 上构建,Windows 包在 Windows 上构建。

在 Windows 上实测创建三种 digitizer persona,Windows 分别识别为
“HID-compliant touch pad”、“HID-compliant touch screen”与“HID-compliant pen”,
并向触控板写入 Device Mode 3、向触屏写入 2。