nerodogs.blogg.se

Sleepwatcher mac
Sleepwatcher mac







  1. Sleepwatcher mac install#
  2. Sleepwatcher mac password#
  3. Sleepwatcher mac mac#

The -S command will run the command /usr/local/sbin/sleepwatcher -d -t9000 -i "/usr/local/sbin/sleepwatcher -n" -p /tmp/sleepwatcherid every time the display sleeps. The first line calls an instance of sleepwatcher with three arguments: -V (for verbose logging), -S (to run a command on display sleep), -W (to run a command on display wake) Similarly "RunAtLoad" will perform the "ProgramArguments" at login.Īs for the actual program arguments, they are a bit more complex: /usr/local/sbin/sleepwatcher-V-S /usr/local/sbin/sleepwatcher -d -t9000 -i "/usr/local/sbin/sleepwatcher -n" -p /tmp/sleepwatcherid-W kill `cat /tmp/sleepwatcherid` First, the option "KeepAlive" will perform the "ProgramArguments" whenever the process sleepwatcher is not running. This could benefit from some explanation as to what the launchd file actually does. That being said, although I have not tested this script either, this seems like a valid method of forcing an idle-time based sleep if other methods fail. Especially in circumstances like this where a slight error could cause the computer to continually sleep or shut down. The reason is that if they cause issues they are difficult to debug for the average user. Generally, I don't think its a good idea to recommend launchd modifications/additions without understanding exactly what they're doing.

sleepwatcher mac

Sleepwatcher mac password#

Go back to Terminal, enter the following and your root password when prompted. The option uses tenth of a second increments, so to set a one hour idle time before system goes to sleep, you would use '-t36000', for half an hour, use '-t18000,' etc.Ĥ - Set the permissions and enable SleepWatcher. usr/local/sbin/sleepwatcher -V -S /usr/local/sbin/sleepwatcher -d -t9000 -i"/usr/local/sbin/sleepwatcher -n" -p /tmp/sleepwatcherid -W kill `cat /tmp/sleepwatcherid`RunAtLoadKeepAliveTo set your own sleep timer after the display goes to sleep, you can modify the option in the plist where it starts with '-t' then followed by digits. To install, copy andpaste the following into your Terminal and then press Enter: Please use the default choices if the installation asks you to choose unless you know what you're doing.

Sleepwatcher mac install#

You need to have the Developer Tools installed to compile this.īesides many other reasons to have Homebrew on your computer, it is one of theeasiest way to install command line software. Note: this tip assumes that your system has no issue manually entering sleep and waking back up from it.ġ - Install Homebrew.

Sleepwatcher mac mac#

So I've detailed the steps below to make it work system wide (and no it won't go to sleep if you're watching a movie) and hope it'll help those of you who have an insomniac Mac for whatever reason. Unfortunately, all the hints mentioned here either did not work for me, were incomplete, needed some other utility to work, or had an outdated method for launching.

sleepwatcher mac

I did some research online and noticed that many people with real Macs were having similar issues (in my case it's because of the DVD drive), and then I found this site with a link to SleepWatcher a very good utility! I built a customized Mac and was very happy with it, until I realized that it wouldn't automatically go to sleep regardless of my Energy Saver settings in System Preferences.









Sleepwatcher mac