Skip to content

feat(keyboards): add native G915 X TKL onboard controls - #63

Merged
onyxhq-dev merged 4 commits into
OpenMouse-Project:mainfrom
ruvelro:codex/g915-native-keyboard
Dec 3, 2026
Merged

onyxhq-dev merged 4 commits into
OpenMouse-Project:mainfrom
ruvelro:codex/g915-native-keyboard

Conversation

@ruvelro

@ruvelro ruvelro commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Scope

  • Lists the G915 X TKL as a keyboard alongside the mouse on C547. Both use the native HID lock for the physical receiver.
  • Adds native Advanced controls for the three onboard profiles, active and idle keys and logo, inactivity, Game Mode keys, base-layer assignments, startup lighting, and linking animations already stored on the keyboard.
  • Reads stored values back and reapplies an edited active profile. Keeps verified values in the native controls.

Dependency and scope

Draft until OpenMouse-Project/keyboard-protocol#24 lands and a release makes the APIs available. The Desktop uses its embedded QuickJS runtime and native HID. Existing packages continue to build without exposing unavailable onboard controls.

The host-driven key trail, graphical per-key editor, and creating or uploading custom animations remain in the web UI.

Validation

  • macOS Apple Silicon build and cargo test --locked passed (137 passed, one ignored).
  • Native HID listed a physical G502 X PLUS and G915 X TKL on one C547 receiver, read all profiles and the stored animation names, and applied a reversible change to the active inactivity timer. The stored and running values were confirmed after the change and after restoring the original timer.

Note

Add native G915 X TKL onboard controls for Logitech keyboards

  • Adds onboard-memory settings sections for Logitech keyboards in keyboard-logitech.ts: profile selection and editing, lighting targets, profile timers, Game Mode keys and bindings, startup lighting, and stored animations
  • Adds shared-receiver keyboard discovery in keyboards.ts, so a G915 X TKL behind an already-taken Logitech receiver (vendor 0x046d/product 0xc547) still appears as a keyboard candidate. Receiver identity results are cached for one minute
  • Control writes in writeKeyboard dispatch to a Logitech writer that saves settings, rereads onboard memory, and checks the reported revision. Polling-rate writes are accepted only for reported supported rates and verified by a follow-up status read
  • Risk: AppView's device-control write handler in device_io.rs no longer applies the submitted value directly for Logitech control IDs; displayed values now depend entirely on the returned refreshed sections

Macroscope summarized 98c4d91.

@coderabbitai

coderabbitai Bot commented Dec 3, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Comment thread gpui/js/keyboards.ts Resolved
ruvelro and others added 2 commits December 3, 2026 07:29
… status read

Every rescan read the whole G915 status to learn its name. The listing now
asks for the identity only and reuses a recent answer for a minute.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@onyxhq-dev
onyxhq-dev marked this pull request as ready for review December 3, 2026 14:50
@onyxhq-dev
onyxhq-dev merged commit a88cd7a into OpenMouse-Project:main Dec 3, 2026
3 checks passed
@macroscopeapp

macroscopeapp Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 98c4d91

Macroscope's review found this PR approvable — Adds native G915 X TKL onboard settings and shared-receiver discovery. Changes are user-directed and device-local, with serialized HID access, read-back verification, and reported hardware testing that included restoring an edited setting.

Notes:

  • Your repo's Minimum Blocking Severity is Off, so correctness findings do not automatically block approval.
  • All code in this push has already been reviewed. Approvability was decided on eligibility alone.

You can add or adjust custom eligibility rules. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants