linux: Hide duplicate Logitech Bluetooth devices

System Internals / UPower - Bastien Nocera [hadess.net] - 5 September 2022 15:47 UTC

A lot of newer Logitech devices support both the BATT Bluetooth LE service as well the HID++ protocol. This advertises 2 separate battery interfaces, one HID++ one through the kernel, one BATT one through BlueZ.

Avoid confusing UIs and hide the Bluetooth battery from the interface by checking for duplicates each time a new device is added.

Closes: #166

778b93a linux: Hide duplicate Logitech Bluetooth devices
src/linux/up-backend.c | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)

Upstream: cgit.freedesktop.org


  • Share