Skip to main content

Module backlight

Module backlight 

Source
Expand description

HID++ Backlight (feature 0x1982) — keyboard backlight control.

The protocol-level 0x1982 wrapper lives in openlogi-hidpp; this module keeps OpenLogi’s IPC/config-facing mode, status, and snapshot types.

This is the backlight family used by the MX Keys line: a white, level-adjustable backlight driven by an ambient-light sensor and a hand proximity sensor. It is distinct from the RGB families (0x8070 ColorLedEffects, 0x8080 PerKeyLighting) that crate::set_keyboard_color drives — a device exposes one or the other, never both.

setBacklightConfig writes to the device’s non-volatile memory, so a disabled backlight stays disabled across reconnects, host switches, and power cycles without a daemon re-applying it.

Structs§

BacklightState
Snapshot of a keyboard’s backlight, merged from the 0x1982 getBacklightConfig and getBacklightInfo responses.

Enums§

BacklightMode
How the firmware decides the backlight brightness level.
BacklightStatus
Why the backlight is in its current state, as reported by getBacklightInfo.