Skip to content

Instantly share code, notes, and snippets.

@aidos-dev
Last active May 2, 2024 20:36
Show Gist options
  • Star 104 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save aidos-dev/b49078c1d8c6bb1621e4ac199d18213b to your computer and use it in GitHub Desktop.
Save aidos-dev/b49078c1d8c6bb1621e4ac199d18213b to your computer and use it in GitHub Desktop.
How to connect Apple AirPods to Linux (Debian/Ubuntu/Mint)

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

Step 1.

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 :)

Step 2.

After that a file with configurations will be opened in a terminal window.

Find the next line:

#ControllerMode = dual

Step 3.

Change "dual" to "bredr". The final code must be:

ControllerMode = bredr

Step 4.

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 qustion:

"Save modified buffer?"

  1. Press on your keyboard: y
  2. Press on your keyboard: Enter

After these steps you will come back to regular terminal window on the same directory as before.

Step 5.

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

Step 6.

Go to your computer settings and enable Bluetooth so it starts to look for bluetooth connections

Step 7.

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

Step 8.

Finaly, after all these steps you should find your AirPods on Bluetooth settings section and connect it ;)

@InesGarcia84
Copy link

Many thanks !

@karthikeyan993
Copy link

Thank you

@simonramosb
Copy link

Thanks!

@FunkJonas
Copy link

Many thanks !

@chaitanyadgore
Copy link

Works perfectly on my Ubuntu machine :)

@PrinceKay145
Copy link

thank you)

@pdostal
Copy link

pdostal commented Feb 22, 2024

It even works on SteamDeck OLED which runs SteamOS 3 which is based on Arch Linux 😄

I've also posted your solution on r/steamdeck and linked this gist. If it is not OK for you just let me please know.

@evantkchong
Copy link

Changing

#ControllerMode = dual

to

ControllerMode = dual

Worked for me as well!

@maniacx
Copy link

maniacx commented Feb 24, 2024

For Gnome users to check Airpod battery level

https://extensions.gnome.org/extension/6778/airpod-battery-monitor/

Check readme before use, to understand how it works.

@v1adCA
Copy link

v1adCA commented Feb 26, 2024

Changing
#ControllerMode = dual
to
ControllerMode = bredr
Worked on Ubuntu 22.04.4 LTS.
Thanks!

@muhammad-sufyan5
Copy link

Awesome its working

@xiuhu17
Copy link

xiuhu17 commented Mar 7, 2024

Thanks!!!!

@AmineTouihri
Copy link

thanks it works for me

@nandopiles
Copy link

thank u!!! U're awesome,fast and well explained.

@WentsingNee
Copy link

That works for Mint! Thank you A LOT!

@rsx2049
Copy link

rsx2049 commented Mar 19, 2024

Thanks!

@ytendx
Copy link

ytendx commented Mar 20, 2024

thanks!

@gegham1
Copy link

gegham1 commented Mar 23, 2024

thanks

@slimal
Copy link

slimal commented Mar 24, 2024

Thanks !

@Bheeshm-Pitamaah
Copy link

worked on RHEL 8 , thanks a ton !

@asofiasb
Copy link

asofiasb commented Apr 3, 2024

thanks <3 it worked ubuntu 22.04 !

@faffa42
Copy link

faffa42 commented Apr 5, 2024

Works as a charm on Ubu23.10 tks

@puqiulin
Copy link

puqiulin commented Apr 7, 2024

i dont know why, but thanks bro!!!

@Khachatryan19
Copy link

Thaaanks!!!

@melanymai
Copy link

Wonderful it works, thanks !! But now I can't reconnect my mouse MX Master :'(

@andersnicolai
Copy link

Awesome, worked, just curious whats the difference here? is it the way airpods works, I was sure airpods only would work on mac, but I am glad that was not the case, thanks for sharing

@not-steve-jobs
Copy link

Are there any other options? I can't do it

@ethanseow
Copy link

Good works on linux mint

@Mominnaim
Copy link

Does this work on fedora?

@DogukanUrker
Copy link

huge thanks <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment