Skip to content

Instantly share code, notes, and snippets.

@xbeta
Last active Jul 25, 2022
Embed
What would you like to do?
Macbook Pro Bluetooth + WiFi 2.4GHz interference fix for Mavericks

http://stackoverflow.com/questions/24380159/corebluetooth-and-wifi-interference

http://lists.apple.com/archives/bluetooth-dev/2013/Aug/msg00023.html

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/com.apple.airport.bt.plist 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.

@varna
Copy link

varna commented Feb 4, 2020

Thanks!

@rolandsaven
Copy link

rolandsaven commented Apr 24, 2020

saved my life!!!

@jjanghoon
Copy link

jjanghoon commented May 24, 2020

Hi,

you saved my life!!!

I was having the same issue on 2018 Macbook Pro with macOS Catalina 10.15.4

I'm surprised Apple still didn't fix this problem until now :(

Thanks again man, u literally saved my life. Cheers.

@larryebaum
Copy link

larryebaum commented Jun 8, 2020

Appears to be working for me, still after several days.

@dimidagd
Copy link

dimidagd commented Jul 4, 2020

Seems to be working.

@xbeta
Copy link
Author

xbeta commented Jul 26, 2020

Wow, I am glad this works out for people. I also just copied from Stackoverflow to make this easier to search for myself. Cool stuff

@leongeyer
Copy link

leongeyer commented Aug 31, 2020

Hi. In my case it did not work, I lost the possibility of audio playback per bluetooth. The device disconnects more than before, device dissapeared from sound options, etc. Wifi off. To revert, have a look at https://veltman.org/2015/12/another-tip/. = rewrite without hybrid, but old value, or delete it.
By the way, another thing with also can improve this is turn off handoff. https://www.forbes.com/sites/bradmoon/2017/07/13/this-trick-may-solve-your-mac-bluetooth-connectivity-issues/#49e7323a5196.

@leongeyer
Copy link

leongeyer commented Oct 13, 2020

I ran this script, and some issues occurred for my Bluetooth. How can I restore or disable this script?

hralinezhad, to revert look at my previous post

@MonilBhavsar
Copy link

MonilBhavsar commented Dec 4, 2020

Hi. In my case it did not work, I lost the possibility of audio playback per bluetooth. The device disconnects more than before, device dissapeared from sound options, etc. Wifi off. To revert, have a look at https://veltman.org/2015/12/another-tip/. = rewrite without hybrid.
By the way, another thing with also can improve this is turn off handoff. https://www.forbes.com/sites/bradmoon/2017/07/13/this-trick-may-solve-your-mac-bluetooth-connectivity-issues/#49e7323a5196.

What should be the old value, I have changed the setting to Hybrid, and I am facing the bluetooth disconnection issues.

@leongeyer
Copy link

leongeyer commented Dec 4, 2020

What should be the old value, I have changed the setting to Hybrid, and I am facing the bluetooth disconnection issues.

= rewrite without hybrid

@MonilBhavsar
Copy link

MonilBhavsar commented Dec 6, 2020

What should be the old value, I have changed the setting to Hybrid, and I am facing the bluetooth disconnection issues.

= rewrite without hybrid

sudo defaults write /Library/Preferences/com.apple.airport.bt.plist bluetoothCoexMgmt

Getting this error on using this command:

2020-12-06 11:11:23.574 defaults[1075:23339]
Rep argument is not a dictionary
Defaults have not been changed.

@leongeyer
Copy link

leongeyer commented Dec 6, 2020

Getting this error on using this command:

Your are right. Please check the link I mention, to write old value or delete it.

@FonsRademakers
Copy link

FonsRademakers commented Dec 12, 2020

Here it is:
sudo defaults delete /Library/Preferences/com.apple.airport.bt.plist bluetoothCoexMgmt

@MonilBhavsar
Copy link

MonilBhavsar commented Dec 12, 2020

Here it is:
sudo defaults delete /Library/Preferences/com.apple.airport.bt.plist bluetoothCoexMgmt

Thanks, problem solved!

@clairegraham
Copy link

clairegraham commented Dec 30, 2020

I appreciate the solution being shared, but wanted to share my experience...

This seemed to make my bluetooth audio stuttering dramatically worse. It went from skipping every few minutes, to skipping every few seconds.

I have a 13" M1 MBP and using Audioengine Bluetooth speakers.

@Per54
Copy link

Per54 commented Jan 3, 2021

Thanks a lot :-) Problem solved.

@sarthak-gpt
Copy link

sarthak-gpt commented Jan 9, 2021

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

@Vorobush
Copy link

Vorobush commented Mar 21, 2021

Thanks! You saved my life!

@victor-cuc
Copy link

victor-cuc commented Apr 26, 2021

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 🙏🏼

@ellery0
Copy link

ellery0 commented Apr 28, 2021

Thanks!

@avoid-ashraful
Copy link

avoid-ashraful commented Jul 31, 2021

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

@fgostev
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!

@fgostev
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?

@Thibaultt98
Copy link

Thibaultt98 commented Aug 17, 2021

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.

@mtica
Copy link

mtica commented Dec 21, 2021

Life saver, thank you. Reboot required.

@lucasmgsilva
Copy link

lucasmgsilva commented Dec 31, 2021

Does this work on macbook m1?

@vnevermore
Copy link

vnevermore commented Mar 15, 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?

@soymipagina
Copy link

soymipagina commented Apr 29, 2022

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

@xbeta
Copy link
Author

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

https://www.launchd.info/

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