Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
10-15-2019, 09:10 AM
|
#1
|
Member
Registered: Feb 2010
Distribution: Ubuntu
Posts: 95
Rep:
|
How to force bluetooth headphones to connect via A2DP in Ubuntu 19.04?
I have a pair of Sony bluetooth headphones, paired with my laptop. When I turn them on, they automatically connect in HSP mode. If I go into Bluetooth Settings on my laptop and disconnect them, then reconnect them, they connect in A2DP mode and I can listen to music.
Is there any way to make them connect in A2DP mode automatically? I've already tried adding and
Code:
MultiProfile = multiple
to my /etc/bluetooth/main.conf based on advice I've seen on StackOverflow, but that that has had no effect.
|
|
|
10-15-2019, 09:51 AM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,674
|
Quote:
Originally Posted by skykooler
I have a pair of Sony bluetooth headphones, paired with my laptop. When I turn them on, they automatically connect in HSP mode. If I go into Bluetooth Settings on my laptop and disconnect them, then reconnect them, they connect in A2DP mode and I can listen to music.
Is there any way to make them connect in A2DP mode automatically? I've already tried adding and
Code:
MultiProfile = multiple
to my /etc/bluetooth/main.conf based on advice I've seen on StackOverflow, but that that has had no effect.
|
May want to look here: https://rastating.github.io/setting-...-ubuntu-18-04/
You may be able to set your preferred device that way, so that your headphones identify as a A2DP, rather than as an input-device/microphone. Setting the preference for your input device lower than the output device might (?) get it to automatically go A2DP.
|
|
|
10-15-2019, 12:04 PM
|
#3
|
Member
Registered: Feb 2010
Distribution: Ubuntu
Posts: 95
Original Poster
Rep:
|
Quote:
Originally Posted by TB0ne
May want to look here: https://rastating.github.io/setting-...-ubuntu-18-04/
You may be able to set your preferred device that way, so that your headphones identify as a A2DP, rather than as an input-device/microphone. Setting the preference for your input device lower than the output device might (?) get it to automatically go A2DP.
|
The thing is, it doesn't even display the A2DP option until being disconnected and reconnected once. And pactl only shows it as a single device, whichever profile it's currently connected as.
Last edited by skykooler; 10-15-2019 at 12:07 PM.
|
|
|
10-16-2019, 07:32 AM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,674
|
Quote:
Originally Posted by skykooler
The thing is, it doesn't even display the A2DP option until being disconnected and reconnected once. And pactl only shows it as a single device, whichever profile it's currently connected as.
|
A few things to try. First, make sure these things are installed:
Code:
sudo apt install pulseaudio pulseaudio-utils pavucontrol pulseaudio-module-bluetooth
Then, either add these lines to /etc/bluetooth/audio.conf (or create the file if it does NOT exist):
Code:
[General]
Enable=Source,Sink,Media,Socket
And either reboot or restart the system. That *MIGHT* work. Can also try putting:
Code:
alias soundon = 'pacmd set-card-profile <BLUETOOTH NAME> a2dp_sink'
..into your .bashrc, and you can find the name with
...where it will be, obviously, the field labeled "name".
|
|
|
10-24-2019, 01:14 PM
|
#5
|
Member
Registered: Feb 2010
Distribution: Ubuntu
Posts: 95
Original Poster
Rep:
|
That did not work; it still connects as HSP on first connection. It also still will not switch to A2DP if I select that mode in Audio Settings, or when running that command; it only switches after disconnecting and reconnecting via the Bluetooth panel.
|
|
|
02-26-2020, 08:54 AM
|
#6
|
Member
Registered: Feb 2010
Distribution: Ubuntu
Posts: 95
Original Poster
Rep:
|
This problem seems to be fixed in Ubuntu 19.10.
|
|
|
06-14-2021, 05:14 AM
|
#7
|
LQ Newbie
Registered: Jun 2021
Posts: 1
Rep: 
|
This issue seems to be back in Ubuntu 21.04. I'm using Jabra Elite 75t. Tried all things mentioned here to no avail. Updated from Ubuntu 20.10 where it worked just fine. @skykooler do you know what changed in Ubuntu 19.10 that fixed it?
|
|
|
All times are GMT -5. The time now is 04:05 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|