If you use a Mac and have your screen set to the “Sleep” mode, your battery may not be lasting as long as it used to. Isn't that annoying? I'm going to show you how to keep your Mac from going to sleep and save some battery life in 10 minutes.
It is very annoying when you are on your computer, you went to have a glass of water, only to come back and see that your computer went to sleep mode. This happened to all of us at some point. That's why today I'm here to show you how to keep your Mac from going to sleep.
Here I have given three methods. The first one is the most effective. The rest are some extra options that you can try.
Using Energy Saver from System Preferences
In this method you are going to use the Energy Saver menu from System Preferences:
- Click the “Apple” icon on the top left corner of your desktop.
- Hover over to “System Preferences” and click on it.
- Find the “light bulb” icon that is called “Energy Saver”. Enter this option by double-clicking on the icon.
- A window will open that will give you different “sleep” options for the computer.
- If you adjust the “Computer Sleep” bar to the “Never” point the computer will not go to sleep. But your display may still go to sleep.
- To prevent your display from going to sleep, adjust the “Display Sleep” bar to the “Never” option.
- Uncheck the option called "Put hard disks to sleep when possible". This will keep your computer awake.
- If you want, you can check or uncheck the “Wake for Ethernet network access” option. It won’t be a problem.
- When you choose the “Never” option from the bar, a warning box will pop up. Click “Ok” on the box to save your changes.
- If you wish to restore the default settings and start over, click the “Restore” button below.
- Click the “Schedule” button on the bottom corner to make a schedule for your computer to go to sleep and wake.
- Check the "Start up or wake" and "Sleep" boxes to edit the options.
- Set the days or a day and time as your wish.
If you are using a MacBook (laptop), you may find a few differences here. There will option for both battery and power adapter.
- Choose the "Battery" option to edit the sleep and wake options while you are on battery power. Do the same for the power adapter by choosing the "Power Adapter" option.
- Just like a desktop, set the bar to “Never” and you are all set.
Using the Terminal
Here I have used the terminal to keep Mac from going to sleep. To do that:
- Open the terminal for macOS.
- Now type the following command: “caffeinate -d -t 5”.
- This will keep your computer awake for 5 minutes before going to sleep.
- Change the number to 99999 or longer and your computer will not go to sleep.
Using the No-Sleep App
For this method you have to use the No-Sleep app:
- Click here to download the app.
- Install the app using standard procedure.
- Now you will find the “Zz” icon on the top. Click it.
- From the menu, choose “Enable NoSleep” to keep your Mac from going to sleep.
- If you are using a laptop, choose the preferences option from the menu.
- From the window, you can turn-on or turn-off the NoSleep option for both “Battery” and “Power Adapter”.
Summary: Keep My Mac from Going to Sleep
- Open System Preferences.
- Click on Energy Saver.
- Uncheck the "Put hard disks to sleep when possible" option.
- Uncheck the "Put display to sleep when possible" option.
- Check the "Prevent computer from sleeping automatically when the display is off and Close System Preferences.