The fastest way to stop your computer from sleeping

The quickest fix is to change your power settings in Windows or macOS. On Windows, open Settings, go to System > Power & battery > Screen and sleep, and set "Screen times out after" and "Sleep" to "Never". On a Mac, open System Settings, click Battery or Energy Saver, and drag the "Turn display off after" slider all the way to the right. Both take under a minute and work when ready.

If you need the computer to stay awake only while you're using it, you can also press a key or move the mouse periodically — but changing the power settings is more reliable if you want permanent control.

Key Takeaways

  • Windows users should navigate to Settings > System > Power & battery > Screen and sleep and set both timeouts to "Never".
  • Mac users can open System Settings, find Battery or Energy Saver, and move the display timeout slider to the far right.
  • You can also use keyboard shortcuts like pressing Ctrl+Alt+Delete on Windows or moving the mouse to wake a sleeping computer temporarily.
  • Some applications like media players or presentation software have built-in options to prevent sleep while they are running.
  • Changing power settings affects your entire computer, so consider switching back to automatic sleep when you no longer need it to save energy.

Where to find sleep settings on Windows

On Windows 10 and 11, the power settings live in the Settings app. Click the Start button, type "power settings" into the search box, and select "Power and battery settings". You'll land on a page with two dropdown menus: one for screen timeout and one for sleep timeout. Set both to "Never" if you want the computer to stay on indefinitely.

If you're using an older version of Windows, the path is slightly different. Go to Settings > System > Power & sleep, and you'll see the same two options. The names and layout changed between versions, but the function is identical.

After you change these settings, they take effect when ready. Your computer will no longer sleep or turn off its display on its own. You can always come back and change them again if you want to return to automatic sleep.

Where to find sleep settings on macOS

On a Mac, open System Settings (or System Preferences on older versions) and click Battery or Energy Saver in the sidebar. You'll see a slider labeled "Turn display off after" with a time range. Drag it all the way to the right to the "Never" position, or leave it at a specific number of minutes if you want the display to turn off but the computer to stay awake.

If you want to prevent the computer itself from sleeping (not just the display), look for a separate option called "Prevent automatic sleep when the display is off" and check that box. This is useful if you're downloading files or running tasks in the background.

Like Windows, these changes take effect right away. You can return to this menu anytime to restore automatic sleep.

Using keyboard shortcuts and mouse movement to keep your computer awake

If you don't want to change your power settings permanently, you can keep your computer awake by moving the mouse or pressing a key every few minutes. This works because most computers are set to sleep only after a period of inactivity — if you show activity, the timer resets.

On Windows, pressing Ctrl+Alt+Delete and then pressing Escape will wake the computer without doing anything else. On a Mac, pressing any key or moving the mouse will do the same. Neither method changes your settings; the computer will still sleep after the timeout period passes if you stop moving the mouse or pressing keys.

This approach is useful if you're watching a video or waiting for a read and don't want to dig into settings. It's less reliable for long-term use, since you have to remember to move the mouse periodically.

Preventing sleep while specific programs are running

Many applications have their own built-in option to prevent sleep. Media players like VLC and Windows Media Player often have a checkbox in their settings to "Prevent display sleep while playing". Presentation software like PowerPoint and Google Slides automatically prevent sleep while a slideshow is running, so your computer won't doze off mid-presentation.

If you're using a program that doesn't have this option, you can use third-party tools. On Windows, a free utility called "Caffeine" sits in your system tray and lets you toggle sleep prevention on and off with a single click. On Mac, "Amphetamine" does the same thing. These tools are lightweight and don't require installation.

This approach is best if you want to prevent sleep only during specific tasks, rather than changing your computer's default behavior.

Why your computer sleeps and when you might want to change it

Computers are set to sleep by default to save energy. When a computer sleeps, it uses far less power than when it's awake, which lowers your electricity bill and extends the life of your hardware. If you leave your computer on 24/7 without sleep, you'll notice higher energy costs and more wear on components like the hard drive and fan.

You might want to disable sleep if you're downloading large files, running a backup, rendering video, or hosting a server. You might also disable it temporarily if you're presenting to a group and don't want the screen to go dark mid-talk. Once you're done with the task, switching sleep back on is a good idea.

A middle ground is to set the sleep timeout to a longer period — say, 30 minutes instead of 10 — rather than turning it off entirely. This gives you time to step away without the computer sleeping too quickly, but still saves energy if you forget about it.

What happens when your computer sleeps

When a computer enters sleep mode, the display turns off, the hard drive spins down, and the processor enters a low-power state. The computer stays in memory, so when you move the mouse or press a key, it wakes up in seconds rather than minutes. This is different from shutting down, which closes all programs and requires a full restart.

Sleep mode preserves your open files and programs exactly as they were. If you had a document open, it will still be open when you wake the computer. The only downside is that if the power goes out while the computer is sleeping, you'll lose any unsaved work.

Frequently Asked Questions

Will disabling sleep mode increase my electricity bill?

Yes, noticeably. A computer running 24/7 uses roughly 10 to 20 times more power than one that sleeps after 10 minutes of inactivity. If you disable sleep, consider re-enabling it when you no longer need it, or set a longer timeout instead of "Never".

Can I set different sleep times for the display and the computer itself?

Yes. On both Windows and Mac, you can set the display to turn off after a shorter period while the computer stays awake. This is useful if you want to save power on the display but keep background tasks running.

What's the difference between sleep and hibernation?

Sleep keeps your computer in a low-power state with everything in memory. Hibernation saves everything to disk and powers off almost completely, using almost no electricity. Hibernation takes longer to wake from but uses less power. Windows offers both; Mac uses sleep by default.

Why does my computer keep waking up even though I set it to sleep?

Background programs, network activity, or a mouse or keyboard that's too sensitive can wake a sleeping computer. Check your power settings for a "Wake timers" option and disable it if you don't need scheduled wake-ups. You can also unplug wireless mice or keyboards if they're triggering accidental wakes.

Do I need to restart my computer after changing sleep settings?

No. Sleep settings take effect when ready on both Windows and Mac. You don't need to restart or log out.