If someone can pare it down to just what's necessary I'd love to hear the explanation (ping me something went wrong. Assuming that you have Homebrew installed and working correctly, installing Sleepwatcher is as easy as running the following command in a terminal window: brew install sleepwatcher Homebrew will download and install Sleepwatcher at /usr/local/sbin/sleepwatcher. Obviously some of it is superfluous, but if I run that script my bluetooth dies and comes right back, so I know it's working well enough. Can u show me tutorial, how u can install and work with sleepwatcher Thanks. I add your code to rc.wakeup with location at /etc/rc.wakeup : Code: sleep 5 pkill bluetoothd. It's only sometimes that my bluetooth doesn't reconnect after sleep & wake (may be related to docking to my Thunderbolt Display) and I don't know how to immediately cause the problem, so I don't know what about that process is required. But I dont know how to check SleepWatcher is working. Accused 'sleepwatcher' Barry Sinclair says he is a changed man, won't offend again Sinclair has a long criminal history, and police are seeking a rare type of peace bond to restrict his movements. #/usr/local/sbin/sleepwatcher -verbose -w ~/.local/bin/restart-bluetooth #sudo chown -R $(whoami):staff /usr/local/sbin/ ~/.local/bin/restart-bluetooth: #!/bin/bash usr/local/bin/blueutil -p 0 alone didn't work for me, I did this: Install the bluetooth util and sleepwatcher brew install sleepwatcher blueutil This creates a file which switches bluetooth off when the macbook lid is closed echo '(which blueutil) -p 0' > /.sleep This creates a file which switches on bluetooth when the lid is open echo '(which blueutil) -p 1' > /.
0 Comments
Leave a Reply. |