Sleep mode is a mode of macOS in which the display turns off, the processor runs in power-saving mode, and the hard drive and some background processes are paused.
Is sleep mode useful? Absolutely. Is sleep mode sometimes annoying? Also yes, and here’s why.
So, we need to deal with this. By the end of this article, you'll also know 7 ways of how to stop your Mac from sleeping.
Mac sleeping on the job?
Try Lungo to prevent your computer from sleeping or dimming when you don't want it to. Takes just a click! Available on Setapp.
Try free Security-testedLet me start with a simple solution.
[I will definitely show you how to set up sleep modes using standard Mac tools in the next section, but believe me, this method is a piece of cake.]
The tool I recommend is Lungo – an app that prevents your Mac from sleeping for as long as you want. And all it takes is a few clicks.
Lungo is free for 7 days if you download it from Setapp. Along with Lungo, you'll get 240 other apps for Mac and iPhone that are also free and available without limitations during the trial period.
Now, let’s explore Mac’s built-in tools. The settings differ slightly from OS to OS. macOS Sonoma and macOS Ventura (the two of the latest versions of macOS at the time of writing) let you customize your battery and power settings in a similar way.
Here’s how to turn off sleep mode on Mac with macOS Ventura and Sonoma:
Big Sur and Monterey have similar systems for changing sleep patterns.
Here’s how to change sleep time on Mac while running on battery power:
And here’s how to prevent your Mac from sleeping while running on battery power:
macOS Catalina and older versions have a slightly different design, but the essence of the settings is the same: to set up separate battery and mains operations.
By default, your Mac goes to sleep as soon as you close the lid. This is logical and good: the battery is saved, and after opening the lid, you just need to enter the password and continue working. But if, for example, you use an additional monitor for work and want to close the laptop, you don't want your Mac to switch to sleep mode. Let’s discover how to set it up.
I only use the extra display a few times a week, so I need both options (sleep and awake modes when the lid is closed) equally. I don't like to dig that deep into the settings every time, so I use theOne Switchinstead.
This app allows me to change settings in one click. Look how easily I can customize the sleep mode when the lid is closed. All it takes is a click on the menu bar and check on or off the line.
macOS Sonoma: keep awake when lid closed
Here's how to stop your Mac from sleeping with the lid closed on macOS Sonoma:
Here's how to keep Mac from sleeping with the lid closed on macOS Ventura:
Here's how to stop your Mac from sleeping with the lid closed on macOS Monterey and earlier:
Read also:
If you want to make temporary changes to the sleep settings, you can do this through the Terminal. The changes will be active as long as the Terminal window is open.
If your Mac runs macOS Monterey and some earlier, you can set up your computer to turn on and off at the same time consistently. Here's how to set up a power-on and power-off schedule:
In macOS Sonoma, this feature has been removed, but you can still use terminal commands to schedule startup and shutdown times.
You can replace sleep with wake, shutdown, or wakeorpoweron and adjust the time and days accordingly.
MTWRFSU stands for the days of the week, and you can exclude any if you want to.
To check the schedule, enter the following command: pmset -g sched. If you need to cancel it, enter sudo pmset schedule cancelall.
Here’s a useful app for those who turn on or off their laptop on a schedule but don't always start working the moment the Mac is turned on –Endurance. It is created to keep your Mac’s battery healthy: with it, the battery life will increase by up to 20%. For example, the app gradually reduces the brightness of the screen when needed. You are not inconvenienced, and the battery lasts longer.
Did you know that you can actually choose the sleep mode type for your Mac?
Macs have three sleep modes, one of which will be the default depending on your macOS type. Check yours, and then compare it to our explanation below.
The Terminal will show you the sleep mode for your Mac:
Let's take a closer look at them.
Let’s compare! |
Standard sleep |
Hibernate mode |
Safe sleep |
RAM |
On |
Off |
On |
Data processing |
Unsaved files, documents, and processes are stored in RAM. |
Before hibernating, the startup drive saves data from the RAM. |
Startup drive saves data from the RAM. |
Wake-up time |
Fast |
Longer (Mac copies data from the disk back to RAM) |
Fast |
You can change the sleep mode on your Mac by entering the following command at the Terminal: sudo pmset hibernatemode X
NoteInstead of X, you need to use 0, 1, 3, or 25 (the number of the mode you want to have). Remember, though, that by default, a Mac has the mode that suits its model. So, I usually don't recommend changing this setting.
Choose the best solution how to stop Mac from sleeping
So, the answer to your question, "Why does my Mac keep going to sleep?" is that it's all about your settings. In general, there are three ways to change sleep settings.
Both Lungo and OneSwitch are available on Setapp along with 240 other apps that solve a variety of Mac, iPhone, and iPad tasks. All apps are free during a seven-day trial.
To make your Mac stay awake longer:
Go to System Settings > Lock Screen.
Find the line "Turn display off on power adapter when inactive" in the right panel and click on the drop-down next to it.
Set the sleep time to 3 hours or Never.
Find the line "Turn display off on battery when inactive" and repeat step 3.
To change how long your Mac screen stays on, set this in System Settings > Lock Screen.
Here's what you should know:
To put Mac to sleep with the keyboard, press Option Command power button.
To stop your Mac from sleeping when the display is off:
Go to System Settings > Battery.
Scroll down and click Options.
Turn on Prevent automatic sleeping on power adapter when the display is off.
Turn off display is not the same as the sleep Mac. When you turn off the display, all computer functions continue to run. Sleep puts your Mac into a low-power state to save power. Most system functions are paused.
The above is the detailed content of How to stop Mac from sleeping: 7 methods. For more information, please follow other related articles on the PHP Chinese website!