Fix problem to pair a Bluetooth Audio device in Xubuntu.

Not finding anything in Spanish on the subject, I share how I solved a seemingly simple problem with an elusive answer.

My notebook has bluetooth, I installed it Xubuntu 14.04 and it works wonderfully to connect my Android. But when trying to listen to music with external equipment (using an H163 adapter), the equipment recognized the device but could not use it as an audio output, it could not “pair” it. The error message was: "Connection failed: Stream setup failed."

I remind you that the Xubuntu distro, like all its family, already has PulseAudio and Blueman Device Manager 1.23 installed.

The solution was obtained in this blog in English. They say they used it in Linux Mint; it still worked for me on my Debian derivative.

As explained, I had to apply two steps:

Make sure the necessary package is installed. In my case it was NOT installed by default in the distro:

sudo apt-get install pulseaudio-module-bluetooth

Once installed, it still didn't pair properly, whereupon I entered the terminal:

pactl load-module module-bluetooth-discover

And that's it, now I listen to music (and alerts) as it should.


37 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Marcelo said

    Very useful. Thanks for the info.

    1.    aeneas_e said

      You are welcome! The idea is that 😉

  2.   ergo said

    Thank you very much for the information. It works on debian jessie installing the package and rebooting. And I thought that some firmware was missing 😛

    1.    aeneas_e said

      It is one of those solutions that because it is simple one does not think the first time and starts searching unnecessarily!
      Regards!

  3.   Pedro said

    The comment is great, but there is a possibility that the command "pactl load-module module-bluetooth-discover" will load directly on startup.

    I have Xubuntu 14.04 and every time I start it up and want to connect the audio to my bluetooth speaker I have to write that command in the terminal. It would be great if the settings were saved so you don't have to repeat the same step every time.

    1.    Felipe said

      Edit this file /etc/pulse/default.pa or ~ / .config / pulse / default.pa

      And add at the end
      load-module module-bluetooth-discover

      I am testing Xubuntu 15.04 and I have to install some packages, configure the blueman, the pavucontrol, execute the command in this post. In my case the file includes this:

      .ifexists module-bluetooth-discover.so
      load-module module-bluetooth-discover
      . Endif

      So it seems that it is not necessary to add the line, since if you installed the pulseaudio-module-bluetooth file it should autoload it. However I cannot test it as I am in livecd and everything is erased on restart. If you added this command and it still doesn't work automatically then a bug should be reported to I don't know who.

  4.   Abel said

    Excellent! It worked for me, all you had to do was change the audio output settings, and that's it.
    Again, thank you very much for the solution, it has helped a lot.

  5.   Richard Bird said

    Great thank you very much for sharing

  6.   Victor said

    Thank you. It has come to me of pearls. If it's worth anyone, it works on a NGS artica bluetooth headset.

  7.   antonio said

    holy hand, thanks for the two commands

  8.   jose said

    thanks corduroy excellent info solved the problem is appreciated

  9.   JUNIOR MASIAS said

    THANKS A LOT!!!! I ALWAYS WANTED IT AND NEVER FOUND IT, 10000 POINTS 😀

  10.   Lola said

    I am having trouble connecting a bluetooth audio device to my linux mint PC. I have followed your instructions but when installing
    pactl load-module module-bluetooth-discover
    I get an error and there is no way to listen to music via bluetooth.

  11.   Lola said

    I have the same problem with a bluetooth device, I have followed your instructions but in the terminal when I install pactl load-module module-bluetooth-discover
    it tells me: connection error: connection denied
    and it does not work….

  12.   unai said

    Thanks a lot!! perfect !!

  13.   rober said

    Your post served me very well. But I have another problem. Every time I insert the bluetooth device to the usb port; my netbook shuts down. And if my netbook starts with the same one inserted, after deactivating bluetooth, when removing the device from the usb port, the netbook turns off.
    I have an updated Debian Jessie 8 system. Will there be a solution? I think it may be incompatibility of some kernel module.

  14.   sonimatrix said

    Thank you friend, if it worked, you just have to restart and that's it.

  15.   Ray said

    Perfect !!
    Thanks for sharing

  16.   migueluribe2 said

    Thank you very much for sharing, it was very useful, it is what I needed and had not been able to solve.

  17.   Authorless said

    Thanks a lot. Really useful

  18.   Anonymous said

    thank you very much

  19.   Mkveli said

    THANK YOU!!!!! YOU SAVED MY LIFE!

  20.   Gustavo said

    It was effective Thank you

  21.   Victor said

    hahahahaha thank you very much for all the supposed solutions this is the one that worked for me ... you are good vibes man

  22.   Cable said

    The solution worked perfectly, Excellent !!!

  23.   Sony said

    At the moment of pairing the bluetooth with some device, I can no longer surf the internet, either by wifi or cable, they know if any port may cause conflict or someone has happened the same beforehand thank you very much I use Debian 9

  24.   chivodev said

    excellent friend, it worked on debian 9.4 strecht….

  25.   kuzuri said

    Excellent old man it worked for me, on Kali Linux, thanks a lot! Couldn't connect to things by default, it would link but failed to connect later. Now with this straight away, it requires some extra configuration to choose the default audio output.
    genius.

  26.   agustin neighborhoods said

    maestroooooooooooooooooooooooooooo !!!!

  27.   Juan Antonio Diaz said

    Very good post, thank you very much. It worked well in Ubuntu MATE 18.04.3 LTS

  28.   drbiker said

    Excellent!! It worked the first time in DEBIAN 10 !! Thank you!!

  29.   Micaela said

    It didn't work for me! I do not know why. I have Linux Mint. When I put the command »pactl load-module module-bluetooth-discover» I got the Fault: «module initialization failed». My Bluetooth devices are listed, but I can't connect them.
    Some help?

  30.   Agustin said

    Thank you very much!

  31.   Bolivar said

    Oh thanks, I can't believe it's still working on debian 11

  32.   resilience said

    I had the same problem in KDE Neon and after googling for a while it was this command that solved it for me.

    sudo apt install bluetooth bluez pulseaudio-module-bluetooth

    I hope it helps someone, greetings!

  33.   Jaime Alejandro Morales Rendon said

    thank you it served me a lot in should

  34.   golokax said

    perfect, your advice super useful
    I use debian 11 with kde 5.20