Skip to main content Logo (IEC resistor symbol)logo

Quis custodiet ipsos custodes?
Home | About | All pages | RSS Feed | Gopher

OS X - Turn off sleep from the command line

Published: 03-06-2013 | Author: Remy van Elst | Text only version of this article

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.

If you like this article, consider sponsoring me by trying out a Digital OceanVPS. With this link you'll get $100 credit for 60 days). (referral link)

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, snippets