DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I used Debian for many years, but still have problem connecting Bluetooth, no matter simple as connecting a Bluetooth speaker it won't work properly, it won't auto connect every time and will disconnect in the middle, what is missing here ?
Do the kernel messages (dmesg command or journalctl command) contain anything? There might be other log files that contain Bluetooth-relevant messages.
Do the kernel messages (dmesg command or journalctl command) contain anything? There might be other log files that contain Bluetooth-relevant messages.
Do you use pulseaudio?
I think with bluetooth audio, pulseaudio is almost a requirement.
Pulseadio and the Pulseaudio bluetooth module already installed by default, bluetooth sound is working but it won't auto connect most of the time, for example my BT speaker always need manual connect, but it does connect upon boot in some case. I always feel that BT is unstable even on cell phone, my handsfree set randomly disconnect, or gives no sound even connected.
To be honest, I don't know. Personally, I would look for messages that contain strings like bluetooth or bt. I would also use lspci -k to list all devices and their kernel modules, and use the name of the bluetooth module to go through messages.
If there are no kernel messages, I would look for logs of the services that manage bluetooth devices, and audio services. Admittedly I don't know what these services are, so I would have to find that out first, then use journalctl -u SERVICENAME to find messages, or check /var/log/syslog.
when i was troubleshooting a bluetooth connection a few weeks ago, i used journalctl -f to follow what what happening as i was pairing and making the connection. that command opens the last few lines of the system journal and then follows what is added in almost real time. this will possibly show you the error messages that berndbausch mentioned so hopefully you won't need to sift through logs to find them. in my case while the majority of the bluetooth modules loaded, but two did not. correcting that gave me a stable and continued connection.
another option is to try and connect using bluetoothctl to see if that shows any errors as it tries to establish the connection. i used a combination of both.
when i was troubleshooting a bluetooth connection a few weeks ago, i used journalctl -f to follow what what happening as i was pairing and making the connection. that command opens the last few lines of the system journal and then follows what is added in almost real time. this will possibly show you the error messages that berndbausch mentioned so hopefully you won't need to sift through logs to find them. in my case while the majority of the bluetooth modules loaded, but two did not. correcting that gave me a stable and continued connection.
another option is to try and connect using bluetoothctl to see if that shows any errors as it tries to establish the connection. i used a combination of both.
When I issue the command bluetoothctl I got this and connected to the bluetooth speaker :
If I disconnect the speaker via GUI and exit then repeat the command it connects again, that seems to work very reliably wonder if I can put this in the startup ?
If I disconnect the speaker via GUI and exit then repeat the command it connects again, that seems to work very reliably wonder if I can put this in the startup ?
No that didn't work, I tried again after I posted this and failed to connect !
this was similar to my experience. i could pair and trust, but connect wouldn't always work or stay connected. opening a second terminal with journalctl -f (before starting bluetooth or the connection process) was how i discovered the error that lead me to being able to activate the modules which were keeping mine from maintaining its connection.
my error looked about like this:
Jul 05 18:28:13 hostname bluetoothd[5290]: a2dp-source profile connect failed for aa:bb:cc:dd:ee:ff: Protocol not available
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.