OSX Sleep Stuff

Bernhard Baehr has some interesting utilities on his web site. In particular is sleepwatcher (cached here) which can execute scripts when the computer wakes up or sleeps. It’s mentioned on this VMWare Forum post to trigger VM suspend/resume because a lot of people are having trouble with OSX Sleep Wake Failure crashes. I’m seeing the same thing with 10.10.4, Fusion 7.1.2 and my Win7 VM. I don’t recall seeing this issue with either my Win8.1 or Linux VMs.

Basically add these two scripts to your home dir:

$ cat ~/.wakeup
/Applications/VMware\ Fusion.app/Contents/Library/vmrun -T fusion start <vmx>

and

$ cat ~/.sleep
/Applications/VMware\ Fusion.app/Contents/Library/vmrun -T fusion suspend <vmx>

sleepwatcher_2.2.tgz (42.4 KB) Andrew Kohlsmith, 07/05/2015 12:22 PM

Add picture from clipboard (Maximum size: 1 GB)