The G522 uses a Centurion protocol variant with report ID 0x50 that adds a device address byte at frame position [1], shifting all CPL fields by +1 compared to the PRO X 2's 0x51 variant. This commit adds transport- layer support for both variants while consolidating per-handle centurion state into a single CenturionHandleState dataclass. Key changes: - Consolidate _centurion_handles (set) and _centurion_protocol_versions (dict) into a single dict[int, CenturionHandleState] keyed by handle - Add _unwrap_centurion_frame() helper that auto-detects 0x50 vs 0x51 from raw frame bytes and learns the device address on first RX - Add _centurion_frame_header() to build the correct TX header per variant - Detect both report IDs in udev report descriptor parsing - Adjust bridge fragment chunk sizes for 0x50's extra header byte - Propagate full CenturionHandleState when opening per-thread handles Wire format verified against G522 diagnostic logs from LGSTrayEx#15. |
||
|---|---|---|
| .github | ||
| bin | ||
| docs | ||
| lib | ||
| po | ||
| rules.d | ||
| rules.d-uinput | ||
| share | ||
| tests | ||
| tools | ||
| .coveragerc | ||
| .git-blame-ignore-revs | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| .python-version | ||
| CHANGELOG.md | ||
| COPYRIGHT | ||
| LICENSE.txt | ||
| MANIFEST.in | ||
| Makefile | ||
| README.md | ||
| RELEASE.md | ||
| RHEL.md | ||
| Release_Notes.md | ||
| mkdocs.yml | ||
| pyproject.toml | ||
| release.sh | ||
| setup.py | ||
README.md
Solaar
Solaar is a Linux manager for many Logitech keyboards, mice, and other devices that connect wirelessly to a Unifying, Bolt, Lightspeed or Nano receiver as well as many Logitech devices that connect via a USB cable or Bluetooth. Solaar is not a device driver and responds only to special messages from devices that are otherwise ignored by the Linux input system.
More Information - Usage - Capabilities - Rules - Manual Installation - Known Issues
Solaar supports:
- pairing/unpairing of devices with receivers
- configuring device settings
- custom button configuration
- running rules in response to special messages from devices
For more information see the main Solaar documentation page. -
Installation Packages
Up-to-date prebuilt packages are available for some Linux distros (e.g., Fedora) in their standard repositories. If a recent version of Solaar is not available from the standard repositories for your distribution, you can try one of these packages:
- Arch solaar package in the extra repository
- Ubuntu/Kubuntu package in Solaar stable ppa
- NixOS Flake package in Svenum/Solaar-Flake
Solaar is available from some other repositories but may be several versions behind the current version:
- a Debian package, courtesy of Stephen Kitt
- a Ubuntu package is available from universe repository
- a Gentoo package, courtesy of Carlos Silva and Tim Harder
- a Mageia package, courtesy of David Geiger