Open kode54 opened 5 months ago
It looks like another program is triggering an unfiltered can in bluez. Sfwbar scans only for BR/EDR devices (i.e. devices you can connect without additional software). This is the list you would normally see. However, if another program requests bluetooth to perform BLE or unfiltered scan, bluez will still send info on all BLE devices to sfwbar. Looks like I need to figure out how to filter these out as we receive data from bluez.
Oh, oops, I realized what may be doing it. I am running an AirPods status scanner, and didn’t realize its scan data would also pollute the BlueZ widget in sfwbar. I don’t really use it anyway, so I’ll disable it for now.
After some digging, it doesn't look like there is a way to filter for BR/EDR devices if another process requires a BLE scan. I may need to resort to old fashioned theft of ideas. Blueman filters our devices that don't have a name and are not keyboard of combo peripherals. I added the same functionality to the bluez module. Hopefully it will now behave better in presence of other processes requesting a scan.
At random times of the day, my bluez widget list becomes this:
There doesn't seem to be a way to clear the list and only show paired devices.