Ubuntu 13.04 bluetooth A2DP does not work
Solution 1
This worked for me:
1) Open /etc/bluetooth/audio.conf
with the following command*:
gksudo gedit /etc/bluetooth/audio.conf
(*) The command line above requires
gedit
andgksu
packages.
2) find "Enable =..." under [General]
section and delete Socket
from the list.
[General]
Enable = ....
3) Add this line in General
section:
Disable = Socket
4) Save, and close gedit
5) Restart the bluetooth service with the following command:
sudo service bluetooth restart
6) Restart pulseaudio for good measure.
pulseaudio -k
pulseaudio -D
7) Cross Your Fingers and try.
Solution 2
I had almost exactly the same problem as original post. I tried about every suggestion I could find. After days of trial and error my Bose AE2w finally connects and stays connected in A2DP profile.
First, I mute my sound card in sound options before I connect to my bluetooth heaset (this step may be unnecessary, but it is what I do). And I have edited /etc/bluetooth/audio.config with these settings (comments deleted in example)
[General]
Enable=Gateway,Source
Disable=Socket
AutoConnect=false #test later with true
[Headset]
MaxConnected=1
[A2DP]
SBCSources=1
MPEG12Sources=0
Then click connect in bluetooth options (if it isn't automatic). Last, select the A2DP profile in Sound options. I honestly don't know what some of the setting do, but it has been working for me for 2 days.
I don't know for sure, but I think the root of the problem is that the "Sound" window only lists 1 device (but the device 2 profiles). Because on windows 7/8 in the sound options it lists 2 devices (one for each profile), making it possible to select a "default device [profile]".
Thanks guys, I wouldn't have solved this problem on my own, I hope this helps someone.
edit: this has been working for a week on trusty tahr amd x64 with creative x-fi platinum, bose ae2w, soundbot bluetooth adapter.
Solution 3
I'm running ubuntu 13.04 and had a similar issue after upgrading from 12.10, I've managed to temporarily get around it, but unfortunately this needs to be redone after each reboot. If anybody can automate this process please let me know how. Thanks.
First we need to kill pulseaudio
, -- but pulseaudio
always restarts, so we need to disable that - Into terminal;
sudo gedit /etc/pulse/client.conf
change autospawn = yes
to autospawn = no
, and set daemon-binary
to /bin/true
. Make sure these lines are uncommented. Save, and close the file. Done, pulse audio will no longer restart after a crash or force close.
Next run,
sudo gedit /etc/bluetooth/audio.conf
and under General
add
Enable=Socket
close and save the file. Run in terminal;
sudo service bluetooth restart
run in terminal;
pulseaudio --kill
now connect to the bluetooth device (I've tested this using BLUEMAN). Run in terminal;
pulseaudio
then in a different terminal window;
sudo gedit /etc/bluetooth/audio.conf
remove Socket
, leaving Enable=
. Save and close the file and run in terminal;
sudo service bluetooth restart
connect to your bluetooth device again; - and it should (hopefully) work.
Related videos on Youtube
user153241
Updated on September 18, 2022Comments
-
user153241 over 1 year
I have installed Ubuntu 13.04 in a new partition and I have some issues with bluetooth.
I usually use bluetooth to connect to my wireless headset, in the old partition with Ubuntu 12.10 everything is okay.
Ubuntu is able to detect my bluetooth receivers but I can't pair my device. After googling I found that all I need is to add
Enable=Socket
in the general section of/etc/bluetooth/audio.conf
.After restarting the bluetooth daemon I am able to pair my wireless A2DP receiver and I see the bluetooth adapter under the audio setting, that means that pulseaudio has recognized my A2DP adapter.
Unfortunately when I play the audio file, I hear the output through the PC speakers rather that my bluetooth handcuffs.
Any idea how to resolve this?
I tried formatting and reinstalling Ubuntu 64-bit from scratch in order to get a clean install but the problem is still there. I suspect the Ubuntu team has changed something in the bluetooth settings from 12.10 to 13.04.
-
Takkat about 11 yearsDid you choose your Bluetooth audio in Sound Settings - Output tab before you started an audio stream?
-
user153241 about 11 yearsyes i did, actually my problem is that clicking on the bluetooth output tab nothing happens, i would expect to hear the music played through my wireless receiver but it keeps been playing through my internal speakers
-
Takkat about 11 yearsYou can't switch a playing sound. You need to stop your player, then switch output, then start player again. Does that help?
-
-
belacqua almost 11 yearsThis is good information, but for more assistance please open a new question. Thanks!
-
cuichi over 10 yearsEditing this file helped me. I did not see
Enable=...
under[General]
, but added theDisable=Socket
option. I also uncommentedAutoConnect=True
. That enabled both modes in pulseaudio, allowing me to change from HSP/HFP to A2DP and sound comes stereo. -
admirabilis over 10 yearsThis is some crazy stuff, but it was the only way I got a2dp working, thanks for sharing! Have you ever found a better solution?
-
Rmano almost 8 yearsSimilar problem in 16.04: askubuntu.com/questions/775523/…