Introduction
Nothing is more frustrating than your MacBook going to sleep while you are downloading files, watching Netflix, giving a presentation, running scripts, or working remotely. Many users ask questions like “how do I stop my MacBook from sleeping” or “how to stop Mac from sleeping when inactive” because macOS automatically puts devices into sleep mode to save battery and energy.

While sleep mode is useful for extending battery life, there are many situations where you need your MacBook to stay awake continuously. IT professionals, developers, students, and business users often require uninterrupted operation for long-running tasks, streaming, or external monitor setups.
This guide explains several safe and effective ways to stop your MacBook from sleeping on modern macOS versions, including macOS Monterey and newer releases.
Quick Answer (Featured Snippet)
To stop your MacBook from sleeping:
- Open System Settings or System Preferences
- Go to Battery or Energy Saver
- Adjust the Turn display off after slider to Never
- Enable options like:
- “Prevent automatic sleeping when the display is off”
- “Wake for network access”
- You can also use Terminal commands like:
caffeinate
This keeps your Mac awake until you stop the command.
Table of Contents
- Why MacBooks Sleep Automatically
- How Do I Stop My MacBook From Sleeping
- How to Stop MacBook From Sleeping When Inactive
- How to Stop MacBook From Sleeping When Lid Is Closed
- How to Stop MacBook From Sleeping When Watching Video
- How to Stop MacBook From Sleeping When Watching Netflix
- How to Stop MacBook From Sleeping Terminal Method
- How to Stop MacBook From Sleeping Monterey
- Common Errors and Fixes
- Best Practices and Pro Tips
- FAQs
- Conclusion
Why MacBooks Sleep Automatically
Apple designs MacBooks to enter sleep mode automatically for several reasons:
- Reduce battery usage
- Prevent overheating
- Extend hardware lifespan
- Improve energy efficiency
- Protect the display from burn-in
When your Mac becomes inactive, macOS lowers power consumption by turning off the display and pausing certain background tasks.
However, automatic sleep can interrupt:
- Software installations
- Video playback
- Remote desktop sessions
- File downloads
- Network backups
- Presentations
- Coding and development tasks
How Do I Stop My MacBook From Sleeping
The easiest way is through macOS system settings.
Step-by-Step Instructions
On macOS Ventura, Sonoma, and Newer
- Click the Apple menu
- Open System Settings
- Select Lock Screen
- Change:
- “Turn display off on battery when inactive”
- “Turn display off on power adapter when inactive”
Set them to a longer duration or “Never” if available.
Then:
- Go to Battery
- Click Options
- Enable:
- “Prevent automatic sleeping on power adapter when the display is off”
On Older macOS Versions
- Open System Preferences
- Click Energy Saver
- Move the sleep slider to Never
This prevents automatic system sleep.
How to Stop MacBook From Sleeping When Inactive
If your Mac sleeps during inactivity, adjust inactivity timers.
Best Method
Go to:
System Settings → Lock Screen
Increase inactivity time for:
- Battery mode
- Power adapter mode
Recommended settings:
| Usage Type | Recommended Time |
|---|---|
| Office Work | 30 minutes |
| Streaming | Never |
| Downloads | Never |
| Coding | 1–2 hours |
For IT professionals running automation scripts or servers locally, using “Never” while connected to power is usually the best option.
How to Stop MacBook From Sleeping When Lid Is Closed
Many users want to keep their MacBook active while the lid is closed.
Important Note
By default, closing the MacBook lid triggers sleep mode automatically.
Use Clamshell Mode
Apple allows closed-lid operation when:
- External monitor is connected
- Power adapter is connected
- External keyboard or mouse is connected
Steps
- Connect external monitor
- Plug in charger
- Connect keyboard/mouse
- Close the lid
Your MacBook will continue running on the external display.
Alternative Third-Party Apps
Some users install utilities like:
- Amphetamine
- KeepingYouAwake
These apps prevent sleep even with the lid closed, but use them carefully to avoid overheating.
How to Stop MacBook From Sleeping When Watching Video
Normally, apps like YouTube or media players temporarily prevent sleep. However, this does not always work.
Solution 1: Adjust Display Settings
Increase display timeout duration:
- System Settings → Lock Screen
Solution 2: Use Caffeinate Command
Open Terminal and run:
caffeinate
This keeps the Mac awake while watching videos.
Press:
Control + C
to stop the command.
How to Stop MacBook From Sleeping When Watching Netflix
Netflix users often notice the MacBook sleeping during long shows or inactivity.
Recommended Fixes
Use Full-Screen Mode
Netflix in full-screen mode usually prevents display sleep automatically.
Disable Display Sleep Temporarily
Before watching:
- Open System Settings
- Increase display timeout
Use Terminal
Run:
caffeinate -d
The -d flag prevents display sleep specifically.
This method works especially well for:
- Netflix
- Hulu
- Disney+
- YouTube
- VLC
How to Stop MacBook From Sleeping Terminal Method
Advanced users often prefer Terminal commands because they are fast and temporary.
Basic Command
caffeinate
This prevents system sleep.
Prevent Display Sleep Only
caffeinate -d
Prevent Sleep for Specific Time
Example: keep awake for 1 hour
caffeinate -t 3600
The number represents seconds.
Prevent Sleep While Process Runs
Example:
caffeinate -i npm run build
Useful for developers and IT administrators.
How to Stop MacBook From Sleeping Monterey
macOS Monterey uses slightly different menus compared to newer versions.
Steps for Monterey
- Open System Preferences
- Select Battery
- Click Power Adapter
- Enable:
- “Prevent your Mac from automatically sleeping when the display is off”
Then:
- Increase display sleep timer
Monterey users can also use Terminal-based solutions successfully.
How to Stop MacBook From Sleeping When Watching Something
If your MacBook sleeps while streaming, gaming, or reading documents, try these fixes:
Recommended Settings
- Increase display timeout
- Use full-screen mode
- Disable screen saver temporarily
- Connect charger
- Use
caffeinate
Some browsers handle video playback differently. Safari usually integrates better with macOS sleep prevention than some Chromium-based browsers.
Common Errors and Fixes
Mac Still Sleeps After Changing Settings
Fix
Restart your Mac after modifying power settings.
Display Turns Off But System Stays Awake
This is normal behavior. Display sleep and system sleep are separate settings.
Battery Drains Quickly
Preventing sleep increases battery usage significantly.
Fix
Use sleep prevention mainly while connected to power.
Terminal Command Stops Working
Fix
Keep the Terminal window open while using caffeinate.
External Monitor Disconnects
Some monitors trigger sleep incorrectly.
Fix
Update:
- macOS
- Monitor firmware
- Display adapters
Best Practices / Pro Tips
Use Sleep Prevention Only When Necessary
Keeping a Mac awake constantly may:
- Increase heat
- Reduce battery lifespan
- Consume more electricity
Use Scheduled Sleep
Instead of disabling sleep permanently:
- Use temporary commands
- Create automation routines
Monitor Temperature
If using closed-lid mode:
- Ensure proper ventilation
- Avoid placing MacBook on soft surfaces
Use Official Settings First
Built-in macOS controls are safer than third-party utilities.
Keep macOS Updated
Apple regularly improves sleep management and power efficiency.
Related Guides
You may also find these helpful:
- How to Connect Wired Headphones to MacBook
- How to Check Disk Space on Mac
- How to Set Up Google Authenticator on New Phone
FAQs
1. How do I stop my MacBook from sleeping completely?
Go to System Settings → Battery → Options and enable “Prevent automatic sleeping when the display is off.”
2. Can I stop my MacBook from sleeping when the lid is closed?
Yes. Use an external monitor, keyboard, and power adapter with clamshell mode.
3. What is the Terminal command to stop Mac sleep?
Use:
caffeinate
4. Why does my MacBook sleep while watching Netflix?
This may happen due to inactivity settings or browser behavior. Use full-screen mode or the caffeinate -d command.
5. Does preventing sleep damage a MacBook?
Occasional use is safe, but keeping the device awake constantly may increase heat and battery wear over time.
Conclusion
Learning how to stop MacBook from sleeping can improve productivity, especially during streaming, downloads, presentations, development work, and remote access sessions.
macOS offers several reliable ways to prevent sleep, including built-in settings, clamshell mode, and powerful Terminal commands like caffeinate. Whether you are using macOS Monterey or the latest version, the safest approach is to temporarily disable sleep only when necessary.
For most users, adjusting battery and display settings is enough. Advanced users and IT professionals can use Terminal commands for more precise control.
By following the methods in this guide, you can keep your MacBook awake exactly when you need it—without unnecessary interruptions.