Table of Contents
#1. One-click solution to prevent your Mac from sleeping
#2. How to change sleep time on macOS Ventura and macOS Sonoma?
#3. How to keep MacBook from sleeping on macOS Big Sur and Monterey
#4. How to make Mac not sleep on macOS Catalina and older
#5. How to prevent Mac from going to sleep when closing the lid
macOS Ventura: keep awake when lid closed
macOS Monterey and earlier: keep awake when lid closed
#6. How to prevent Mac from sleeping with Terminal
#7. How to schedule sleep on your Mac
Bonus: How to change sleep mode on Mac
FAQ
How do I make my Mac stay awake longer?
How do I change how long my Mac screen stays on?
How to put Mac to sleep with keyboard?
How do I stop my Mac from sleeping when the display is off?
Is the turn off display the same as the sleep Mac?
Home System Tutorial MAC How to stop Mac from sleeping: 7 methods

How to stop Mac from sleeping: 7 methods

Mar 25, 2025 am 09:31 AM

How to stop Mac from sleeping: 7 methods

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.

  • If your job requires you to use a computer occasionally (e.g., periodically enter data), it takes constant clicking to wake the Mac up.
  • The computer may fall asleep while downloading or uploading a large file, and the process may fail.
  • You may miss important notifications, and so on.

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.

How to stop Mac from sleeping: 7 methods

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-tested

#1. One-click solution to prevent your Mac from sleeping

Let 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.

  1. Install Lungo.
  2. Click an icon with a cup of coffee that appears in the menu bar. Set the wake-up time you want, from 10 minutes to indefinite. Simple, isn't it?

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.

How to stop Mac from sleeping: 7 methods

#2. How to change sleep time on macOS Ventura and macOS Sonoma?

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:

  1. Click the Apple logo in the upper-left corner of the screen.
  2. Click System Settings.
  3. Scroll down the sidebar and click on Lock Screen.
  4. Find the line "Turn display off on power adapter when inactive" in the right panel and click on the drop-down next to it.
  5. Set the sleep time by selecting the desired option in the drop-down window (from 1 minute to never).
  6. Find the line "Turn display off on battery when inactive" and repeat step 5.

How to stop Mac from sleeping: 7 methods

#3. How to keep MacBook from sleeping on macOS Big Sur and Monterey

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:

  1. Click the Apple logo in the upper left corner and go to System Preferences.
  2. Click Battery.
  3. Move the slider at the top of the screen to Never.

How to stop Mac from sleeping: 7 methods

And here’s how to prevent your Mac from sleeping while running on battery power:

  1. Click the Apple logo in the upper left corner and go to System Preferences.
  2. Click Battery.
  3. Choose Power Adapter from the sidebar menu on the left.
  4. Move the slider to adjust the display off time.

How to stop Mac from sleeping: 7 methods

#4. How to make Mac not sleep on macOS Catalina and older

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.

  1. Click on the Apple icon.
  2. Choose Setting Preferences.
  3. Click Energy Saver.
  4. Move the slider at the top of the screen to Never.
  5. Check the boxes next to all the lines you see.

How to stop Mac from sleeping: 7 methods

#5. How to prevent Mac from going to sleep when closing the lid

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.

How to stop Mac from sleeping: 7 methods

Personal recommendation


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.


How to stop Mac from sleeping: 7 methods

macOS Sonoma: keep awake when lid closed

Here's how to stop your Mac from sleeping with the lid closed on macOS Sonoma:

  1. Go to the Apple menu > System Settings.
  2. Choose Battery in the sidebar.
  3. Then click Options.
  4. Enable "Prevent automatic sleeping on power adapter when the display is off".
  5. Click Done to save changes.

How to stop Mac from sleeping: 7 methods

macOS Ventura: keep awake when lid closed

Here's how to keep Mac from sleeping with the lid closed on macOS Ventura:

  1. Go to the Apple menu > System Settings.
  2. Choose Displays in the sidebar.
  3. Then click Advanced.
  4. Check "Prevent automatic sleeping when display is off".
  5. Click Done to save changes.

How to stop Mac from sleeping: 7 methods

macOS Monterey and earlier: keep awake when lid closed

Here's how to stop your Mac from sleeping with the lid closed on macOS Monterey and earlier:

  1. Click the Apple icon in the upper left corner of the screen.
  2. Choose System Preferences.
  3. Click on Energy Saver.
  4. Find the line "Prevent your Mac from automatically sleeping when the display is off," select the checkbox and confirm.

How to stop Mac from sleeping: 7 methods

Read also:

  • Show Running Apps on Mac
  • Fix macOS Could Not Be Installed on Your Computer Issue
  • How to Use System Preferences on Mac
  • Stop Finder Action on Mac

#6. How to prevent Mac from sleeping with Terminal

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.

  1. Open Terminal (type “Terminal” in the search bar in Launchpad).
  2. Enter the following command in the Terminal: caffeinate -d.
  3. If you want to keep your laptop awake for a certain amount of time, type caffeinate -t X, where X is the number of seconds.

How to stop Mac from sleeping: 7 methods

#7. How to schedule sleep on your Mac

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:

  1. Click the Apple icon > System Preferences.
  2. Click on Energy Saver.
  3. Click on Schedule.
  4. Set the necessary parameters:
  • Start or wake: on weekdays, weekends, every day, or on a specific day.
  • Sleep, restart, or shut down: on weekdays, weekends, every day, or on a specific day.

How to stop Mac from sleeping: 7 methods

In macOS Sonoma, this feature has been removed, but you can still use terminal commands to schedule startup and shutdown times.

  1. Open Terminal.
  2. Enter the command sudo pmset repeat sleep MTWRFSU 22:00:00. This will make your Mac switch to sleep mode every day at 10 PM. You can customize this command with slight changes.
  3. Press Enter.
  4. Type your admin password and press Enter.

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.

How to stop Mac from sleeping: 7 methods

Tip


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.

How to stop Mac from sleeping: 7 methods

Bonus: How to change sleep mode on Mac

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.

  1. Click on Launchpad (it's an icon with a total of nine squares of different colors on the Dock).
  2. Type "Terminal" in the search bar and open Terminal.
  3. Enter the following combination: pmset -g | grep hibernatemode and press Enter.

How to stop Mac from sleeping: 7 methods

The Terminal will show you the sleep mode for your Mac:

  • hibernatemode 0 (standard sleep)
  • hibernatemode 1 (hibernate mode for pre-2005 portable MacBooks)
  • hibernatemode 3 (safe sleep)
  • hibernatemode 25 (for post-2005 MacBooks).

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

Note


Instead 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.

  • System Settings (differ from macOS to macOS). Usually, you need to go to System Preferences > Lock Screen / Battery / Energy Saver > Battery or Power.
  • Terminal. Enter the caffeinate -d command and press Enter.
  • Lungo and OneSwitch. These apps free you from digging through the settings and are the easiest way to customize your sleep mode.

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.

FAQ

How do I make my Mac stay awake longer?

To make your Mac stay awake longer:

  1. Go to System Settings > Lock Screen.

  2. Find the line "Turn display off on power adapter when inactive" in the right panel and click on the drop-down next to it.

  3. Set the sleep time to 3 hours or Never.

  4. Find the line "Turn display off on battery when inactive" and repeat step 3.

How do I change how long my Mac screen stays on?

To change how long your Mac screen stays on, set this in System Settings > Lock Screen.

Here's what you should know:

  • By default, your Mac can stay awake for up to 3 hours before it falls asleep. You can also make it never turn off the display — there is nothing in between.
  • For more flexible customization, use third-party apps Lungo and OneSwitch. Lungo keeps your Mac awake for 1, 2, 4, 8, or 12 hours, or indefinitely. One Switch lets you keep your Mac awake for 5 minutes, 30 minutes, 1 hour, 2 hours, 5 hours, or 8 hours. With One Switch, your Mac can stay awake even when its lid is closed.

How to put Mac to sleep with keyboard?

To put Mac to sleep with the keyboard, press Option Command power button.

How do I stop my Mac from sleeping when the display is off?

To stop your Mac from sleeping when the display is off:

  1. Go to System Settings > Battery.

  2. Scroll down and click Options.

  3. Turn on Prevent automatic sleeping on power adapter when the display is off.

Is the turn off display the same as the sleep Mac?

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!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1655
14
PHP Tutorial
1254
29
C# Tutorial
1228
24
Fix your Mac running slow after update to Sequoia Fix your Mac running slow after update to Sequoia Apr 14, 2025 am 09:30 AM

After upgrading to the latest macOS, does the Mac run slower? Don't worry, you are not alone! This article will share my experience in solving slow Mac running problems after upgrading to macOS Sequoia. After the upgrade, I can’t wait to experience new features such as recording and transcription of voice notes and improved trail map planning capabilities. But after installation, my Mac started running slowly. Causes and solutions for slow Mac running after macOS update Here is my summary of my experience, I hope it can help you solve the problem of slow Mac running after macOS Sequoia update: Cause of the problem Solution Performance issues Using Novabe

How to get rid of 'Your screen is being observed' error How to get rid of 'Your screen is being observed' error Apr 05, 2025 am 10:19 AM

When you see the message "Your screen is being monitored", the first thing you think of is someone hacking into your computer. But that's not always the case. Let's try to find out if there are any issues that need you to worry about. Protect your Mac With Setapp, you don't need to worry about choosing a tool to protect your computer. You can quickly form your own suite of privacy and security software on Setapp. Free Trial Security Test What does "Your screen is being monitored" mean? There are many reasons why there is a Mac lock screen message that appears with “Your screen is being monitored”. You are sharing the screen with others You are recording the screen You are using AirPlay You are using some apps that try to access your screen Your computer is infected with evil

How to reduce WindowServer Mac CPU usage How to reduce WindowServer Mac CPU usage Apr 16, 2025 pm 12:07 PM

macOS WindowServer: Understanding High CPU Usage and Solutions Have you noticed WindowServer consuming significant CPU resources on your Mac? This process is crucial for your Mac's graphical interface, rendering everything you see on screen. High C

How to make a video into a live photo on Mac and iPhone: Detailed steps How to make a video into a live photo on Mac and iPhone: Detailed steps Apr 11, 2025 am 10:59 AM

This guide explains how to convert between Live Photos, videos, and GIFs on iPhones and Macs. Modern iPhones excel at image processing, but managing different media formats can be tricky. This tutorial provides solutions for various conversions, al

Mac Disk Utility: How to Repair Disk with First Aid? How to Recover It? Mac Disk Utility: How to Repair Disk with First Aid? How to Recover It? Apr 13, 2025 am 11:49 AM

You might need to repair your Mac disk if your computer won’t start up, apps keep freezing, you can’t open certain documents, or the performance has slowed to a halt. Luckily, Apple includes a handy tool you can use to

Is Google Chrome Not Working on Mac? Why Are Websites Not Loading? Is Google Chrome Not Working on Mac? Why Are Websites Not Loading? Apr 12, 2025 am 11:36 AM

With a market share of over 65.7%, Google Chrome is the biggest web browser in the world. You can use it if you use other operating systems like Windows and Android, but many Mac users also prefer Chrome over Safari. Mo

How to delete files on Mac How to delete files on Mac Apr 15, 2025 am 10:22 AM

Managing Mac storage: A comprehensive guide to deleting files Daily Mac usage involves installing apps, creating files, and downloading data. However, even high-end Macs have limited storage. This guide provides various methods for deleting unneces

How to show only active apps in Dock on Mac How to show only active apps in Dock on Mac Apr 09, 2025 am 11:44 AM

Mac Dockbar Optimization Guide: Show only running applications The dock bar of your Mac is the core of the system, from which you can launch Finder, Trash, recently used apps, active apps, and bookmark apps, and even add folders such as Document and Downloads. By default, the Mac dock bar will display more than a dozen Apple-owned applications. Most users will add more applications, but rarely delete any applications, resulting in the dock bar being cluttered and difficult to use effectively. This article will introduce several ways to help you organize and clean up your Mac dock bar in just a few minutes. Method 1: Manually organize the dock bar You can manually remove unused applications and keep only commonly used applications. Remove the application: Right-click on the application

See all articles