LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-21-2020, 08:00 PM   #1
joboy
Member
 
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 655

Rep: Reputation: 7
What is the problem with Bluetooth ?


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 ?
 
Old 07-22-2020, 06:58 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Do the kernel messages (dmesg command or journalctl command) contain anything? There might be other log files that contain Bluetooth-relevant messages.
 
1 members found this post helpful.
Old 07-22-2020, 07:01 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Do you use pulseaudio?
I think with bluetooth audio, pulseaudio is almost a requirement.
 
1 members found this post helpful.
Old 07-23-2020, 05:40 AM   #4
joboy
Member
 
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 655

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by berndbausch View Post
Do the kernel messages (dmesg command or journalctl command) contain anything? There might be other log files that contain Bluetooth-relevant messages.

What do I looking for ?
 
1 members found this post helpful.
Old 07-23-2020, 05:43 AM   #5
joboy
Member
 
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 655

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by ondoho View Post
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.
 
1 members found this post helpful.
Old 07-23-2020, 07:15 AM   #6
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by joboy View Post
What do I looking for ?
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.
 
1 members found this post helpful.
Old 07-23-2020, 07:33 AM   #7
cordx
Member
 
Registered: Oct 2018
Location: texas
Distribution: bodhi 5.1.0
Posts: 797

Rep: Reputation: 184Reputation: 184
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.
 
2 members found this post helpful.
Old 07-24-2020, 07:57 PM   #8
joboy
Member
 
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 655

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by cordx View Post
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 :



==========================================

XXXXXX@lmde:~$ bluetoothctl
Agent registered
==========================================


And follow by :



==========================================

[CHG] Device FC:58:FA:0F:C2:05 Connected: yes
[CHG] Device FC:58:FA:0F:C2:05 ServicesResolved: yes
==========================================



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 ?
 
Old 07-24-2020, 08:37 PM   #9
joboy
Member
 
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 655

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by joboy View Post
When I issue the command bluetoothctl I got this and connected to the bluetooth speaker :



==========================================

XXXXXX@lmde:~$ bluetoothctl
Agent registered
==========================================


And follow by :



==========================================

[CHG] Device FC:58:FA:0F:C2:05 Connected: yes
[CHG] Device FC:58:FA:0F:C2:05 ServicesResolved: yes
==========================================



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 !
 
Old 07-25-2020, 12:09 AM   #10
cordx
Member
 
Registered: Oct 2018
Location: texas
Distribution: bodhi 5.1.0
Posts: 797

Rep: Reputation: 184Reputation: 184
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] bluetooth dongle + bluetooth speaker but no sound on the bluetooth speaker vonbiber Slackware 4 05-11-2017 09:53 AM
KDE and Bluetooth "Bluetooth is not completely enabled" herby1620 Linux - Desktop 1 10-25-2016 03:07 AM
pithos - gstreamer trying to use bluetooth when no bluetooth device is installed shadowsnipes Slackware 0 10-30-2010 11:11 AM
Bluetooth Dongle and Bluetooth Mouse... Any ideas on this one? flipjarg Linux - Newbie 1 07-14-2010 07:04 AM
Bluetooth not working on FC6 with Targus USB bluetooth adapter mikevicious Linux - Software 1 12-11-2009 09:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration