Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.6: Fix sleep problems with SleepWatcher' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: Fix sleep problems with SleepWatcher
Authored by: agitatedString on Oct 30, '11 12:59:12AM

Hackintoshes? Anyway, getting sleepwatcher to work for me was as simple as putting the following into my ~/.bash_profile file:

result=$(lsof | grep -i sleepwatcher)
if [ -z "$result" ]; then
/opt/local/sbin/sleepwatcher --daemon --sleep /Users/pcs/bin/sleepscript.sh --wakeup /Users/pcs/bin/wakescript.sh
fi



[ Reply to This | # ]