Mac Tutorials

How to Stop Mac from Sleeping

Most of the time, you’ll probably want your Mac to go to sleep automatically—and by default, it’s set to do exactly that. But there are also occasions when you might want to turn off sleep mode on your Mac and keep it running as normal.

 

In this guide, we’ll look at some of the reasons to disable sleep mode and show you how to keep your Mac from sleeping. Stay tuned!

Before we start

 

If you’re preventing your Mac from sleeping, it might be a good idea to clear out its RAM occasionally. That’ll help keep it running smoothly. Luckily, it’s easy to do with MacKeeper’s Memory Cleaner—find out how:

  1. Download and run MacKeeper.
  2. Select Memory Cleaner from the left-side menu.
  3. Click Open.
  4. Click Clean Memory.

You’ll now see your amount of free RAM go up. Want to test it out yourself? Try MacKeeper today, and give it a go.

What is sleep mode on macOS?

Sleep mode is an energy-saving and hibernate mode. Take your hands off your keyboard and don’t touch your mouse. Eventually, your Mac’s screen will go dark, and things like the fans and hard drive will stop spinning. That’s sleep mode. Your Mac isn’t quite turned off, but it’ll use only a tiny fraction of the power it uses when turned on fully. You can also manually put your Mac into sleep mode by pressing the power button.

 

When your Mac is in sleep mode, it’ll appear to be turned off. But click your mouse or tap a key on your keyboard, and your Mac will spring back to life, and you’ll be able to start using it quicker than if you had turned it off completely.  

 

There are also a few different types of sleep mode. Check out our guide to choosing a Mac sleep mode to learn more about them.

Reasons to disable sleep mode on a Mac

There are a few common reasons why you might want to prevent your Mac from going to sleep. These include:

  • Your Mac is downloading a large file or lots of files that will take a long time.
  • You’re uploading lots of data, such as photos or videos, to a cloud service.
  • You’re converting or finalizing high-definition video or images.
  • You want to remain reachable on VoIP and video-calling apps.
  • Your Mac is going to sleep when you’re watching TV or listening to music.

How to keep Mac from sleeping

Turning off sleep mode is easy, but the process differs slightly depending on which version of macOS you have. Find your operating system below and follow our instructions to get your Mac not to sleep:

How to turn off sleep mode on macOS Sonoma and Ventura

In macOS Sonoma, the sleep mode settings are different, compared to earlier versions of the operating system. There are various settings that are relevant to your Mac’s sleep function, and in these versions of macOS, they’ve been moved around a bit. Follow these steps to stop your Mac from going to sleep:

  1. Open System Settings, and select Lock Screen.
  2. Use the menu next to Turn display off when inactive and choose Never.
  3. Next, choose Energy Saver from the sidebar, and turn off Prevent automatic sleeping when the display is off.
On a Mac running macOS Sonoma or Ventura, open your System Settings and then select 'Lock Screen' from the sidebar.
Step 1. Select Lock Screen
In the 'Lock Screen' settings of your Mac, use the dropdown menu in 'Turn display off when inactive' and choose the 'Never' setting.
Step 2. Prevent your screen from turning off
Next, in your macOS System Settings, use the switch to turn off 'Prevent automatic sleeping when the display is off'.
Step 3. Prevent automatic sleeping

How to prevent Mac from sleeping on macOS Big Sur and Monterey

It wasn’t until Ventura that Apple introduced System Settings. Before that, macOS had System Preferences, and you had to use a different process to disable sleep mode. Follow these steps in Big Sur and Monterey:

  1. Open System Preferences and select Energy Saver.
  2. In the Energy Saver panel, slide the Turn display off after slider to Never to permanently keep your Mac from sleeping.
  3. If you see a warning about your Mac using more energy, click OK.
  4. Tick Prevent your Mac from automatically sleeping when the display is off.
If your Mac is on Big Sur or Monterey, you'll need to go into System Preferences, then select the 'Energy Saver' option.
Step 1. Open Energy Saver in System Preferences
Step 2. Move the slider to Never
You may see a warning about your Mac using more energy when you turn off display sleep. Click the 'OK' button to proceed.
Step 3. If you see a pop-up, click OK
Next, to prevent your Mac from going to sleep, check the box next to 'Prevent your Mac from automatically sleeping when the display is off'.
Step 4. Prevent your Mac from sleeping

How to disable sleep mode on macOS Catalina and older

If you have an even older version of macOS, then you’ll need to take slightly different steps to make your Mac avoid going into sleep mode. Just follow this process to disable sleep mode in macOS Catalina and earlier:

  1. Open System Preferences and select Energy Saver.
  2. Slide the Computer sleep slider to Never. Uncheck Put hard disks to sleep when possible.
Similar to Big Sur, in earlier versions of macOS, you'll need to go into your System Preferences and then select the Energy Saver option.
Step 1. Select the Energy Saver option
In the Energy Saver section of your Mac's System Preferences, use the slider next to 'Computer sleep', moving it to 'Never'.
Step 2. Change Computer sleep to Never

How to configure sleep mode using the Terminal

You can also temporarily make sleep mode inactive using a simple Terminal command. As long as this Terminal window is open, the command will continue to run. Here’s how to use Terminal to prevent sleep mode in macOS:

  1. Press Cmd+Spacebar to bring up Spotlight. Search for and open Terminal.
  2. Type in caffeinate and press Return. Terminal won’t tell you, but the caffeinate function should now be running.

How to keep your MacBook on when the lid is closed

You might want to close your MacBook but keep it turned. Usually, this is because you’ve connected it to an external monitor, so you can watch a film, play a game, or just benefit from a bigger screen. Follow these steps to make your MacBook not sleep when it's closed:

  1. Connect your Mac to an external display. You may need an adaptor for this.
  2. In System Settings, select Lock Screen from the sidebar.
  3. Set Turn display off on battery when inactive to Never.
  4. Do the same for Turn display off on power adapter when inactive.
When you plug a MacBook into an external display, it shouldn't sleep when you close the lid. But you can also change settings in System Settings.
Prevent your MacBook from sleeping

How to schedule sleeping on your Mac

You can make your Mac automatically enter sleep mode or wake up at times of your choosing. This smart feature is easy to use in earlier versions of macOS, but as of Ventura, you can only access it through Terminal commands.

 

Check the corresponding guides on scheduling sleeping for your macOS:

Scheduling sleep mode in macOS Ventura and later

To MacBook to not sleep in Ventura and later, you need to use the Terminal app. Use this system to schedule sleep mode like this:

  1. Open Terminal from Applications > Utilities.
  2. Type your command. For example, sudo pmset repeat sleep MT 14:00:00. Press Return. Enter your password if prompted.
  3. To remove these settings, typo sudo pmset repeat cancel, and press Return.
  4. To see your current settings, use the command pmset -g.
In newer versions of macOS, you'll need to use the Terminal app to schedule sleep times. You can find it in Applications > Utilities.
Step 1. Open Terminal.
In Terminal, enter the command, which will have to include the time and days you want your Mac to go to sleep.
Step 2. Set a sleep time
If you change your mind about scheduling your Mac to go to sleep, use the 'cancel' command to wipe it all clean.
Step 3. Cancel scheduled sleep times
You can also use the 'pmset -g' command at any time to see what your current scheduled sleep times are on your Mac.
Step 4. View your current sleep schedule

Hint from our experts: 

 

To schedule the sleep mode on Mac correctly, you also need to learn the date and time formatting the Terminal command relies on. Here are a few important remarks on our side:

  • MTWTFSU refers to the days of the week.
  • MM/DD/YY is the date.
  • HH:MM:SS is the time.

Schedule sleep mode on Monterey and earlier

To schedule both sleep and waking times for your Mac using macOS Monterey and earlier is easy. You simply need to use the tool built into your Mac’s System Preferences. Follow these steps to schedule sleep on your Mac:

  1. In System Preferences, open Energy Saver, then click Schedule.
  2. A window will pop up with two checkboxes — Start up or wake and Sleep. Tick one or both.
  3. Select the day of the week and the time you want to wake your Mac or put it to sleep. Click OK. From now on, your Mac will wake or sleep on the days and at the times you selected.
On a Mac running Monterey or earlier, go to your Energy Saver settings, then click the 'Schedule' at the bottom of the window.
Step 1. Click Schedule in Energy Saver
In the schedule settings window, choose when you want your Mac to start or wake up, and when you want it to go to sleep or shut down.
Step 2. Click the checkboxes
When you've finished setting up your schedule, simply click the 'OK' button, and your Mac will start or sleep at the times you set.
Step 3. Choose your schedule.

What are the macOS sleep mode settings for?

Different versions of macOS have slightly different Mac sleep settings. These also vary depending on which Mac model you have. It’s worth knowing what all of these are for when you’re managing your Mac’s sleep settings. Here are some of the most common settings explained:

  • Regulate how long your Mac stays awake: Use the slider to determine the amount of time your Mac should wait before going to sleep.
  • Prevent computer from sleeping automatically when the display is off: When you’re performing a task that doesn’t require your display to be on, such as playing music or downloading files, you can prevent your Mac from sleeping even when the display is turned off. This includes when you have a MacBook with its lid closed.
  • Put hard disks to sleep when possible: This powers down your hard drive when you aren’t working with files stored there.
  • Wake for network access: This will wake up your Mac when someone accesses its shared files.
  • Wake up automatically: Turn your Mac on whenever power is available.
  • Enable power naps: This allows your Mac to occasionally wake from sleep to perform tasks such as checking for new emails.

Use third-party apps to manage sleep mode on your Mac

There are several apps that can stop your Apple laptop or desktop machine from falling asleep. One of the most popular solutions is Amphetamine, which is free in the App Store. This is how to use it:

  1. Install Amphetamine and run it. Click Next to get through all the intro information.
  2. Click the Amphetamine icon in your menu bar, and select an option. For example, you can prevent sleep only when a particular app is running.
Download Amphetamine from the Mac App Store. Run it, then check out the intro information to learn how it works.
Step 1. Start up Amphetamine
When Amphetamine is running on your Mac, you can access it at any time from your menu bar. Click the icon and choose when your Mac should stay awake.
Step 2. Access Amphetamine from the menu bar

Should you disable sleep mode on your Mac?

Most of the time, you should leave sleep mode on. It serves an important purpose, protecting your Mac and reducing unnecessary energy waste. But temporarily turning off your Mac’s sleep mode is fine. And it’s not a bad idea to tweak your Energy Saver settings either, to configure sleep mode how you want it.  

Don’t forget to restart or shut down your Mac

While it's okay to use sleep mode, it’s also a good idea to restart your Mac regularly. Otherwise, your Mac can get clogged up and slow down. When you’re troubleshooting performance issues on your Mac, restarting it is often one of the best answers. Should you shut down your MacBook every night? It’s not necessary, but it doesn’t hurt.

 

If you’re going to be using your Mac a lot without restarting it or shutting it down, MacKeeper’s Memory Cleaner can help. The more you use your Mac without a reboot, the more its memory can get occupied by background processes. In just a couple of clicks, Memory Cleaner will shut down any unneeded processes, giving you back some much-needed RAM. 

Get Robust App

Price starts at $10.95/month

Use your Mac to the fullest! Sign up and get:
Effective tips on how to fix Mac issues
Reliable advice on how to stay safe online
Mac-world news and updates

Thank you!

You’ll love exploring your Mac with us.

Oops, something went wrong.

Try again or reload a page.

Here’s another sign you need to upgrade your macOS ASAP:

30% off your MacKeeper subscription

Сopy the code now and use it in the MacKeeper checkout after the upgrade.

Copy Code

Please be aware that this code cannot be combined with any other discounts, offers, or promotions.

Contents

Unlocked

Optimize your Mac performance and clean it up in a few clicks.

Learn More
PC

MacKeeper - your all-in-one solution for more space and maximum security.

Try Now

Read more

How to Restart MacBook
How to Restart MacBook
How to Factory Reset MacBook
How to Factory Reset MacBook
arrow

Run Application

step_1

Click Continue

step_2

Click Install

step_1

Your macOS version is lower than OS 10.11. We’d like to offer you MacKeeper 4 to solve the cleaning, privacy, and security issues of your macOS.