How to Disable Sleep Mode on Windows, Mac, and Other Devices
Sleep mode is a useful power-saving feature — but it's not always what you want. If your computer keeps going dark during a presentation, a long download, or a remote desktop session, disabling sleep mode is a straightforward fix. The exact steps vary by operating system, device type, and user permissions, so here's a clear breakdown of how it works across common setups.
What Sleep Mode Actually Does
Sleep mode reduces power consumption by putting your display and system processes into a low-activity state after a period of inactivity. On laptops, this extends battery life. On desktops, it cuts energy use. The system saves its current state to RAM (or disk, in the case of hibernation), so you can resume quickly.
The distinction matters: sleep keeps data in RAM with minimal power draw, while hibernation writes everything to the hard drive and cuts power entirely. Disabling one doesn't necessarily disable the other — something worth keeping in mind depending on your goal.
How to Disable Sleep Mode on Windows
Windows gives you several ways to control sleep behavior, all routed through Power & Sleep settings.
Windows 11 and Windows 10
- Open Settings → System → Power & Sleep
- Under the Sleep section, set both options ("On battery power" and "When plugged in") to Never
- Adjust screen timeout separately if needed — the display can still turn off even when sleep is disabled
For more granular control, use Power Options in the Control Panel:
- Open Control Panel → Hardware and Sound → Power Options
- Click Change plan settings next to your active power plan
- Set Put the computer to sleep to Never
- Click Save changes
💡 If you're on a domain-managed or work device, these settings may be locked by group policy. An IT administrator controls them, and you may not be able to override them without elevated permissions.
Using the Command Line (Advanced)
For users comfortable with the terminal, the powercfg command offers direct control:
powercfg /change standby-timeout-ac 0 powercfg /change standby-timeout-dc 0 Setting the value to 0 disables sleep entirely. The -ac flag applies to plugged-in use; -dc applies to battery. This is especially useful for scripting or managing multiple machines.
How to Disable Sleep Mode on macOS
On a Mac, sleep settings live in Energy Saver (older macOS) or Battery preferences (macOS Ventura and later).
macOS Ventura, Sonoma, and Later
- Open System Settings → Battery
- Click Options
- Set Prevent automatic sleeping on power adapter when the display is off as needed
- Adjust Turn display off after and Put hard disks to sleep when possible separately
macOS Monterey and Earlier
- Open System Preferences → Energy Saver
- Use the slider to set Computer sleep and Display sleep to Never
- Check Prevent computer from sleeping automatically when the display is off if available
macOS also distinguishes between display sleep and system sleep — your screen can go dark while the system keeps running background tasks like Time Machine backups or file transfers. This is often the better setting for users who want to save energy without fully waking the machine every few minutes.
The terminal utility caffeinate temporarily prevents sleep without changing system settings permanently:
caffeinate -i This keeps the system awake until you stop the command, which is useful for one-off tasks like large file transfers.
How to Disable Sleep Mode on Other Devices
| Device Type | Where to Find the Setting |
|---|---|
| Chromebook | Settings → Device → Power → Sleep when lid is closed / Screen off |
| Linux (GNOME) | Settings → Power → Automatic Suspend |
| Linux (KDE) | System Settings → Power Management → Suspend Session |
| Android tablet | Settings → Display → Screen timeout (sleep disable varies by manufacturer) |
| iPad / iPhone | Settings → Display & Brightness → Auto-Lock → Never |
On Linux, behavior varies significantly by distribution and desktop environment. Some setups also require modifying systemd settings or the logind.conf file to prevent suspend on lid close or idle — worth checking if GUI settings don't hold.
Variables That Affect Which Approach Works for You
Disabling sleep mode isn't universally one-step because several factors shape what's available and what sticks:
- Device type: Laptops have battery-specific settings that desktops don't. Disabling sleep on a laptop while unplugged has real battery implications.
- OS version: macOS restructured its power settings across major releases. Windows 11 moved some options compared to Windows 10. Settings may be in different locations than older guides suggest.
- User permissions: Work-managed or school-managed devices often have sleep policies enforced at the system level. Personal accounts on shared machines may also face restrictions.
- Use case: Running a media server, keeping a remote desktop connection alive, or preventing interruptions during a presentation each calls for a slightly different approach — some users want display sleep off but system sleep on, others need the opposite.
- Third-party tools: Apps like Amphetamine (macOS) or Caffeine (Windows/macOS) offer temporary or schedule-based sleep prevention without changing system settings permanently — useful if you only need sleep disabled in certain contexts.
Why the Setting Doesn't Always Stick 🔋
Some users find that sleep settings revert after updates, or that the system sleeps anyway. Common reasons include:
- A secondary power plan being active (Windows switches plans based on plugged/unplugged state)
- Screen saver settings triggering sleep independently
- Low battery thresholds overriding manual settings on laptops
- Enterprise policy reapplying default settings after login or update
Checking which power plan is currently active in Windows, or whether Battery preferences are split between battery and power adapter on macOS, often resolves unexplained reversion.
What the right configuration actually looks like depends heavily on whether you're using a desktop or laptop, how your device is managed, and what you're trying to keep running while sleep is off.