![]() $ cp ~/Desktop/sleepwatcher_2.2/config/de. ~/Library/LaunchAgents/de. $ sudo rm -f /etc/rc.sleep /etc/rc.wakeupĬopy the launchd agent configuration for a local user instance of SleepWatcher: To achieve this, after performing the above steps 1 and 2, continue with step 5: wakeup scripts, it is suggested not to run SleepWatcher as a system wide daemon with root permissions, but to run your own instance of SleepWatcher. When you use SleepWatcher on a single user Mac and only want to execute your own. When you reboot the Mac, SleepWatcher is started automatically via launchd. wakeup in their home directories that are executed when the Mac goes to sleep mode or wakes up. Now SleepWatcher runs again in an environment that matches the version 2.0 environment: users of the Mac can create executable files. Load the launchd agent configuration, this starts the SleepWatcher daemon: ![]() $ sudo cp ~/Desktop/sleepwatcher_2.2/config/rc.* /etc $ sudo cp ~/Desktop/sleepwatcher_2.2/config/de. /Library/LaunchDaemons/de. ![]() $ sudo cp ~/Desktop/sleepwatcher_2.2/sleepwatcher.8 /usr/local/share/man/man8Ĭopy the launchd agent configuration and the updated rc scripts (when you have modified them, compare your version and the new one and update them as required): $ sudo cp ~/Desktop/sleepwatcher_2.2/sleepwatcher /usr/local/sbin $ sudo rm -rf /Library/StartupItems/SleepWatcher Kill the running daemon and remove the old startup item: you have the folder ~/Desktop/sleepwatcher_2.2 with this ReadMe as ~/Desktop/sleepwatcher_2.2/ReadMe.rtf. Upgrade from Version 2.0.5 (or below)įor the following steps, we assume that you have unpacked the SleepWatcher 2.2 download on your desktop, i.e. When you don't feel familiar with the following installation hints, you are probably not the target audience of this software. This hopefully prevents people without sufficient Unix knowledge to install this software. The current version removes the installer packages and requires manual installation. It also can send the Mac to sleep mode or retrieve the time since last user activity.Ī little bit knowledge of the Unix command line is required to benefit from this software. It can be used to execute a Unix command when the Mac or the display of the Mac goes to sleep mode or wakes up, after a given time without user interaction or when the user resumes activity after a break or when the power supply of a Mac notebook is attached or detached. SleepWatcher is a command line tool (daemon) that monitors sleep, wakeup and idleness of a Mac. ![]() $ sudo launchctl load /Library/LaunchDaemons/de.īelow you'll find the original readme from SleepWatcher: $ sudo cp config/de. /Library/LaunchDaemons/ $ sudo cp sleepwatcher.8 /usr/local/share/man/man8 $ sudo mkdir -p /usr/local/sbin /usr/local/share/man/man8 Please make sure the directories are right, you probably don't want to leave it on your Desktop! Check config/de. to make sure it links to the correct shell script. NOT ALL FEATURES FROM SleepWatcher ARE AVAILABLE, IF YOU WISH TO USE ALL FEATURES GO TO Installation This uses a modified version of SleepWatcher by Bernhard Baehr, all credits go to him!
0 Comments
Leave a Reply. |