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


Click here to return to the 'Sleep Macs via SleepWatcher based on monitor state' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Sleep Macs via SleepWatcher based on monitor state
Authored by: bazzoola on Aug 06, '08 12:52:15PM
did you just comment out the previous stuff in SleepWatcher StartupItem ? like this?

RunService ()
{
        ConsoleMessage "Starting Sleep Watcher"
#       /usr/local/sbin/sleepwatcher -d -V -s /etc/rc.sleep -w /etc/rc.wakeup
        /usr/local/sbin/sleepwatcher -d -f /etc/sleepconfig
        /etc/rc.wakeup
        return 0
}

. /etc/rc.common

StartService ()
{
        ConsoleMessage "Starting Sleep Watcher"
#       /usr/local/sbin/sleepwatcher -d -V -s /etc/rc.sleep -w /etc/rc.wakeup
        /usr/local/sbin/sleepwatcher -d -f /etc/sleepconfig
        /etc/rc.wakeup
        return 0
}



[ Reply to This | # ]
Sleep Macs via SleepWatcher based on monitor state
Authored by: Balthamos on Aug 06, '08 08:45:45PM

Yes, you could do it like that; it all depends on what you are using sleepwatcher for. If all you want is the sleep functionality, you can comment out the original commands as you illustrated.



[ Reply to This | # ]