Skip to content

Instantly share code, notes, and snippets.

Last active June 19, 2024 08:46
Show Gist options
  • Save xbeta/e60fddd012e95202bbbe to your computer and use it in GitHub Desktop.
Save xbeta/e60fddd012e95202bbbe to your computer and use it in GitHub Desktop.
Macbook Pro Bluetooth + WiFi 2.4GHz interference fix for Mavericks

This is a well known issue, and it has a solution that is confirmed to work for the Mac side.

sudo defaults write /Library/Preferences/ bluetoothCoexMgmt Hybrid

After you run this script, the issue will go away and BT connections will remain stable.

And here is the explanation:

Background: after a lot of snooping and head scratching, here's what I found: the issue here seems to be that the system isn't using the same Bluetooth/Airport coexistance mode for BLE as it uses for BT Classic. One tell tale sign: if you have any BT Classic devices connected and active, the bug won't repro (neither for the Classic device nor any connected BLE device). The moment the Classic device disconnects, the bug repros (ie all the BLE connections are also dropped).

Further, I was able to find reference in the symbol table of an airport configd agent to an override setting for the coexistance mode. If you set the mode manually as above to 'hybrid' (the same mode that is usually invoked when a classic device is connected), the bug no longer repros.

All credits go to William Henderson from Knock for this trick.

There were cases when the same effect was perceived on iOS devices as well. This some times happens when the Core Bluetooth connections are not stable. Sometimes this can lead to the WiFi connection being unusable. But it's hard to reproduce, at least I wasn't able to, and your question does not concern it either.

Copy link

For me the solution works for 6-7 hours, but after that the problem comes back. Any solution?

Copy link

Thanks! You saved my life!

Copy link

No way! It worked! I've been having this problem for like 2 years. Whenever i connected my airpods, the wifi just stopped working. Hero 🙏🏼

Copy link

ellery0 commented Apr 28, 2021


Copy link

I am facing same bluetooth issues in my m1 mac. Is there any different solution for the m1 ?

Copy link

fgostev commented Aug 10, 2021

Day one - so far it works. If it keeps working - then it also solves m1 mac issues. Big thanks for it!

Copy link

fgostev commented Aug 12, 2021

Small update - worked for a day till I connected an old magic mouse and since then doesn't works anymore =(

Any suggestions what to do?

Copy link

Pardon me if I use incorrect words but I'm quite new to this.

I've had a problem with Bluetooth an Wifi interference. I was using an ethernet cable to my MBP and then used internet sharing, because my wireless connection is poor in my room. When I restarted my computer I noticed he connected with the network that was shared by my own computer and then my mouse, keyboard and headset had a lot of interference. Disconnecting from the wireless network and using ethernet instead worked for me to fix the issue.

Copy link

mtica commented Dec 21, 2021

Life saver, thank you. Reboot required.

Copy link

Does this work on macbook m1?

Copy link

Yes tried yesterday on Mac Air M1, and it worked. However today it started again.
Do i have to run this command on every boot?

Copy link

Worked for me today. I'll try to reboot and comment later.

Copy link

xbeta commented Jun 24, 2022

Yes tried yesterday on Mac Air M1, and it worked. However today it started again. Do i have to run this command on every boot?

You can try to create a launchd to run this command at boot time

Copy link

Mhaxym commented Dec 2, 2022

I was having a lot of problems with my Logitech keyboard, I executed this command and it seems to be working as expected now.
Thank you! It's working on M1 MacBook Pro.

Copy link

ZgrK commented Feb 27, 2023

Thanks ! This fix my problem

Copy link

Thanks ! Also fixed issues with my mx keys.

Copy link

c1aphas commented May 15, 2023

Thank you so much! My pain is finally over

Copy link

Thanks! This worked on Ventura as well.

Copy link

hemangsk commented Jul 7, 2023

Thank you! hoping this works, logitech support should get this tattooed on their forehead

Copy link

Works with my Mac 2015 OPLC Sonoma!

Copy link

this is not working for my macbook air m1 2020. any solution?

Copy link

Hi, I'm using a magic mouse, mac keyboard and beats studio beats and the intermittence error in my hearing aids persists on my Macbook air 2021. Maybe because my mac keyboard is from 2009.

Copy link

gmagreti commented Mar 9, 2024

Apparently it worked on my Macbook Pro M1 Pro 2021

Copy link

Thanks a lot for that. Apparently solved my problem with BT Headsets and Logitech BT mouse issues... let´s see if remains fixed.

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