Repository navigation
fix(scintilla): correct vendor protocols, scope probing, harden udev rules - #20
Merged
Merged
Conversation
…rules Review fixes across the scintilla crate and its battery applet consumer. Core: - KDE Connect: use KDE Connect's camelCase D-Bus names (zbus defaulted to PascalCase, so the provider never found anything) - GSConnect: read battery from the `battery` GAction (`(bsii)`) - watches and polls re-read only the watched device and only react to its own D-Bus objects; fix session watch spinning when a stream ends - cache vendor readings (120 s), probe devices in parallel with a timeout, probe each physical device once, skip devices with a kernel power_supply - Bluetooth: deadline-based read loops and SDP RFCOMM channel lookup - BLE GATT: cached values, 2 s read timeout, roles from 0x2901 descriptors - UPower kind/state mapping, sysfs HID-parent correlation and transport, union-find correlation, round-trippable address keys - HID Power Page reader honours field offsets and logical maximum - builds on Windows/macOS (no providers there yet) Vendors: rewrite SteelSeries, Corsair, HyperX, Jabra, Audeze, EPOS (serial) and PULSE 3D from HeadsetControl; fix Logitech voltage flags and slots, Razer busy/tx IDs/OpenRazer sysfs, AirPods L/R and AACP session, Samsung, Sony (escaping, ACKs, V2), Soundcore and Huawei offsets/CRC. HID drivers now only write to vendor-defined interfaces and check every reply. udev: never grant keyboard interfaces; merge user rules into 71-scintilla-local.rules instead of overwriting or shadowing the packaged file. Battery applet uses the crate's install command and cancels discovery on shutdown. Docs: scintilla README/architecture/compat/Hall of Shame, battery README, root README and AGENTS.md updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Review and fix pass over
crates/scintillaand its consumer inbattery/.Core
devices,isReachable,charge, …). Verified on real hardware (Pixel 9 now reports over KDE Connect).batteryGAction ((bsii)), not a D-Bus interface; provider and watch rewritten aroundorg.gtk.Actions.PropertiesChangedtriggered a full discovery with RFCOMM/hidraw probing). Session watch no longer spins when a stream ends.devices(), devices probed in parallel with a timeout, one probe per physical device, devices with a kernelpower_supplyskipped.read(), SDP lookup of RFCOMM channels instead of hard-coded ones.hidpp_battery_Nmerges with its hidraw stub), transport detection, union-find correlation, round-trippable address keys, HID Power Page field offset/logical max.Vendors
udev / applet
/etc/udev/rules.d/71-scintilla-local.rulesinstead of overwriting or shadowing the packaged70-scintilla.rules.Docs
scintilla README / architecture / compatibility / adding-vendors / Hall of Shame, battery README, root README, AGENTS.md.
Testing
just test,just test-san,just lintpass (64 scintilla tests). Real-hardware smoke test: Keychron Link-KM/M6, Pixel 9 (BlueZ + KDE Connect). Other vendor drivers are verified against upstream sources and test vectors only.🤖 Generated with Claude Code