54

I am having trouble connecting my Bluetooth speakers with a fresh 15.10 install (EDIT: applies to 16.04 as well). The speakers are connected however they are not listed as an available audio device.

I tried to load the Bluetooth module using:

sudo pactl load-module module-bluetooth-discover
Failure: Module initialization failed

The same speakers have worked perfectly on 14.04. Any ideas how I could properly load the module so I can use my speakers?

Melebius
  • 11,121
  • 8
  • 50
  • 77
Georgi Georgiev
  • 1,389
  • 1
  • 10
  • 16
  • 1
    I’ve extracted the solution you posted as a [part of the question](https://askubuntu.com/revisions/689281/3) into a [separate answer](https://askubuntu.com/a/1121417/250300). Feel free to repost this answer using your account (to gain the respective reputation) or integrate it with your [current answer](https://askubuntu.com/a/689297/250300). Then please ping me, so I can remove my answer. See also [What do we do with this question that is really an answer?](https://meta.askubuntu.com/questions/17983/what-do-we-do-with-this-question-that-is-really-an-answer/) – Melebius Feb 28 '19 at 07:41

3 Answers3

73

Solved by using SimFox3 answer in this thread.

Bug and possible solution: actually I found a bug in that make the headset unusable, it seems that the pulse audio module: module-bluetooth-discover works only if started after the X11 session is up. So I have a workaround.

Edit the file:

/etc/pulse/default.pa

and comment out (with an # at the beginning of the line) the following line:

#load-module module-bluetooth-discover

now edit the file:

/usr/bin/start-pulseaudio-x11

and after the lines:

   if [ x”$SESSION_MANAGER” != x ] ; then
        /usr/bin/pactl load-module module-x11-xsmp “display=$DISPLAY session_manager=$SESSION_MANAGER” > /dev/null
    fi

add the following line:

    /usr/bin/pactl load-module module-bluetooth-discover

This way the Pulse audio’s Bluetooth modules will not be downloaded at boot time but after x11 is started.

Georgi Georgiev
  • 1,389
  • 1
  • 10
  • 16
18

The solution in 16.10 is:

$ sudo apt install bluetooth pulseaudio-module-bluetooth

This answer was originally posted as an edit to the question.

Melebius
  • 11,121
  • 8
  • 50
  • 77
14

Sometimes, it works after reboot, and such error appears later. In this case you can try the following, which works for me:

pactl unload-module  module-bluetooth-discover
pactl   load-module  module-bluetooth-discover
kynan
  • 2,207
  • 1
  • 22
  • 24
jmary
  • 646
  • 4
  • 15