Skip to main content

Raymii.org Raymii.org Logo

אֶשָּׂא עֵינַי אֶל־הֶהָרִים מֵאַיִן יָבֹא עֶזְרִֽי׃
Home | About | All pages | Cluster Status | RSS Feed

OS X - Turn off sleep from the command line

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


❗ This post is over twelve years old. It may no longer be up to date. Opinions may have changed.

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