Since I grabbed a bluetooth speaker, I was facing the “Connection Failed: Stream setup failed” error with blueman-applet. The device would get connected in the Headset mode but the Audio Sync connection will always fail. The workaround was to kill pulseaudio with
pulseaudio -k. In addition, I had to kill pulseaudio using
killall -9 pulseaudio for my latop speakers to work once I disabled bluetooth. I am using a minimal LXDE desktop environment and am stuck with the blueman-applet.
Today I took a stab at the problem. I referred to similar issue reports with audio headsets as well. I have the latest updates on Ubuntu 14.04.2 but users reported the problem on Ubuntu 13.10 as well. Without further ado, here’s how I fixed it:
- Edit /etc/bluetooth/audio.conf and uncomment the following line:
- Run the following command to install latest packages forblueman and related modules:
$ sudo add-apt-repository ppa:blueman/ppa $ sudo apt-get update $ sudo apt-get upgrade blueman
- You will need to install the pulseaudio bluetooth module if it’s not installed already:
$ sudo apt-get install pulseaudio-module-bluetooth
- Check if the following lines are added in /etc/pulse/default.pa:
.ifexists module-bluetooth-discover.so load-module module-bluetooth-discover .endif
If not, add the lines.
- Run blueman-applet. Right click on the panel applet and turn bluetooth on.
- The old profie of you bluetooth device would still be there, remove it. Right click on the blueman-panel applet and select Setup New Device. Complete the wizard for your device.
- Logout and login.
Now my device gets automatically connected and pavucontrol switches automatically to the bluetooth speaker (from laptop speaker or earphones).
In case you see a WiFi connection drop after connecting to the bluetooth device run the following command:
$ echo "options iwlwifi 11n_disable=1 bt_coex_active=0 power_save=0 auto_agg=0 swcrypto=1" | sudo tee -a /etc/modprobe.d/iwlwifi.conf > /dev/null
Leave a comment on how the procedure works for you.