Mac Sleep Settings Explained: What Each Option Does
What each Mac sleep setting does in System Settings, how display and system sleep differ on laptops and desktops, and how to check them with pmset -g.
ExplainerUpdated 8 min read
On this page
Mac sleep settings on current macOS (Sonoma, Sequoia and Tahoe) come down to two controls. There is no separate "computer sleep" slider anymore:
- The display-off timers in Lock Screen set how long the Mac can sit idle before the screen turns off.
- A Prevent automatic sleeping switch (in Battery ▸ Options… on a laptop, or the Energy pane on a desktop) decides whether the Mac itself sleeps once the screen is off.
The rest (network wake, disk sleep, Low Power Mode) adjusts details around those two.
Where Mac sleep settings are in System Settings
Sleep options are split across two or three panes:
- Lock Screen: when the screen saver starts, when the display turns off, and when a password is required.
- Battery (laptops): Low Power Mode, plus an Options… button with the sleep and network-wake settings.
- Energy (desktop Macs): the sleep and network-wake settings, plus restart after a power failure.
Labels and placement shift between macOS versions and Mac models. The quickest route is to open System Settings, type "sleep", "display off" or "energy" in the search field, and pick the matching result.
Older versions of macOS had a "Computer sleep" slider. That slider is gone. Its job is now done by the display-off timer plus the Prevent automatic sleeping switch.
Display sleep vs system sleep
These are two separate states, and the settings below control each one differently.
| Display sleep | System sleep | |
|---|---|---|
| What happens | The screen turns off | The Mac stops nearly all work |
| Apps, downloads, Terminal jobs | Keep running | Pause until the Mac wakes |
| Network | Stays connected | Connections usually drop (Wake for network access lets the Mac wake briefly for shared services) |
| How it wakes | Move the mouse or press a key | Press a key, click, or open the lid |
| Set by | Lock Screen display-off timers | The display-off timer plus the Prevent automatic sleeping switch |
With Prevent automatic sleeping off, the Mac goes to sleep shortly after the display turns off from inactivity. With it on, the display turns off but the Mac keeps working.
These settings only control idle sleep, meaning sleep after a period without keyboard or mouse input. Choosing Sleep from the Apple menu, pressing the power button, or closing a laptop's lid is a different kind of sleep, and none of the idle settings stop it.
The screen saver is a third, separate thing. It can run while the display is still on. It doesn't keep the Mac awake or put it to sleep.
What the Lock Screen timers control
Open System Settings and select Lock Screen (or search for "Lock Screen"). The controls are:
| Setting | Appears on | What it does |
|---|---|---|
| Start Screen Saver when inactive | All Macs | Starts the screen saver after the chosen idle time |
| Turn display off on battery when inactive | Laptops | Display-off timer while running on battery |
| Turn display off on power adapter when inactive | Laptops | Display-off timer while plugged in |
| Turn display off when inactive | Desktops | Display-off timer |
| Require password after screen saver begins or display is turned off | All Macs | How soon after the screen saver starts or the display turns off a password is needed |
How these interact:
- The display timer is effectively your sleep timer. With Prevent automatic sleeping off, a 2-minute display timer puts the whole Mac to sleep shortly after 2 idle minutes.
- Laptops have two timers. You can keep the battery timer short and the power-adapter timer longer.
- If the screen saver time is longer than the display-off time, you won't see the screen saver. The display turns off first.
- Never keeps the display lit while idle. The screen stays on all the time, and on battery that drains the battery faster.
- The password setting is about security, not sleep. It decides how quickly your Mac asks for a password after the display turns off.
What the Battery and Energy options do
On a laptop: Battery
Open System Settings ▸ Battery.
- Low Power Mode: choose when to use it (for example always, never, or only on battery). It trades some performance for lower energy use. The exact choices depend on your model.
- Options… opens the sleep-related settings:
- Prevent automatic sleeping on power adapter when the display is off: when on, a plugged-in laptop keeps running after the display turns off. It applies only on power adapter. On battery, the Mac still idle-sleeps after the display turns off.
- Wake for network access: lets the Mac wake briefly when another device on the network asks for something it shares, such as a shared folder or printer.
- Other options vary by model and macOS version.
If you can't find Options…, search System Settings for "Prevent automatic sleeping".
On a desktop: Energy
Open System Settings and search for "Energy". Typical controls:
- Prevent automatic sleeping when the display is off: the desktop version of the switch above. A desktop has no battery, so it always applies.
- Wake for network access: same as on a laptop.
- Put hard disks to sleep when possible: lets spinning hard drives stop after a period without use. It doesn't affect the Mac's own sleep.
- Start up automatically after a power failure: turns the Mac back on after it loses power.
Laptop vs desktop at a glance
| Question | Laptop | Desktop |
|---|---|---|
| Where's the "stay awake with display off" switch? | Battery ▸ Options… | Energy |
| Does that switch work on battery? | No, only on power adapter | Not applicable |
| Separate display timers per power source? | Yes | No, one timer |
| Does closing the lid sleep it? | Yes, unless it's in closed-display (clamshell) mode, connected to power and an external display | No lid |
For running a MacBook closed on an external monitor, see clamshell mode on Mac.
Check your Mac sleep settings with pmset
pmset is the built-in Terminal tool behind these panes. The read-only commands below change nothing and don't need an administrator password.
pmset -gShows the settings in use right now, for whichever power source the Mac is on.
pmset -g customShows the settings for each power source separately (Battery Power and AC Power on a laptop).
pmset -g assertionsLists the apps and processes currently preventing sleep, such as a video player or a download.
pmset -g schedShows scheduled power events, such as a sleep or shutdown set for a specific time.
What the pmset values mean
pmset key | Closest setting in System Settings | Meaning |
|---|---|---|
displaysleep | Lock Screen display-off timer | Minutes of idle time before the display turns off (0 = never) |
sleep | Tied to Prevent automatic sleeping | Minutes of idle time before system sleep (0 = never) |
disksleep | Put hard disks to sleep when possible | Minutes before spinning disks stop |
womp | Wake for network access | 1 = on, 0 = off |
lowpowermode | Low Power Mode | 1 = on, 0 = off |
autorestart | Start up automatically after a power failure | 1 = on, 0 = off |
pmset -g only shows the profile for the current power source. If a value looks wrong, compare both profiles with pmset -g custom. On a laptop, you may be reading the battery profile while expecting the power-adapter one.
Change values with pmset
Use System Settings for anything it has a control for. pmset can also write values:
sudo pmset -c displaysleep 20Sets the display-off timer to 20 minutes on power adapter (-c). Use -b for battery or -a for all power sources. To undo, run the same command with the old value, which you can read from pmset -g custom beforehand.
Current System Settings has no control for sleep or wake schedules. If pmset -g sched shows a repeating schedule you don't want, remove it in Terminal.
This removes all repeating power schedules on the Mac:
sudo pmset repeat cancelCancels every repeating power event (sleep, wake, shutdown and so on). There is no undo. To bring a schedule back, set it up again with pmset repeat.
When something other than sleep settings is in charge
Sometimes your Mac seems to ignore its sleep settings. These are the usual causes:
- An app is holding the Mac awake. Video playback, calls, screen sharing and some downloads tell macOS not to sleep.
pmset -g assertionsnames them. See Mac won't sleep for how to track them down. - A schedule puts it to sleep or shuts it down. Check
pmset -g sched. - Automatic log-out is on. It signs you out after inactivity, which can look like a sleep problem. Search System Settings for "log out" to find it.
- The lid closed. A laptop sleeps when you close the lid, whatever the idle settings say, unless it's in clamshell mode.
- It's on battery. The laptop Prevent automatic sleeping switch only works on power adapter.
If your Mac sleeps too soon, start with Mac keeps going to sleep.
When Mac sleep settings aren't enough
Sleep settings are fixed rules per power source. They can't say "stay awake for 2 hours," "stay awake until this download finishes," or "stay awake only when I'm docked at my desk."
If you always want a plugged-in Mac to stay awake, the built-in Prevent automatic sleeping switch is enough. You don't need an app.
For a one-off job, the built-in caffeinate command keeps the Mac awake for a set time or while a command runs, then stops. See the caffeinate command guide for flags and examples.
For timed or conditional keep-awake from the menu bar, we make Glowmoth. Its keep-awake sessions don't change your sleep settings. While it's keeping the Mac awake, it holds one macOS power assertion (the same mechanism a video player uses) and releases it when the session ends or you quit the app. That assertion comes in two kinds:
- System only: the Mac stays awake, but the display still turns off on its normal timer.
- Display on: the display stays on too. This is the default for sessions you start yourself. Turn off Keep Display On to get the system-only kind.
You can keep the Mac awake for a set time, until a clock time, while an app or download runs, or through automatic rules. Rules use conditions such as On AC Power, External Display Connected, On a Wi-Fi Network or During Hours. The Docked at Desk preset keeps the Mac awake only while it's on AC power with an external display connected. Rules keep only the system awake unless you turn on that rule's own Keep the display on switch.
Glowmoth also shows what else is keeping your Mac awake. It also points out the traps above: a scheduled sleep or shutdown, automatic log-out, and a laptop lid that will sleep the Mac. Its sessions prevent idle sleep only, so choosing Sleep from the Apple menu still sleeps the Mac.
Glowmoth is part of MacSuite; you can try it free for 7 days.
To stop sleep altogether, see how to stop your Mac from going to sleep. To keep only the screen lit, see how to keep your Mac screen on.