Moode Forum
Disable bluetooth auto connect from a specific paired device - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: Disable bluetooth auto connect from a specific paired device (/showthread.php?tid=2356)



Disable bluetooth auto connect from a specific paired device - sisim - 04-12-2020

Hello,

I'm using bluez-alsa on Moode and I love your work, thank you so much, it's working so well Smile) Sorry if it's the wrong place to ask this question :/ (I also posted it here: https://github.com/Arkq/bluez-alsa/issues/320)

I'm experiencing something boring with my laptop under Windows 10 (which is paired by Bluetooth with my Moode RPI 3 Speaker): every time I switch on my laptop, it automatically connects to my RPI3 bluetooth, and stops the music I'm playing with Moode. Is there a way to disable auto-connect for this specific device? Apparently, it's not possible on the Windows side (I'm not the only one to have this issue, with various bluetooth devices and Microsoft doesn't provide any solution, except unpairing the device: https://answers.microsoft.com/en-us/windows/forum/windows_10-hardware/disable-bluetooth-auto-connect/17e708eb-6f98-4d2d-bc2b-bdd3a5145b98)

I can't disable Bluetooth on my laptop, because I still want that my bluetooth mouse does autoconnect. Also, I want that my bluetooth headset autoconnects as well.
For the moment, I'm not experiencing the same kind of issue with my Android phone, but it might happen at some point I guess, as my phone is auto-connecting to my bluetooth headset.

To be very clear, my Windows laptop is where I play the music from, and the RPI3 is the speaker (it has a Allo Boss DAC).

I have searched other topics in the forum, but did not find the answer. What I found is the following:
- A reference (http://moodeaudio.org/forum/showthread.php?tid=380&pid=2930#pid2930) to:
/etc/udev/rules.d/10-a2dp-autoconnect.rules
------>/usr/local/bin/a2dp-autoconnect
- Others have also noticed that many devices autoconnect ant that it can be boring: http://moodeaudio.org/forum/showthread.php?tid=100&pid=675#pid675
-Here there's somebody who wants to auto-connect a speaker, but I'm the opposite in both ways (I DON'T want to autoconnect, and the involved device is not the speaker, it's the source of the music)

Thank you for your support!!


RE: Disable bluetooth auto connect from a specific paired device - Tim Curtis - 04-12-2020

Bluetooth is a connection oriented protocol and Auto Connect is a feature of the Bluetooth source i.e., Windows Mac, Android, IOS, etc). To prevent Bluetooth auto connect you have to disconnect the particular device at the source.

Paired and Connected are two separate Bluetooth states so I don't understand the reply to the Windows question which stated that the pairing has to be removed. There can be multiple devices paired and then any combination of individual devices connected or disconnected.

I would recommend using Airplay instead of Bluetooth. Airplay is a session oriented protocol and thus avoids the need to first pair then connect/disconnect. Airplay audio quality is also much better than Bluetooth.


RE: Disable bluetooth auto connect from a specific paired device - sisim - 04-12-2020

Thanks for your reply! Unfortunately, Airplay is not available on Windows or Android, as far as I know Sad


RE: Disable bluetooth auto connect from a specific paired device - sisim - 04-12-2020

I had a reply on github: "When a paired device is trusted by the rpi, then connection requests from that device are accepted by the rpi; when it is not trusted then you have to initiate the connect request from the rpi." (https://github.com/Arkq/bluez-alsa/issues/320#issuecomment-612632752)

I'm not sure to understand, but is it something that could help here?

And am I wrong to think that AirPlay is not possible on Windows and Android?


RE: Disable bluetooth auto connect from a specific paired device - Tim Curtis - 04-12-2020

You can do Airplay on Windows using Airfoil, Tuneblade, etc.

I'm not sure which app is best.