Solaar/tests/logitech_receiver
Ken Sanislo 3b76be9abb Leave lighting alone on connect when LED control is off
Connect-time apply pushed persisted zone effects and the LED-control
release write even when the user had LED control switched off — with
the G560 (0x8070) accepting zone writes without a SW-control claim,
Solaar repainted lighting it didn't own on every startup, stomping the
device's onboard effect or any other controller (e.g. OpenRGB).

Off now doubles as "leave the lighting alone": LEDControl.apply skips
the wire entirely unless the persisted value is an explicit claim, and
zone-effect applies follow their control gate (led_control for 0x8070,
rgb_control for 0x8071 — the same gate PerKeyLighting already
enforces).  When the gate is on, the claim itself repaints the saved
zone effects, matching the RGBControl claim flow.
2026-07-16 23:07:58 -07:00
..
__init__.py tests: Add tests of common module 2024-02-18 06:10:53 -05:00
fake_hidpp.py Add support for the G560 Gaming Speaker and speaker devices generally 2026-07-16 23:06:34 -07:00
test_base.py G522 LIGHTSPEED headphones support 2026-05-21 10:13:00 -04:00
test_base_usb.py Speedup lookup of known receivers 2025-01-01 11:33:07 -05:00
test_common.py ui: Show offline status for receiver-paired device batteries (#3217) 2026-05-13 17:32:03 -04:00
test_desktop_notifications.py tests: mock the libnotify backend so the suite raises no real notifications 2026-05-21 10:15:12 -04:00
test_device.py G522 LIGHTSPEED headphones support 2026-05-21 10:13:00 -04:00
test_diversion.py Refactor: Introduce Feature enum 2024-10-14 07:28:09 -04:00
test_hidpp10.py device: Handle composite IntFlag.name on Python < 3.11 (#3187) 2026-04-16 11:38:25 -04:00
test_hidpp20_complex.py Add support for the G560 Gaming Speaker and speaker devices generally 2026-07-16 23:06:34 -07:00
test_hidpp20_simple.py Add support for the G560 Gaming Speaker and speaker devices generally 2026-07-16 23:06:34 -07:00
test_notifications.py show better pairing errors (#3063) 2025-12-10 11:18:50 -05:00
test_receiver.py device: Support per-slot unpair on Lightspeed receivers (CLI + GUI) (#3183) 2026-04-17 09:34:58 -04:00
test_rgb_power.py rgb_control: honor the off state — don't auto-claim, init, or shutdown LEDs 2026-05-15 10:45:27 -04:00
test_setting_templates.py Leave lighting alone on connect when LED control is off 2026-07-16 23:07:58 -07:00
test_settings_validator.py common: render RGB color values as 0xrrggbb in config and solaar show 2026-05-12 12:51:36 -04:00