back to top
iGBHow-toHow to stop Mac from sleeping? 4 Ways explained!

How to stop Mac from sleeping? 4 Ways explained!

You may have noticed your Mac’s screen turns off when you are not using it for a few minutes. The macOS goes to sleep when inactive to save its battery and increase power efficiency. But if you are doing any continuous task, you may not want it to sleep. Here, I will discuss how to stop Mac from sleeping.

Why should you prevent Mac from sleeping?

There might be many reasons why you need to stop Mac from sleeping. There are instances such as:

  • While running long tasks: When you download long files on a Mac, you must prevent the Mac from sleeping to finish the task without interruption.
  • Giving presentations: Imagine your Mac suddenly falls asleep while giving a presentation. Keeping the Mac screen from sleeping is always better to ensure your presentation runs smoothly.
  • Remote access: For those accessing their Mac remotely, it is essential to keep the Mac awake since if it falls asleep, you will have to set up remote access on the Mac again.
  • Streaming music or video: I get irritated when my Mac screen goes blank while watching videos. Hence, it is the best way to make it stay awake the whole time.

Now that you know the need to stop Mac from sleeping, let’s look at how you can do it.

Since keeping the Mac screen awake all the time is a system thing, let’s look at various ways you can do that. While the steps here are to make Mac never fall asleep, you can tailor the settings to your preference.

How to stop Mac from going to sleep using Battery Settings

  1. Go to System Settings.

    Click Apple logo, System Settings
  2. Go to Battery from the left pane.
  3. Click the drop-down menu next to Low Power Mode → Select Never.

    click battery, select never in low power mode in system settings
  4. Now, click Options.

    click options in battery settings
  5. Click the drop-down menu next to Wake for network access → Choose Always.

    click the drop-down beside wake for network access and select always in battery settings
  6. Toggle on Prevent automatic sleeping on power adapter when the display is off.
  7. Hit Done.

    toggle on prevent automatic sleeping on power adapter when display is off and click done in battery settings

Change Lock Screen settings to prevent Mac from sleeping

  1. Go to System SettingsLock Screen.
  2. Click the drop-down menu next to Start Screen Saver when inactive → Choose Never.
  3. Click Turn display off on battery when inactive → Choose Never.
  4. Select Turn display off on power adapter when inactive → Choose Never.

    click lock screen, select never in system settings

How to prevent Mac from sleeping using Terminal

Apart from System Settings, you can also keep your Mac awake using Terminal.

  1. Open Terminal using Spotlight search.
  2. Type caffeinate and hit the Return key.
    This will keep Mac awake until the Terminal session closes, even if you close the lid.

    type caffeinate in terminal
  3. Apart from that, you can use the following commands:
    • caffeinate -d: Prevent Mac display from sleeping
    • caffeinate -i: Prevent the system from idle sleeping
    • caffeinate -m: Prevent the disk from going idle
    • caffeinate -s: Keep Mac awake while plugged into AC power
    • caffeinate -t 1800 &: Here, 1800 is the time in seconds your Mac will stay awake.
      You can set any time of your choice.

To stop the Terminal running, hit the close button and select Terminate.

Use a third-party app to turn off Sleep mode on your Mac

Apart from the abovementioned steps, you can also use third-party apps to stop your Mac from sleeping. Of course, you can use any app of your choice, but here we are using Amphetamine.

  1. Install the application → Set up the app.
  2. Click the app icon on the Menu bar.
  3. Choose the option you want.
    Here, we are selecting Indefinitely.

    click indefinitely in menu
  4. To stop the app, hit End Current Session.

You can also consider the following apps if you are looking for apps to keep your Mac awake:

Keep your Mac awake, not you!

Now, you are not required to check occasionally if your Mac has entered sleep mode. Also, don’t forget to sleep well to stay productive 🙂

More interesting reads for you:


  • Ava

    Ava is a die-hard Apple aficionado and seasoned writer with a knack for breaking down complex tech concepts into easily digestible content. Having honed her writing and editing skills over 3 years at renowned media houses like TechBurner, Ava crafts informative and engaging articles including troubleshooting guides, product reviews, editorials at iGeeksBlog. When not typing, you can find her exploring the latest Apple releases or pondering the future of tech innovation.

    View all posts


Please enter your comment!
Please enter your name here

Related Articles