I had to fix this to use a bluetooth headset in Ubuntu 17.04, and now posting here so I do not forget the solution 😛
Create or edit
/var/lib/gdm3/.config/pulse/client.conf including the code below:
autospawn = no daemon-binary = /bin/true
gdm have access to the new file:
sudo chown gdm:gdm /var/lib/gdm3/.config/pulse/client.conf
In order to auto-connect devices, include the follow line of code at the end of
And now just reboot.