Windows and Mac both let you change when your computer sleeps, but the steps are different

Your PC goes to sleep to save power when you are not using it. You can change when this happens — or turn it off entirely — in your system settings. On Windows, you adjust this in Power Settings. On Mac, it is in System Settings under Energy Saver. The process takes less than a minute and does not require a restart.

Most people want to stop their PC from sleeping because they are running a long task, streaming video, or using the computer as a display. You can set a specific time (like 30 minutes) or never, depending on what you need.

Key Takeaways

  • Windows users open Settings, go to System > Power & Battery > Screen and sleep, and change the "When plugged in, turn off after" dropdown to a longer time or Never.
  • Mac users open System Settings, click General > Login Items & Extensions > Energy Saver, and adjust the sleep timer or uncheck "Put display to sleep when inactive".
  • If you only want to prevent sleep for one task, you can use a keyboard shortcut or app instead of changing your default settings.
  • Leaving your PC awake all the time uses more power and can shorten the life of your display, so consider setting a longer delay instead of Never.

How to stop sleep on Windows 11 and Windows 10

Open Settings by pressing Windows key + I. Click System on the left side, then Power & Battery (Windows 11) or System (Windows 10). Look for Screen and sleep on the left menu and click it.

You will see two dropdowns: "When plugged in, turn off after" and "When on battery, turn off after". The first one controls sleep when your PC is plugged in. Change it to Never if you want your PC to stay awake indefinitely, or pick a longer time like 1 hour or 2 hours. The second dropdown is for battery power — you can leave this shorter to save battery life when unplugged.

The change takes effect when ready. Your PC will no longer sleep after the time you set (or at all, if you chose Never).

How to stop sleep on Mac

Click the Apple menu in the top left corner and select System Settings. Click General on the left sidebar, then scroll down and click Login Items & Extensions. In the left menu, find Energy Saver and click it.

You will see a slider for "Turn display off after" and another for "Put the system to sleep after". Move the display slider to Never or a longer time. If you want to prevent the entire system from sleeping (not just the display), move the system sleep slider to Never as well. Some older Mac models show these options differently — look for a checkbox that says "Prevent computer from sleeping automatically when the display is off" and check it.

Your changes save automatically. Close System Settings and your Mac will follow the new sleep schedule.

Using keyboard shortcuts to keep your PC awake temporarily

If you do not want to change your default settings, you can use a temporary workaround. On Windows, press Windows key + X, then press U, then press S to open the shutdown menu. Press Escape to close it without shutting down — this resets the sleep timer. Repeat this every few minutes if needed.

A better temporary option is to read a free app like Caffeine (for Windows) or Amphetamine (for Mac). These apps keep your PC awake for a set time without changing your system settings. You run the app, set a timer, and your PC stays awake until the timer ends. When you close the app, your normal sleep settings take over again.

This approach is useful if you are streaming a movie or running a backup and do not want to permanently change your settings.

What happens if you set sleep to Never

Setting your PC to never sleep means it will stay on and running all the time, even when you are not using it. This uses more electricity and generates more heat. Over time, constant operation can wear out your display faster, especially if it is always showing the same image.

A better approach for most people is to set a longer sleep delay — like 2 hours or 4 hours — instead of Never. This gives you time to finish long tasks without leaving your PC running 24/7. You can always wake it by moving the mouse or pressing a key.

If you need your PC to stay on all the time (for example, if it is a server or media center), set it to Never and accept the trade-off. Otherwise, a longer delay is a good middle ground.

Preventing sleep for specific programs

Some programs, like video players and presentation software, automatically prevent your PC from sleeping while they are running. If you are watching a movie or giving a presentation, the PC usually stays awake without you having to change settings.

If a program does not do this and you want to keep your PC awake only while that program is open, use a temporary app like Caffeine or Amphetamine instead of changing your system settings. This way, your PC goes back to normal sleep behavior when you close the program.

Frequently Asked Questions

Will stopping sleep drain my battery faster?

Yes. If you are on battery power, keeping your PC awake uses more power than letting it sleep. On Windows and Mac, you can set different sleep times for plugged-in and battery modes — keep the battery setting shorter to save power when unplugged.

Can I set different sleep times for different times of day?

Windows and Mac do not have built-in scheduling for sleep times. If you need your PC to sleep at certain hours and stay awake at others, you can use a third-party app or script, but the standard settings do not offer this feature.

What if my PC still goes to sleep even after I changed the settings?

Check that you changed the setting for the right power mode — plugged in or battery. Also look for a setting called "Allow the computer to sleep" or "Prevent computer from sleeping" and make sure it is set the way you want. Some programs or USB devices can also override your sleep settings.

Does turning off sleep affect my PC's lifespan?

Constant operation does wear components faster than normal use with sleep periods. Your display is most affected. If you must keep your PC awake, consider using a longer sleep delay instead of Never, or use a temporary app for one-time tasks.