Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 39 additions & 1 deletion docs/logitech-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ Coverage ledger for the Logitech HID++ 2.0 keyboard driver.
No physical-unit conversion is inferred from their raw u16 values.
- OpenLogi's `0x8081` per-key lighting and `0x1B04` control pages for the zone
and remap framing.
- The [PeriHub G HUB captures](https://github.com/hex-dump/perihub/issues/30#issuecomment-6928039301)
and the Logitech agent confirm the `0x4523` Game Mode bitmap. Logitech's
G915 X TKL device metadata identifies the physical controls. On the C547
receiver the driver read Game Mode state and the 128-entry control list,
sent a Caps Lock change and restored the five factory blocks. The keyboard
acknowledged both writes.
- [OpenLogi's `0x8040` wire reference](https://openlogi.org/hidpp/features/x8040-brightness-control)
for the illumination capability bit and functions 3–4.
- [OpenLogi's `0x8081` wire reference](https://openlogi.org/hidpp/features/x8081-per-key-lighting)
Expand Down Expand Up @@ -97,6 +103,38 @@ transport.
| RGB effects | `0x8071` | Device and cluster info, effects, power modes, startup colors | The G915 X TKL runs live LIGHTSYNC in host mode using `0x8101` fn 6 and subscribes to hardware activity notifications. The driver returns control when closing the client and retries an interrupted handoff when that client can communicate again. It reads and verifies the two startup colors in `0x8071` nonvolatile configuration and preserves device flags when writing inactivity timers. |
| Legacy LED zones | `0x8070` | info, zone info, effect info, set zone effect, get zone effect | Enumerates per-zone ordinals; reads the active RAM effect, applies a fixed color or a caller-supplied ten-byte *raw* effect for any advertised zone-local effect ID, and verifies the ordinal and all ten RAM parameter bytes when fn 14 is advertised. No EEPROM writes or undocumented effect-specific parameter encoding. |
| Key remapping | `0x1B04` | count, info, reporting, set-reporting | Reads controls, their groups and legal targets, and remaps a control with device read-back. |
| Game Mode | `0x4523`, `0x1B10` | state and disabled-key bitmap, control count and pages | G915 X TKL over LIGHTSPEED. `0x4523` fn 1 bit 0 reports the physical button state. Fn 0 replaces the whole 16-byte bitmap, with an LSB-first bit per `0x1B10` index. Fn 1 of `0x1B10` returns eight big-endian control IDs per page. The driver preserves the five factory blocks and the keyboard acknowledges each write. The firmware does not return the current bitmap. |
| Onboard memory | `0x8101` | capabilities, slot selection, user directory and profile files | G915 X TKL over LIGHTSPEED. Reads and selects the three slots with read-back. Edits name, key and logo lighting in active and idle states, timers, base-layer shortcuts and optional Game Mode blocks. Native Ripple is available on active keys. |
| Onboard lighting storage | `0x8071`, `0x00D0` | animation metadata, RGB frame upload | Stores user-generated key colors or timed lighting frames in either of the two animation slots. A profile can reference a stored animation. |

For `0x8101`, fn 8 loads a sector and fn 12 reads sixteen buffer bytes at a
big-endian offset. Fn 2 sizes the write buffer, fn 3 appends up to sixteen
bytes and returns a one-based page number. Fn 7 commits `[bank, sector,
sizeBE16, crc32BE32]`. The directory CRC covers its count and entries through
the terminator. Profile CRCs cover the entire 99-byte payload. The driver
stages and verifies a copy in an unreferenced user sector before updating
the directory. Fn 6 reads or switches mode and fn 9 selects the slot using
its CRC. Activation enables firmware power management and hands LIGHTSYNC
zones and power back to the keyboard via `0x8071` fn 5. When saving a
zone effect the driver clears the combined-lighting bit for its power state,
so the firmware uses independent zone effects instead of a combined preset.
In independent mode the profile stores logo at byte 30 and keys at byte 41,
then idle logo at 52 and idle keys at 63. Live LIGHTSYNC reports keys as
cluster 0 (location 1) and logo as cluster 1 (location 2) on this model.
A LIGHTSPEED test saved and re-read a temporary third profile,
activated it and verified restoration of all original slots and the mode.
The [public G915 X captures](https://github.com/theo-antonescu/logi-ghub-linux/blob/main/docs/g915x-profile-management.md)
document the read and selection commands.

Base-layer assignments use a `0x1B05` kind-1 file with a reference at byte 93
of the verified profile layout. OpenMouse stages the updated table and profile
before publishing their directory entries together. An F5 shortcut, all four
lighting targets and native Ripple were saved and read back on the TKL. The
keyboard also acknowledged an Aurora upload, reported it after reconnection
and accepted activating a profile referencing that animation. [PeriHub's
assignment captures](https://github.com/hex-dump/perihub/blob/main/docs/protocols/logitech-keyboard-lighting.md#key-assignments-and-game-mode-what-g-hub-sends-issue-30-captures)
and the [public animation capture](https://github.com/theo-antonescu/logi-ghub-linux/blob/main/docs/g915x-profile-management.md#custom-animations-implemented-in-featuresrgb_storepy)
document the corresponding payloads.

## Not implemented

Expand All @@ -123,5 +161,5 @@ transport.

The driver never writes a feature the keyboard did not advertise. Setters with
a getter read the value back before reporting success; write-only frames
(`0x8081` zone paint / `frame_end`, `0x1B08` key-travel events) are identified
(`0x8081` zone paint / `frame_end`, `0x1B08` key-travel events, `0x4523` bitmap) are identified
as such.
Loading