Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bluez widget automatically fills up with random devices #164

Open
kode54 opened this issue Apr 14, 2024 · 3 comments
Open

bluez widget automatically fills up with random devices #164

kode54 opened this issue Apr 14, 2024 · 3 comments

Comments

@kode54
Copy link

kode54 commented Apr 14, 2024

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
Copy link
Owner

LBCrion commented Apr 14, 2024

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
Copy link
Author

kode54 commented Apr 15, 2024

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
Copy link
Owner

LBCrion commented Jun 15, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants