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

Ubuntu 22.04 Behavior #312

Open
vicatcu opened this issue Aug 3, 2023 · 3 comments
Open

Ubuntu 22.04 Behavior #312

vicatcu opened this issue Aug 3, 2023 · 3 comments

Comments

@vicatcu
Copy link

vicatcu commented Aug 3, 2023

Hi and thank you for keeping this library active! I'm using Ubuntu 20.04 (and have now updated to Ubuntu 22.04 as I thought it might help, but it didn't). It's a System76 laptop with Bluetooth integrated.

There are a few quirks I'm dealing with. The first and most unavoidable is that, I can't seem to get past the await noble.startScanningAsync(); call unless I open the Bluetooth Settings in Ubuntu at which point the call magically completes. I think I did all the stuff that README.md indicates I need to do for Linux/Ubuntu, so I think this is pretty strange. Is there an explanation / workaround for that?

Second unavoidable problem I'm facing is once I do get past that call, the noble.on('discover', async (peripheral) => { callback never fires unless I manually disable/enable the Bluetooth in Ubuntu Preferences, sometimes a couple of times (maybe it's a timing issue, I don't know). Is there an explanation / workaround for that?

Happy to share more details with guidance on how to collect those logs / configuration details.

@ninjadev64
Copy link

ninjadev64 commented Sep 20, 2023

I'm also using Ubuntu 22.04, having some strange issues. Nothing like what you have, but await peripheral.connectAsync() never completes... been wrestling with this library for hours!

Edit: not never, but very rarely

@sevenbitbyte
Copy link

I'm currently seeing this same issue intermittently on a Debian 12 ARM system. Meanwhile on an amd64 system running Ubuntu 22.04 with an Intel 6E ax1675 adapter I never get scan discover events and see the exact same issue with startScanningAsync function calls.

@sevenbitbyte
Copy link

After a bit of testing it does not seem like this is an OS bug (for me at least).

I was able to get a USB CSR4 dongle to work just fine on the same amd64 Ubuntu 22.04 system. However explicitly setting the Intel 6E ax1675's USB interface continues to be flaky and return no data. So there seems to be something hardware or driver related at play possibly. The other possibility is that this has something to do with BLE 5.x support as the Intel adapter is pretty new.

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

3 participants