Created
August 2, 2016 09:28
-
-
Save volo-droid/68b8e65ef3e78cb37d19919735aa9a36 to your computer and use it in GitHub Desktop.
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 | |
# | |
# Run the file with sudo | |
# | |
launchctl unload /System/Library/LaunchDaemons/com.apple.blued.plist | |
kextunload -b com.apple.iokit.IOBluetoothSerialManager | |
kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
launchctl load /System/Library/LaunchDaemons/com.apple.blued.plist | |
kextload -b com.apple.iokit.IOBluetoothSerialManager | |
kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport |
Sometimes I have to run just this couple of times:
kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
The output of kextstat | grep Bluetooth
command right after a boot:
103 4 0xffffff7f81539000 0xad000 0xad000 com.apple.iokit.IOBluetoothFamily (4.3.6f3) <15 7 5 4 3 1>
116 1 0xffffff7f81621000 0x23000 0x23000 com.apple.iokit.IOBluetoothHostControllerUSBTransport (4.3.6f3) <103 44 12 11 7 5 4 3 1>
117 0 0xffffff7f81644000 0x9000 0x9000 com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport (4.3.6f3) <116 103 44 12 11 7 5 4 3>
120 0 0xffffff7f8160a000 0x2000 0x2000 com.apple.iokit.IOBluetoothUSBDFU (4.3.6f3) <44 4 3>
123 0 0xffffff7f8160d000 0xa000 0xa000 com.apple.iokit.IOBluetoothSerialManager (4.3.6f3) <122 7 5 4 3 1>
132 1 0xffffff7f815f6000 0x12000 0x12000 com.apple.driver.IOBluetoothHIDDriver (4.3.6f3) <103 32 5 4 3>
133 0 0xffffff7f82927000 0xb000 0xb000 com.apple.driver.AppleBluetoothMultitouch (85.3) <132 107 103 32 5 4 3>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also use the following command to check/set bluetooth power state:
Set Bluetooth pref to on/off:
sudo defaults write /Library/Preferences/com.apple.Bluetooth.plist ControllerPowerState 1
sudo defaults write /Library/Preferences/com.apple.Bluetooth.plist ControllerPowerState 0
Get Bluetooth pref state:
defaults read /Library/Preferences/com.apple.Bluetooth.plist ControllerPowerState