So, this article focuses on how you can stop your Mac from sleeping. Also, if and when you want to put your system back to sleep, all you have to do is revert the processes discussed below.
How to Stop Mac From Sleeping?
The sleep feature was designed with the aim of saving power and the overall battery life. It revolves around the idea of storing your system’s current state in the memory (RAM) while shutting down other processes, including the processor and the disk drives. However, this usually happens after inactivity of just a few minutes. So, if you leave your system idle during events like a gaming competition or a class presentation, the sleep feature can feel unfriendly. On top of that, you have to enter your password each time you want the system to wake up. Nevertheless, there are a couple of ways to stop your Mac from sleeping. One step is carried out from the System Preference window, while the other is done via the Command Line. However, both of these methods are shown below.
From System Preferences
The easiest and often the most convenient way to stop your Mac from sleeping is to alter the sleep settings from the System Preference window. Even though the core concept is the same for both Macbooks and iMacs, the steps to do so are a bit different.
On MacBooks
On iMacs
From the Terminal
Another way to disable sleep on Mac is via a terminal command. This command disables your computer from sleeping until the Terminal window is open. That means, as soon as you close the Terminal window, your system will be reverted back to its default setting. The system might then go to sleep, depending on the configured settings. Nevertheless, here are the steps to stop your Mac from sleeping via the Terminal:
Using Third-Party Applications
There are many third-party applications that work to manage the power settings on your system. These applications can very well disable the sleep feature, among other power and battery options as well. While researching on the web and skimming various forums, we have discovered that KeepingYouAwake, Amphetamine, and Owly are some of the most popular power management third-party applications available for the Mac computer. So, if you want to, you can also choose this way to disable the sleep feature on your system.
How Can I Put My Mac to Sleep Only at a Desired Time?
If you don’t want your computer to sleep now but wish that it would do so after a few hours, you can schedule it to do so. The process is carried out from the System Preferences window, and here’s how you schedule your system to sleep at the desired time: