Last active
February 23, 2016 09:32
-
-
Save tcr-ableton/8056a1c32f7f3f530a63 to your computer and use it in GitHub Desktop.
Properly configure audio over bluetooth for osx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
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 | |
list="$( | |
sudo ps -A \ | |
| grep -iE '([h]ear|[f]irefox|[b]lue|[c]oreaudiod)' \ | |
| cut -c 1-90 | |
)" | |
pids=$( cut -c 1-6 <<< "$list" ) | |
echo sudo renice -5 $pids | |
sudo renice -5 $pids | |
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment