Created
June 4, 2015 05:09
-
-
Save polster/a88922bb61146ef71c4e to your computer and use it in GitHub Desktop.
OSX Yosemite Bluetooth Sleep Fix
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/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