Skip to content

Instantly share code, notes, and snippets.

@andrewheiss
Last active March 14, 2016 15:17
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewheiss/d3070945d48af0066e6c to your computer and use it in GitHub Desktop.
Save andrewheiss/d3070945d48af0066e6c to your computer and use it in GitHub Desktop.
Reset Bluetooth driver on OS X Mavericks
#!/usr/bin/env sh
# Fixes problem described at http://apple.stackexchange.com/questions/118783/bluetooth-peripherals-randomly-disconnecting-under-mavericks
kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
@delfuria
Copy link

delfuria commented Dec 8, 2014

hi,
thanks for the fix, but i don't know how to save and run it.
I have created a text file with editra and save it to /Users/stefano folder
but after launching the terminal windows and run
sudo bt-fix
i get
sudo: bt-fix: command not found
Could you help me ?
thanks in advance
Stefano

@ckim
Copy link

ckim commented Jan 30, 2015

sudo sh bt-fix

@GregKeillor
Copy link

Thanks andrewheiss and ckim! I was delighted to discover that this script still seems to work in Yosemite 10.2.2. I am uncomfortable keeping custom executables in my ~/ folder because I feel like they will eventually get lost. But, oh well. I discovered a need in order to use a utility called MacID, an iOS app and OS X client that use bluetooth to enable touch unlocking a Mac using an iPhone.

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