Skip to content

Instantly share code, notes, and snippets.

@polster
Created June 4, 2015 05:09
Show Gist options
  • Save polster/a88922bb61146ef71c4e to your computer and use it in GitHub Desktop.
Save polster/a88922bb61146ef71c4e to your computer and use it in GitHub Desktop.
OSX Yosemite Bluetooth Sleep Fix
#!/bin/bash
#
# Install an configure sleepwatcher via brew for the current user
# Install
brew install sleepwatcher
# Configure
sudo tee -a /etc/rc.wakeup <<EOF
kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
EOF
# Run at startup
ln -sfv /usr/local/opt/sleepwatcher/*.plist ~/Library/LaunchAgents
# Launch now
launchctl load ~/Library/LaunchAgents/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment