How to connect Apple AirPods to Linux (Debian/Ubuntu/Mint)
From the collection Linux Stuff

linux
bluetooth
airpod

QR Code
How to connect Apple AirPods to Linux (Debian/Ubuntu/Mint)

You can show this QR Code to a friend or ask them to scan directly on your screen!

Thanks for sharing! 🫶

The url for this was also copied to your clipboard!
Open your terminal.
In the root directory run the command:
sudo nano /etc/bluetooth/main.conf
Type your password.

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:
  1. On your keyboard press:
Ctrl + x
  1. On the bottom of nano editor you will see a question:
"Save modified buffer?"
  1. Press on your keyboard: y
  2. Press on your keyboard: Enter

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."

You can close the terminal now.
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:
  1. Put your airpods (both) inside the case
  2. Keep the cover opened
  3. With cover opened and airpods inside the case press and hold the button on the back of the airpods case.
  4. 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