Skip to content

Instantly share code, notes, and snippets.

@piteur
Last active September 27, 2020 16:12
Show Gist options
  • Save piteur/d08a85d113417b2ac4e2 to your computer and use it in GitHub Desktop.
Save piteur/d08a85d113417b2ac4e2 to your computer and use it in GitHub Desktop.
Fix mac os crappy bluethooh quality

Crappy bluetooth quality on Mac

The problem is the allowed bandwith for the headset is restricted for an unknow reason (when using the headset for a phone call for example).

The following commands fix the bandwith to the max allowed by osx. And it works fine.

Run the following commands

defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Max (editable)" 80 
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" 80 
defaults write com.apple.BluetoothAudioAgent "Apple Initial Bitpool (editable)" 80 
defaults write com.apple.BluetoothAudioAgent "Apple Initial Bitpool Min (editable)" 80 
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool" 80 
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Max" 80 
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Min" 80

To see the result, run

defaults read com.apple.BluetoothAudioAgent

The output will be something like

$ defaults read com.apple.BluetoothAudioAgent
{
    "Apple Bitpool Max (editable)" = 80;
    "Apple Bitpool Min (editable)" = 80;
    "Apple Initial Bitpool (editable)" = 80;
    "Apple Initial Bitpool Min (editable)" = 80;
    "Negotiated Bitpool" = 80;
    "Negotiated Bitpool Max" = 80;
    "Negotiated Bitpool Min" = 80;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment