Get Bose QC35 to work on Linux

I finally managed to get my Bose QC35 to play audio properly on my Linux machine with the following:

  • Ubuntu 16.04
  • GNOME 3.18.2
  • pulseaudio 8.0
  • bluetoothctl 5.37
I was getting this error when trying to switch the audio profile of my headphones to A2DP Sink:
Failed to change profile to a2dp_sink
The solution was to do the following:
  1. Create /var/lib/gdm3/.config/pulse/client.conf with the following:
    autospawn = no
    daemon-binary = /bin/true
  2. sudo -ugdm mkdir -p /var/lib/gdm3/.config/systemd/user
  3. sudo -ugdm ln -s /dev/null /var/lib/gdm3/.config/systemd/user/pulseaudio.socket

Ubuntu boot slow after resizing partition

I recently resized my Ubuntu partition to move some space from a Windows partition and I noticed that, upon rebooting, the Ubuntu startup was much slower. It turns out, in the process of resizing my root partition, I had also moved my swap partition. My /etc/fstab file still had the UUID for the old swap partition (I had done the partition resizing with gparted on the Ubuntu live usb, so it did not update the fstab file). The solution was to do the following:

  1. Get the UUID for your new swap partition using sudo blkid
  2. Update the UUID for the swap partition in the /etc/fstab file (you can edit in a terminal using sudo nano /etc/fstab)
  3. Reboot and check if that solved the slow boot problem