How to Stop Mac From Going to Sleep

Alicia Santos

Mac, Tutorials

Do you find it frustrating when your Mac goes to sleep just when you need it the most? Whether you’re in the middle of an important task or watching a movie, having your Mac go to sleep can be quite annoying.

But fear not! In this article, we’ll explore how to stop your Mac from going to sleep and keep it awake when you need it.

Using Energy Saver Preferences

If you want to prevent your Mac from going to sleep, one of the easiest ways is by adjusting the Energy Saver preferences. To access these preferences, follow these simple steps:

  1. Click on the Apple menu in the top-left corner of your screen.
  2. Select ‘System Preferences’.
  3. Click on ‘Energy Saver’.

Once you’re in the Energy Saver preferences, you’ll see various options that allow you to control when your Mac goes to sleep. Here’s what each option means:


The ‘Schedule’ tab allows you to set specific times for your Mac to go to sleep and wake up. If you want your Mac to stay awake all the time, make sure there are no checkmarks next to both ‘Start up or wake’ and ‘Sleep’. If there are checkmarks, simply click on them to remove them.

Battery and Power Adapter

The ‘Battery’ and ‘Power Adapter’ tabs allow you to customize what happens when your Mac is running on battery power or connected to a power source. To prevent your Mac from sleeping, drag the slider all the way towards ‘Never’. Keep in mind that this will significantly impact your battery life if using a laptop.

Using Terminal Commands

If you prefer a more advanced method, you can use Terminal commands to stop your Mac from going to sleep. Here’s how:

  1. Open the Terminal app. You can find it in the Utilities folder within the Applications folder, or by using Spotlight search (press Command + Space and type ‘Terminal’).
  2. Type the following command:
  3. sudo pmset -a sleep 0

    Note: You’ll need to enter your admin password when prompted.

  4. Press Enter.

This command sets the sleep timer to ‘0’, effectively disabling sleep mode on your Mac. If you want to revert this change, simply replace ‘0’ with ‘1’ in the command above and run it again.

Using Third-Party Apps

If you prefer a more user-friendly approach, there are several third-party apps available that allow you to control your Mac’s sleep behavior. These apps provide a graphical interface and additional features for managing power settings. Some popular options include Amphetamine, Caffeine, and InsomniaX.

No matter which method you choose, it’s important to remember that keeping your Mac awake for extended periods can drain your battery faster or cause overheating on certain models. It’s recommended to let your Mac go to sleep when not in use for prolonged periods to ensure optimal performance and battery life.

In conclusion, preventing your Mac from going to sleep is easily achievable through Energy Saver preferences or Terminal commands. By adjusting these settings or using third-party apps, you can keep your Mac awake whenever you need it. Just remember to strike a balance between convenience and battery life to ensure your Mac performs optimally.

Android - iPhone - Mac

 © 2023 UI-Transitions

Privacy Policy