Not only do humans have problems with sleep. A Mac that won’t go to sleep when it normally would — either when inactive for a period of time or when you close it down — is potentially a symptom of wider problems or an issue with settings that can be fixed fairly easily. Alongside a Mac not sleeping, Macs will sometimes go to sleep when least expected, which can be equally problematic. 

For those encountering these Mac sleeping problems, let’s look at a few solutions and, hopefully, get your Mac waking and sleeping when you need it working. 

Ensure the Lock Screen settings are not preventing your Mac from entering sleep mode

Check the Lock Screen settings

Quit apps with the App Nap option enabled

Make sure apps aren’t preventing sleep

Get rid of unnecessary files causing all kinds of Mac glitches

Delete system junk on your drive

Fix system-level settings glitches

Reset the NVRAM or PRAM

Disable any background items that may affect your Mac’s sleep

Scan for background apps

Why Mac won’t go to sleep

If your Mac is refusing to go to sleep mode, there are several underlying factors that may be causing it. Here are just a few:

  • Misconfigured Lock Screen settings: Lock Screen settings may have been changed, and so sleep mode was disabled
  • Network access and sharing settings: if sharing is enabled, other users may access your Mac remotely and wake up your Mac, and devices connected to your Mac (e.g., printers) may prevent it from sleep
  • Apps or processes running in the background: any active processes simply do not let your Mac enter sleep mode

How to get a Mac to sleep? 

Follow these easy steps to ensure that you get rid of all system distractions that could prevent your Mac from going to sleep mode.

1. Check the Lock Screen settings 

Start by seeing that the Lock Screen settings are appropriate for what you need:

  1. Go to the Apple () menu > System Settings.
  2. Within System Settings, go to Lock Screen.
  3. Within this is a “Turn display off on battery when inactive” option. Click the pop-up menu and adjust the settings.
  4. Likewise, adjust the settings for the “Turn display off on power adapter when inactive” option.

Now, within System Settings, go to Battery. Here, click Options and disable the “Prevent automatic sleeping on power adapter when the display is off” option. 

Using these, you can control when your Mac goes to sleep or wakes and adjust settings accordingly. You can even use the Schedule button to get it to wake and sleep on a fixed timer, such as your working hours. 

2. Make sure apps aren’t preventing sleep 

Next, check within Activity Monitor if there are any apps that could be keeping your Mac awake when it should be shut down and asleep. There is a column in Activity Monitor that can prevent it from going into sleep mode — make sure none of your apps (whether native macOS or third-party) have “Yes” ticked next to the Preventing Sleep column. 

Quit any that you would rather be asleep during periods of inactivity. 

3. Delete system junk on your drive

Over time, all your applications (and macOS itself) create tons of system junk: outdated entries, caches, and support files. Such uncontrolled expansion of system junk results in software glitches. This may also cause “sleep problems” for your computer.

Delete system junk using the eponymous tool in CleanMyMac X.

  1. Download the app’s free version.
  2. Install and run the System Junk tool — just click Scan > Clean.
  3. Check if your Mac’s sleep has been restored to normal.

As a bonus, running this program makes your Mac smoother and more responsive.

4. Reset the NVRAM or PRAM

Another solution is to try and reset the NVRAM or PRAM after following the steps outlined above. 

  1. Turn your Mac off (shut it down the safe way, closing apps beforehand).  
  2. Turn it back on, immediately pressing the Option, Command, P, and R keys for 20 seconds. 
  3. Now, it should start up as it would normally. Leave it for long enough that it goes to sleep (a period of inactivity) to make sure the sleep mode is working as it should. 

This command will only work with Intel-based Macs. The chip inside Macs with Apple silicon automatically detects and handles problems whenever you shut down your computer, so a simple restart might help.

5. Scan for background apps 

Some apps stay running and, therefore, prevent your Mac from going to sleep. These could be forgotten login items or even malware that keeps an app running in the background, stopping a Mac from going to sleep. 

To solve this particular problem, we recommend the following approach: 

  1. Download CleanMyMac X — it’s available for free download.
  2. Click the Optimization tab > Launch Agents.
CleanMyMac X - Launch Agents

Disable any agents you don’t need or ones that aren’t working as they should.

CleanMyMac X is a handy Mac maintenance app. It comes with a whole load of troubleshooting tools, even when you don’t know the source of the problem. It can also scan your system for malware and any other issues causing your Mac to stay awake. 

Hope this article was helpful. Come back for more Mac tips.