Fix “stream setup failed” error with blueman audio sync on Ubuntu

ubuntu_logo_81x81Since 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:

  1. Edit /etc/bluetooth/audio.conf and uncomment the following line:
    AutoConnect=true
  2. 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
  3. You will need to install the pulseaudio bluetooth module if it’s not installed already:
    $ sudo apt-get install pulseaudio-module-bluetooth
  4. 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.

  5. Run blueman-applet. Right click on the panel applet and turn bluetooth on.
  6. 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.
  7. 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.

46 thoughts on “Fix “stream setup failed” error with blueman audio sync on Ubuntu”

Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s