Skip to content

Enable wireless raw HID for the K10 HE - #539

Open
raymdl wants to merge 1 commit into
Keychron:2025q3from
raymdl:k10-he-wireless-raw-hid
Open

raymdl wants to merge 1 commit into
Keychron:2025q3from
raymdl:k10-he-wireless-raw-hid

Conversation

@raymdl

@raymdl raymdl commented Nov 12, 2026

Copy link
Copy Markdown

Description

Defines WILRESS_RAW_ENABLE (existing spelling) for the K10 HE so raw HID packets from the 2.4 GHz receiver reach the keyboard. With this, Keychron Launcher connects and configures the keyboard through the receiver, without a cable.

The guarded code in wireless.c called via_raw_hid_receive(), which is not defined anywhere in the tree, so the define could not be enabled without a link error. This changes it to the existing three-argument raw_hid_receive(RAW_HID_SRC_WIRELESS, ...), which routes replies back over the wireless transport.

Related: #537 makes the same call-site fix for the Q5 Max and also gives each queued packet its own buffer; #504 and #505 enable the same path for the K8 HE. This PR is the K10 HE opt-in and can be rebased on whichever of those lands first.

Types of Changes

  • Bugfix
  • Keyboard (addition or update)

Verification

  • make keychron/k10_he/ansi:keychron builds.
  • Tested on a K10 HE (ANSI, Special Edition) with a Keychron Link Type A receiver on firmware V0.3.0 and V0.3.1:
    • Host-to-keyboard raw HID requests over 2.4 GHz are answered (VIA protocol version, 0xA1 firmware version, 0xA9 profile info and profile select).
    • Keychron Launcher connects over the receiver and reads the keymap and HE profiles.
    • Typing over USB and 2.4 GHz is unaffected. Bluetooth was not tested.
  • The tested build also contained other local changes not in this PR.
  • For reference, Add K10 HE battery report over raw HID #477 reported that the receiver did not bridge host-to-keyboard raw HID on a K10 HE; on this unit it does once the receive call is fixed.

Note that with this enabled, any inbound raw HID packet restarts the keyboard's sleep timer (lpm_timer_reset() in the EVT_RAW_HID handler), so a host tool that polls will keep the keyboard awake.

🤖 Generated with Claude Code

Define WILRESS_RAW_ENABLE for the K10 HE so raw HID packets from the
2.4 GHz receiver reach the keyboard, which lets Keychron Launcher
configure it without a cable.

The guarded code called via_raw_hid_receive(), which is not defined
anywhere in the tree, so enabling the define did not link. Call the
existing three-argument raw_hid_receive() with RAW_HID_SRC_WIRELESS
instead, so replies are routed back over the wireless transport.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant