How to FULLY stop AirPods from automatically connecting to Mac.

Every time that I look this up, all the websites or articles say the answer is switching the settings to "When last connected to this Mac". I don't want the AirPods to ever automatically connect to my Mac, even when it was the last device it was connected to. Does anyone have any ideas for this?

AirPods (3rd generation)

Posted on Apr 11, 2023 7:29 PM

Reply
Question marked as Top-ranking reply

Posted on Feb 7, 2025 4:47 PM

This thing drove me crazy for years. I'm using my AirPods only with my iPhone and larger headphones with Mac and never want it to switch back and forth, but it always does.


I might have just solved it with AirPods 4. It works under the latest macOS at the moment (15.3).


I looked in all possible places where settings can be stored and found something interesting, and it likely works.


Steps:


1 - Connect AirPods to Mac, go to Settings, select "When last connected to Mac".


2 - Open Terminal, run the following command, you will be asked for a password.


sudo defaults read /Library/Bluetooth/Library/Preferences/com.apple.MobileBluetooth.devices


The output will look something like that:


{
    ... different stuff ...
    "FC:A5:C8:B8:07:67" =     {
        ... different stuff ...
        OwnerNoMagicPairing = 0;
        ... different stuff ...
        UserNameKey = "My AirPods 4";
       ... different stuff ...
    };
    ... different stuff ...
}


You are looking for the section with your AirPods name in UserNameKey; it should (but probably might not) have the OwnerNoMagicPairing key set to 0.


Next, you need to copy the top-level key of this section ("FC:A5:C8:B8:07:67" in case above).


3 - Run the following command, replacing "FC:A5:C8:B8:07:67" with your specific value from above.


sudo defaults write /Library/Bluetooth/Library/Preferences/com.apple.MobileBluetooth.devices "FC:A5:C8:B8:07:67" -dict-add OwnerNoMagicPairing -int 1 


You may rerun the first command to check that now OwnerNoMagicPairing set to 1.


4 - Open AirPods settings again, check that "When last connected to Mac” is still selected, and click disconnect.


After that, when I insert my AirPods, it connects to my iPhone. 


On Mac, click connect on AirPods, and it switches to Mac. 


Put AirPods back to the case, take them out, and insert them again - they still connect to my iPhone, even though they were last connected to Mac and even if my iPhone screen is off. 


Play anything on Mac and AirPods doesn’t switch to it automatically.


Fn fantastic!


My AirPods 2, which I no longer use but still added to my settings, also have this key. So this should work with other Apple headphones too.

Similar questions

53 replies

Nov 13, 2024 12:17 PM in response to Mr. Dakota Brower

Can there be a setting of [never connect to this device]?

I want to have bluetooth turned on with my MacBook, my kid's, my wife's. All 5 family/work iPads; all our AirPods, our Beats headphones... They all try to steal my AirPods, his Beats, even though I've gone through all steps to keep them on kid's iPad, my phone, my wife's phone. We use bluetooth for other devices and file sharing. The only thing is "Hey, Kid! Can you turn off bluetooth?!"

Even though we share, can there be a setting of [only connect to this device]?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to FULLY stop AirPods from automatically connecting to Mac.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.