Open your terminal.
In the root directory run the command:
sudo nano /etc/bluetooth/main.conf
The terminal will ask you to input your password. Please type it :)
After that a file with configurations will be opened in a terminal window.
Find the next line:
#ControllerMode = dual
Change "dual" to "bredr". The final code must be:
ControllerMode = bredr
To save changes and exit nano editor do the following:
- On your keyboard press:
Ctrl + x
- On the bottom of nano editor you will see a qustion:
"Save modified buffer?"
- Press on your keyboard: y
- Press on your keyboard: Enter
After these steps you will come back to regular terminal window on the same directory as before.
Run the next command in a terminal:
sudo /etc/init.d/bluetooth restart
After that you will see the message:
"Restarting bluetooth (via systemctl): bluetooth.service."
Go to your computer settings and enable Bluetooth so it starts to look for bluetooth connections
The next actions should be performed exactly as described:
-
Put your airpods (both) inside the case
-
Keep the cover opened
-
With cover opened and airpods inside the case press and hold the button on the back of the airpods case.
-
Hold the button until you see the light blinking on the front side of the case, it can also make a sound signaling that it is in pairing mode
Finaly, after all these steps you should find your AirPods on Bluetooth settings section and connect it ;)
ControllerMode = dual
- works for me with Logitech MX devices and AirPods, but only as output device, its microphone is not available to set as Input :(I'm on Ubuntu 20.04.6 LTS.
Update:
First, I changed
#ControllerMode = dual
toControllerMode = bredr
and suddenly when I restarted Bluetooth service withsudo /etc/init.d/bluetooth restart
I was finally able to pair my AirPods (1st gen)! However all my Logitech MX devices got disconnected.Second, I decided to change
ControllerMode = bredr
toControllerMode = dual
to be able to connect my Logitech MX devices. And VOILÀ - my AirPods and MX devices are connected via Bluetooth to my laptop.Third, I followed this guide on AskUbuntu to make the AirPods microphone work as my input device. Unfortunately, I need to switch the Input in Settings to AirPods microphone but the Output switches to mSBC codec (HSP/HFP) automatically, so my earphones doesn't give me high quality sound on meetings :(
Luckily I can switch to A2DP codec (High Fidelity Playback) as the Output and high quality sound gets back but only output! Hence I need to remember whether I am on a call or watching YouTube to switch between this options in Settings.
Maybe somebody has managed to use both the A2DP (High Fidelity Playback) as the Output and AirPods microphone as the Input?