
Your MacBook’s sleep settings control when the display turns off, when the Mac enters sleep, and what happens when it wakes. You can adjust these settings to improve battery life or prevent interruptions without turning off your password, FileVault, or other security protections.
The safest approach is to keep Require password after screen saver begins or display is turned off enabled, use a short password-delay interval, and change only the power options you actually need.
Quick Answer
To change MacBook sleep settings:
- Open the Apple menu and choose System Settings. 2. Select Lock Screen. 3. Adjust Turn display off on battery when inactive and Turn display off on power adapter when inactive. 4. Set Require password after screen saver begins or display is turned off to Immediately or a short delay.
How MacBook Sleep Settings Affect Security
Sleep settings and login security are related, but they are not the same thing.
- Display sleep turns off the screen after inactivity.
- Mac sleep places the Mac in a low-power state.
- Screen locking prevents access until the correct password, Touch ID, or another approved authentication method is used.
- Password-after-sleep settings determine how soon authentication is required after the display turns off or the screen saver begins.
A MacBook can remain secure while sleeping. The important setting is not simply when the screen turns off; it is whether someone can continue using the Mac without authenticating.
If your MacBook contains sensitive work or personal information, avoid choosing a long delay—or Never—for Require password after screen saver begins or display is turned off.
Adjust Sleep and Display Settings in System Settings
The exact options shown can vary by Mac model, power source, and installed macOS version. The main controls are in Lock Screen, Battery, and sometimes Displays.
1. Change when the display turns off
- Open the Apple menu in the upper-left corner.
- Select System Settings.
- Click Lock Screen in the sidebar.
- Find:
– Turn display off on battery when inactive
– Turn display off on power adapter when inactive - Choose the amount of time you want for each option.
A shorter time saves battery and reduces the chance that an unattended Mac remains visible. A longer time can be useful when reading, presenting, or monitoring a long-running task.
This setting usually controls the display first. It does not always determine exactly when the entire Mac enters sleep.
2. Require a password immediately after sleep
While still in Lock Screen:
- Find Require password after screen saver begins or display is turned off.
- Open the time menu.
- Choose Immediately.
This is the strongest everyday setting because the Mac requires authentication as soon as the display turns off or the screen saver begins.
If you need a small convenience window, choose a short interval such as one minute. Avoid long delays on a portable Mac that could be left in a workplace, classroom, airport, or vehicle.
3. Set a screen saver if you want one
In System Settings > Lock Screen, you can also configure when the screen saver starts. A screen saver is not a substitute for locking the Mac, but it can provide a visual indication that the Mac is inactive.
For stronger protection:
- Use a short screen-saver start time.
- Keep Require password after screen saver begins or display is turned off set to Immediately.
- Lock the Mac manually before walking away by pressing Command-Option-Command?
The standard keyboard shortcut to lock a Mac is Control-Command-Q. You can also choose Lock Screen from the Apple menu.
Adjust Battery and Power Behavior
For additional sleep-related controls:
- Open System Settings.
- Click Battery.
- Review the available options under battery and power-adapter settings.
- Select Options if it appears.
Depending on your MacBook, you may see settings related to:
- Wake for network access
- Power Nap
- Automatic graphics switching
- Preventing automatic sleeping while the display is off
- Battery health management
- Low Power Mode
Prevent automatic sleep temporarily
Some MacBooks offer an option similar to Prevent automatic sleeping on power adapter when the display is off. This can keep background tasks running while the Mac is connected to power.
Use this setting carefully. It does not necessarily make the Mac more vulnerable if the screen still locks and requires a password, but it can:
- Use more electricity
- Generate additional heat
- Keep apps and network services active
- Leave a connected Mac running while unattended
Turn it off when you no longer need it.
Review Wake for network access
Wake for network access allows the Mac to wake or remain available for certain network-related tasks. The choices may include using the feature only on a power adapter, always, or never.
If you do not need remote access, shared services, or network maintenance while the Mac sleeps, choosing a more restrictive option can reduce unwanted wake-ups and conserve energy. This setting does not replace your login password or encryption.
Consider Power Nap
On supported Mac models, Power Nap allows some background activity while the Mac sleeps. It may help the Mac update information or perform maintenance, but it can also cause occasional activity during sleep.
If your priority is maximum battery conservation or fewer unexpected wake events, review whether Power Nap is enabled. If you depend on background updates while the Mac is asleep, you may prefer to leave it enabled.
Choose Settings for Common Situations
Everyday use
For most people, these settings provide a practical balance:
- Display off on battery: a short or moderate interval
- Display off on power adapter: a longer interval if needed
- Password requirement: Immediately
- Wake for network access: enabled only if you use it
- Automatic sleep prevention: disabled unless necessary
Working at a desk
If your MacBook is connected to power and an external display:
- Set the power-adapter display timeout to the period that fits your work.
- Keep password protection immediate.
- Enable automatic-sleep prevention only for a specific task.
- Lock the screen whenever you leave.
An external display or closed-lid setup can make it less obvious that the Mac is still active. Treat the Mac as unattended even when its built-in display is not visible.
Presentations and long-running tasks
You may need to prevent the display from turning off during a presentation, download, export, backup, or other task.
Before changing sleep behavior, save your work. Then:
- Open System Settings > Battery.
- Look for the option that prevents automatic sleeping while connected to power.
- Enable it temporarily if available.
- Disable it after the task finishes.
Do not choose a long password delay merely to keep a task running. The Mac can remain active while the screen still locks when the display turns off.
Travel and public places
Use the most restrictive practical settings:
- Set the password requirement to Immediately.
- Use a short display timeout on battery.
- Disable automatic-sleep prevention unless essential.
- Avoid leaving the MacBook unattended while it is awake.
- Close the lid or select Lock Screen before moving away.
A password protects access to the user account, but it does not prevent every type of physical attack. For sensitive data, also consider FileVault and strong account credentials.
Keep Security Features Enabled
Changing sleep behavior should not require disabling core security protections.
Keep password protection enabled
Do not set the password requirement to Never on a portable Mac. Anyone who opens the lid or wakes the display could access the current session.
Keep FileVault enabled
FileVault encrypts the startup disk so its contents are harder to access if the Mac is lost or stolen. Sleep settings do not replace disk encryption, and changing sleep timing does not require turning FileVault off.
You can review FileVault in System Settings > Privacy & Security > FileVault. If your Mac is managed by an employer or school, some options may be controlled by an administrator.
Use a strong account password and Touch ID
A short password delay is useful only if the account password is difficult to guess. If your MacBook supports Touch ID, it can make frequent authentication more convenient without removing the lock requirement.
Do not share your account password, and do not rely on automatic login for a portable computer containing private information.
Use Terminal to Check or Temporarily Control Sleep
Terminal provides additional control, but it is more advanced than System Settings. Use it only if you understand the change you are making.
Check the current power settings
- Open Applications > Utilities > Terminal.
- Enter:
pmset -g custom
This displays power-management settings for battery power and the power adapter. Look for values such as sleep, displaysleep, hibernatemode, powernap, and tcpkeepalive.
The output can differ between Mac models. Do not change values simply because they appear unfamiliar.
Temporarily prevent idle sleep
The caffeinate command can keep a Mac awake while a task runs:
caffeinate -d -i -m
This prevents the display from sleeping (-d), prevents idle system sleep (-i), and prevents the disk from idle sleeping (-m) while the command is running.
Press Control-C in Terminal to stop it and restore normal behavior. This is safer for one-time tasks than permanently changing system-wide power settings.
Keep password protection enabled. caffeinate controls idle sleep; it does not disable your login password or disk encryption.
Change a setting with pmset
For example, this command disables Power Nap while the Mac is running on battery:
sudo pmset -b powernap 0
You will be asked for an administrator password. The command changes the battery profile only.
To restore Power Nap on battery:
sudo pmset -b powernap 1
Another example changes the display-sleep timer on battery to 10 minutes:
sudo pmset -b displaysleep 10
To restore a different value, replace 10 with the number of minutes you prefer. Because pmset changes power-management behavior directly, record the original value with pmset -g custom before making changes.
Avoid changing hibernatemode unless you have a specific technical reason and a reliable recovery plan. Incorrect power-management changes can affect sleep, wake behavior, battery use, or saved memory state.
Troubleshooting MacBook Sleep Problems
The Mac wakes immediately
Disconnect USB devices, docks, external displays, and other accessories one at a time. A connected device, network activity, scheduled maintenance, or a software process can cause wake events.
Also review:
- System Settings > Battery
- Wake for network access
- Power Nap
- Any option that prevents automatic sleeping
If the behavior continues, note whether it happens only on battery or only with a power adapter. That distinction can help identify which power profile is involved. For more detailed diagnosis, see How to Fix a Mac That Sleeps or Wakes Unexpectedly.
The Mac does not sleep when the lid closes
Check for:
- A connected external display or dock
- A power adapter or accessory with unusual behavior
- A process keeping the Mac active
- Settings that prevent automatic sleep
- A damaged or obstructed lid sensor
Save your work, disconnect accessories, and test the Mac again. If it still stays awake, restart the Mac and install available macOS updates through System Settings > General > Software Update.
The display turns off, but the Mac stays warm
The display may be asleep while the Mac continues background activity. Check whether automatic sleeping is prevented, whether a task is running, or whether a network service is active.
You can use Activity Monitor to identify processes using significant CPU resources. Do not force-quit an unfamiliar process unless you understand its purpose; closing an app can cause unsaved work to be lost. If kernel_task appears to use substantial CPU, investigate the underlying heat or hardware condition rather than trying to terminate it. Learn more about the kernel_task process and MacBook performance.
The Mac asks for a password too often
If the password prompt interrupts your work, increase the display timeout rather than disabling authentication. For example, allow the display to remain on longer while keeping Require password after screen saver begins or display is turned off set to Immediately.
You can also use Touch ID for faster authentication if your MacBook supports it.
A setting is missing or cannot be changed
Some options depend on the Mac model, power source, installed macOS version, or device-management policies. A work or school administrator may enforce sleep and security settings.
If a setting is unavailable:
- Confirm whether the Mac is connected to power.
- Check System Settings > General > Device Management for management profiles.
- Install available software updates.
- Contact the administrator if the Mac is managed.
Frequently Asked Questions
Does changing the sleep timer disable MacBook security?
No. Changing when the display turns off or when the Mac sleeps does not automatically disable password protection, Touch ID, FileVault, or other security features. Security depends especially on the password requirement after the display turns off.
Should I set the password delay to Never?
No, not on a portable Mac. A long delay or Never allows someone with physical access to use your open session before authentication is required.
Does closing the MacBook lid lock it?
Closing the lid normally turns off the built-in display and places the Mac into a sleep state, but you should not rely on the lid alone when security matters.
Final Thoughts
You can customize MacBook sleep behavior without sacrificing security.