29

With Ubuntu 16.04 I've been attempting to pair by Apple airpods as a headset. They come up as headphones. They work fine as headphones, but I would like the microphone to be available

airpods pairing as headphones, not headset

  • I don't have an answer to your question, but just hoping to get more info: are you able to listen to music from Ubuntu 16.04 on you airpods via bluetooth? I didn't realize they were using standard protocols that Ubuntu could use. – Artur Sapek Oct 16 '17 at 0:15
  • I have the same problem with Airpods: In Ubuntu we can only see the AD2P bluetooth profile for the airpods. But there is no HFP bluetooth profile presented to use the microphone. – chronos00 Nov 10 '17 at 18:02
  • Any updates on this? – highsciguy Jan 2 '18 at 19:54
  • There is a related bug report here bugs.freedesktop.org/show_bug.cgi?id=93898. The issue seems to be related to pulseaudio. Some report to have the microphone of their (non-Apple) equipment working when setting an option in /etc/pulse/default.pa. I have also tried to install pulseaudio from ppa. These efforts did not take me anywhere, unfortunately. – highsciguy Jan 2 '18 at 19:57
26

I was helped by the instruction below.

  1. Set ControllerMode = bredr or ControllerMode = dual by editing /etc/bluetooth/main.conf file using sudo nano /etc/bluetooth/main.conf command (or another text editor of your choice)
  2. sudo /etc/init.d/bluetooth restart
  3. Try to pair again.
|improve this answer|||||
  • Setting ControllerMode = dual worked for me. – Rajesh Chaudhary Jun 19 '19 at 10:33
  • 1
    setting dual does not really make sense as it is the default mode – Wlad Dec 13 '19 at 9:09
  • 1
    Setting ControllerMode = bredr worked for me on Ubuntu 18.04, Airpods 1. – samb102 Dec 16 '19 at 8:31
  • Same for me, 18.04 airpods 2 with bredr works. – intijk Feb 6 at 8:51
6

I was desperately searching on the websites, but I finally found this blog post which was really helpful to get familiar with a complementary Bluetooth stack. Here's the solution which I have changed and added to it according to my experience:

  1. Install bluez Bluetooth stack (like a full set of Bluetooth drivers which allows the Linux OS direct access to Bluetooth):

    sudo apt-get install bluez*

  2. Optional: install Bluetooth manager, Blueman:

    sudo apt-get install blueman

  3. Load USB Bluetooth driver (Bluetooth dongle):

    modprobe btusb

  4. Restart bluetooth service:

    sudo systemctl restart bluetooth

  5. Add controller mode setting to be dual Bluetooth configuration /etc/bluetooth/main.conf change this mode to bredr or le in case you have problem with your AirPods:

    ControllerMode = dual

  6. Now try to pair your AirPods!

The source of the issue is that Ubuntu's Bluetooth driver doesn't cover AirPods' one.

My system specification:

  • Ubuntu 18.04.2 LTS
  • Mini Bluetooth 4.0 USB 2.0 CSR4.0 Dongle Adapter

UPDATE:

You might need to choose either dual or bredr for ControllerMode in step 5.

enter image description here

|improve this answer|||||
  • 1
    dual is the default, I doubt setting it make any difference. There is another command to manage services which is IMO much easier to remember: sudo service bluetooth restart, sudo service bluetooth status. It comes with tap autocomplete so you can type sudo service hit TAB and see all available services or type sudo service blue + hit TAB which will show all services starting with blue or autocomplete to bluetooth – Wlad Dec 13 '19 at 9:24
  • 1
    Setting to bredr made pairing of AirPods Pro finally succeed - but only as headphones, not as headset. The volume was a bit too low so I had to activate Over-Amplification in sound settings to allow volume up beyond 100%. – Wlad Dec 13 '19 at 9:38
  • @Wlad I have the same partial solution, still no way to use as headset – Edgar Aroutiounian Mar 24 at 22:16

Not the answer you're looking for? Browse other questions tagged or ask your own question.