Skip to content

Fix HID++ receiver monitor retry loop and receiver whitelist - #1191

Merged
lujjjh merged 1 commit into
mainfrom
fix/hidpp-receiver-monitor-whitelist
May 7, 2026
Merged

lujjjh merged 1 commit into
mainfrom
fix/hidpp-receiver-monitor-whitelist

Conversation

@lujjjh

@lujjjh lujjjh commented May 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Replace the receiver-channel retry loop's run-loop sleep with a semaphore-backed retry that can be woken on stop.
  • Gate receiver monitoring by Logitech USB receiver VID/PID whitelist instead of product-name matching.
  • Keep unsupported receiver PIDs recognized but out of monitoring until their protocol/transport paths are implemented.
  • Guard remaining run-loop waits and document why they are needed for IOHID/CGEvent callback delivery.

Related issue

Refs #1185

Testing

  • swiftformat --lint LinearMouse/Device/VendorSpecific/Logitech/LogitechHIDPPDeviceMetadataProvider.swift LinearMouseUnitTests/Device/VendorSpecificDeviceMetadataTests.swift LinearMouse/Device/ReceiverMonitor.swift LinearMouse/Device/DeviceManager.swift LinearMouse/Device/VendorSpecific/ConnectedBatteryDeviceInventory.swift LinearMouse/Device/VendorSpecific/ConnectedLogitechDeviceInventory.swift Modules/PointerKit/Sources/PointerKit/PointerDevice.swift Modules/KeyKit/Sources/KeyKit/SymbolicHotKey.swift
  • git diff --check
  • xcodebuild test -project LinearMouse.xcodeproj -scheme LinearMouse -quiet

@lujjjh
lujjjh merged commit a59772f into main May 7, 2026
1 check passed
@lujjjh
lujjjh deleted the fix/hidpp-receiver-monitor-whitelist branch May 7, 2026 13:38
@lujjjh lujjjh added the bug Something isn't working label May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant