Two Ways to Prevent Your Mac from Sleep

Popular articles

17 / 11 / 2017

Two Ways to Prevent Your Mac from Sleep

We usually put our Macs in sleep mode to prolong their lifespans and conserve resources. Yet, you never want your Mac to go to sleep when showing a travel slideshow or giving a presentation, right? So here are some tips to prevent your Mac’s display from turning off.

A setting in System Preferences controls your Mac’s energy saving options that allows you to adjust the length of time before your Mac’s display turns off. To do this, go to System Preferences > Energy Saver and move the Turn display off after slider to Never.

This will permanently prevent your Mac from entering sleep mode.

For temporary sleep mode, there’s a special Terminal command called caffeinate. It won’t allow your Mac to enter sleep mode as long as the Terminal window is open.

Open the Terminal app from the Application > Utilities, or type Terminal in Spotlight. When Terminal opens, type:


and press Return.

The only change you’ll notice is that your cursor will jump to a new line, and “caffeinate” will appear in the Terminal window title next to your username. That’s it! Now your Mac will stay wide awake just like you do after a cup of coffee.

Remember, this works only while the Terminal window remains open. If you attempt to close the window, this warning notification appears:

Click Close and your Mac will sleep according to your Energy Saving settings in System Preferences.

Now you have two fast and easy ways to keep your Mac from sleeping – no additional tools or special knowledge needed! Stay tuned for more tips and tricks.