![]() This mounts the drive when the computer wakes from sleep. wakeup that contains:īackupsVolume=`diskutil list | awk '/ 2TB / '` Now the drive unmounts, finder waits 10 seconds and then the computer sleeps. ![]() Osascript -e 'tell application "Finder" to delay 10' The external drive would turn on and mount again with the Device Removal Warning effectively stopping sleep. The drive did not completely unmount before the computer went to sleep and it triggered some event that would wake up the Mac. When the computer went to sleep Sleepwatcher started and finder started to eject the drive and the computer went to sleep. Where 2TB was the name of my external drive. Osascript -e 'tell application "Finder" to eject "2TB"' (note this thread kept talking about Desktop/.sleep, it should be in your home directory which is commonly refereed to as "~" or something like /bootdrive/usr/yourusername) I created a file in my home directory as named. I downloaded SleepWatcher () and installed SleepWatcher and the Sleepwatcher start-up items program. I then plugged the external drive into one of the "Always Powered" outlets, but it had the same issue. When the computer went to sleep the Powerstrip would turn off power to the hard drive and the USB port on the Mac would sense that the drive was removed and it would trigger some sort of event where the computer would immediately wake from sleep and I'd get a Device Removal Warning. The external drive has a "power on auto" feature where you plug it into the wall and then into to the computer and only when both the wall outlet and the computer are on does the drive come on. ![]() It worked - except for my Hitachi Simpletech 2GB drive. I recently purchased a SmartStrip power outlet for my computer setup to turn off devices when the computer went to sleep.
0 Comments
Leave a Reply. |