OS X - Turn off sleep from the command line

03-06-2013 | Remy van Elst

Table of Contents

This little snippet turns off Sleep on an OS X machine, either iMac or Macbook. Normally when a Mac is not used it goes in sleep mode, this turns that off.

To turn off sleep mode:

systemsetup -setsleep Off

Or to set an other time (5 minutes for example):

systemsetup -setsleep 5

Tags: apple, apple-remote-desktop, ard, mac, os-x, power-saving, sleep,