Add K10 HE battery report over raw HID - #477
Conversation
|
Thank you for your contribution! |
|
Commenting this PR just because it's actually still ready for review - but untouched and unassigned at this moment. The change is intentionally limited to the K10 HE and has been build-tested with:
It has also been hardware-tested on a K10 HE ISO in USB cable mode and 2.4 GHz dongle mode - as pointed out before. Happy to adjust the implementation if maintainers prefer a different raw HID command layout or a more general model-id scheme for other Keychron wireless boards. I hope there's no issue with it! |
Description
This PR adds a raw HID battery report for the Keychron K10 HE.
It introduces
KC_GET_BATTERY = 0xA4, returning battery percentage, voltage, charging state, active transport, and a keyboard model id.For USB cable mode, the host can request the report directly. For 2.4 GHz mode, the keyboard periodically pushes the report because the dongle does not appear to bridge host-to-keyboard raw HID requests.
Cable mode also keeps polling the battery voltage while USB is connected, so host reads return fresh battery data instead of the last wireless snapshot.
The change is intentionally limited to the K10 HE.
Build tested:
make keychron/k10_he/iso:allmake keychron/k10_he/ansi:allHardware tested:
Types of Changes
Issues Fixed or Closed by This PR
Checklist