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
wisemonkey
  • 3,293
  • 8
  • 30
  • 34

1 Answers1

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

Manuel
  • 908
  • 11
  • 19
  • 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 '16 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) – fgblomqvist Apr 18 '17 at 00:53
  • At the sudo command, I get this error: chown: invalid user: ‘gdm:gdm’ – Abhinav Kumar Apr 25 '20 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 '20 at 18:55
  • @Manuel this is the output of the command you suggested: Debian-gdm:x:130:138:Gnome Display Manager:/var/lib/gdm3:/bin/false – Abhinav Kumar Apr 28 '20 at 21:37
  • 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 '20 at 07:16