5

I'm trying to get my bluetooth speaker working with Ubuntu 16.04 Gnome. It connects but doesn't show up in sound output devices list.

I've tried few suggestions

sudo -i pactl load-module module-bluetooth-discover

Output:

Connection failure: Connection refused
pa_context_connect() failed: Connection refused

2 Answers 2

8

I had the same issue. In this post is pointed this solution.

Basically, you have to create/edit the file /var/lib/gdm3/.config/pulse/client.conf

And add the following configuration lines

autospawn = no daemon-binary = /bin/true

And give to GDM the ownership

sudo chown gdm:gdm /var/lib/gdm3/.config/pulse/client.conf

Retart GDM and it is solved

6
  • Thanks, I've given up on BT speaker but if I try it again I'll let you know how it went
    – wisemonkey
    Dec 11, 2016 at 21:01
  • I can confirm that this worked on Ubuntu (with Gnome shell) on 17.04! Thanks so much! (btw I got Failure to load module, not the error the OP got) Apr 18, 2017 at 0:53
  • At the sudo command, I get this error: chown: invalid user: ‘gdm:gdm’ Apr 25, 2020 at 13:55
  • 1
    @AbhinavKumar my original answer was for Ubuntu 16.04. What Ubuntu version are you using? Maybe the gdm user does not exist. You can check if it exists running cat /etc/passwd | grep gdm
    – Manuel
    Apr 26, 2020 at 18:55
  • 1
    @AbhinavKumar, it seems that your user is not gdm but Debian-gdm. You can try using chown with Debian-gdm, but I cannot garantee that it is going to work. What distribution are you using?
    – Manuel
    Apr 29, 2020 at 7:16
0

for Ubuntu 20.04 this worked for me:

pulseaudio -k
pulseaudio --start
sudo service bluetooth restart

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .