LBCrion / sfwbar

S* Floating Window Bar
GNU General Public License v3.0
263 stars 17 forks source link

bluez widget automatically fills up with random devices #164

Open kode54 opened 5 months ago

kode54 commented 5 months ago

At random times of the day, my bluez widget list becomes this:

image

There doesn't seem to be a way to clear the list and only show paired devices.

LBCrion commented 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.

kode54 commented 4 months ago

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.

LBCrion commented 2 months ago

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.