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

bluetooth: unreliable bluetooth pairing status on balenaSound #526

Open
tmigone opened this issue Dec 21, 2021 · 7 comments
Open

bluetooth: unreliable bluetooth pairing status on balenaSound #526

tmigone opened this issue Dec 21, 2021 · 7 comments
Labels
bluetooth Everything about the bluetooth container bug Something isn't working

Comments

@tmigone
Copy link
Contributor

tmigone commented Dec 21, 2021

Describe the problem

Devices that have been previously unpaired are still retained and listed as if they were paired. This can lead to devices not being able to re-pair. Manually removing the devices using bluetoothctl or btmgmt fixes the issue.

This probably needs to be fixed upstream: https://github.com/balenablocks/bluetooth

@tmigone tmigone added bug Something isn't working bluetooth Everything about the bluetooth container labels Dec 21, 2021
@jellyfish-bot
Copy link

[tmigone] This issue has attached support thread https://jel.ly.fish/0e0199aa-f925-45c4-8cd2-b37a1f5c230b

@petrosagg
Copy link

I was facing the same problem on my bluetooth speaker setup where my bluetooth agent was: bt-agent --capability NoInputNoOutput

I fixed this problem by switching the parameters to bt-agent --capability DisplayOnly --pin ./pins.conf where pins.conf contains * * (accept any pin for any device). Now it doesn't matter how many times I unpair my phone, I can always re-pair it.

The technique is described here https://forums.raspberrypi.com/viewtopic.php?t=304434

I haven't tested it but it might be as simple as changing this line https://github.com/balenablocks/bluetooth/blob/master/bluetooth-agent#L28

@jellyfish-bot
Copy link

[rcooke-warwick] This issue has attached support thread https://jel.ly.fish/abce5e6e-b32a-48af-ab56-6e2a8fb0a4d2

@rcooke-warwick
Copy link

I was able to reproduce, creating upstream issue here: balena-labs-projects/bluetooth#28

@jellyfish-bot
Copy link

[rcooke-warwick] This issue has attached support thread https://jel.ly.fish/830551c7-b0d6-4016-bcdf-7cb7e906053f

@jellyfish-bot
Copy link

[rcooke-warwick] This issue has attached support thread https://jel.ly.fish/17452ac7-ef2b-4552-a872-53e9bc577a34

@jellyfish-bot
Copy link

[myarmolinsky] This has attached https://jel.ly.fish/abce5e6e-b32a-48af-ab56-6e2a8fb0a4d2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bluetooth Everything about the bluetooth container bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants