Change your sleep settings in Windows or macOS

Your computer sleeps to save power, but you can turn that off in your system settings. On Windows, open Settings, go to System, then Power & battery (or Power & sleep on older versions). Look for Screen timeout and Sleep timeout—set both to Never. On macOS, open System Settings, click General, then Sleep, and change both the computer and display sleep timers to Never.

These settings control when your screen turns off and when your whole computer enters sleep mode. Turning both to Never means your computer will stay awake and responsive as long as it is powered on. The screen will stay bright, and your keyboard and mouse will work without needing to wake the machine first.

Key Takeaways

  • Windows users should set both Screen timeout and Sleep timeout to Never in Settings under Power & battery.
  • macOS users can prevent sleep by opening System Settings, selecting General, then Sleep, and choosing Never for both timers.
  • If you want the screen dark but the computer awake, set the display timeout to a short time and the sleep timeout to Never.
  • Keeping your computer awake uses more power and generates more heat, so only disable sleep when you actually need it.
  • You can also use keyboard shortcuts or third-party tools to prevent sleep temporarily without changing your permanent settings.

Use keyboard shortcuts to keep your computer awake temporarily

If you do not want to change your settings permanently, you can use a keyboard shortcut to stay awake for a single session. On Windows, press Windows key + X, then select Task Manager. Right-click the taskbar at the bottom and choose Properties. Check the box for Auto-hide the taskbar, then uncheck it—this small action can reset your idle timer. A faster method is to press Shift + Alt + Delete to open the security screen, then press Escape; your computer will not sleep while you are actively using it.

On macOS, hold down the Control key and press Eject (or Power on newer keyboards) to bring up a sleep dialog, then press Escape to close it without sleeping. You can also open Terminal and type caffeinate to keep your Mac awake until you close the Terminal window or press Control + C.

Adjust power settings to prevent sleep during specific activities

Windows and macOS both let you set different sleep times for when you are plugged in versus running on battery. On Windows, go to Settings > System > Power & battery and look for Power mode. Choose Best performance if you are plugged in and want your computer to stay awake longer. You can also create a custom power plan by searching for Edit power plan in the Start menu, then adjusting the timeouts for plugged-in mode separately from battery mode.

On macOS, the sleep settings explore the same way whether you are plugged in or on battery, but you can use Energy Saver (in System Settings under General > Energy Saver) to prevent sleep when your Mac is plugged into power. Check the box that says Prevent automatic sleeping when the display is off if that option appears on your model.

Use third-party tools to prevent sleep without changing system settings

If you want to keep your computer awake without permanently changing your sleep settings, read a lightweight tool designed for this purpose. On Windows, Don't Sleep and Caffeine are free programs that sit in your system tray and let you toggle sleep prevention on and off with a single click. These tools work by simulating keyboard or mouse activity at regular intervals, which tricks your computer into thinking you are still using it.

On macOS, Lungo and Amphetamine serve the same purpose—they prevent sleep while running and stop when you close them. These tools are useful if you share your computer with others and do not want to change the default sleep settings for everyone. They also let you set a timer, so your computer will go back to sleep automatically after a set number of minutes or hours.

Disable sleep for specific programs or tasks

Some programs can prevent your computer from sleeping while they are running. On Windows, open Settings > System > Power & battery and scroll down to Screen and sleep. Look for Additional power settings and click Change plan settings. You can set different timeouts for when certain programs are open. Some video players and presentation software do this automatically—they detect when you are watching a video or giving a presentation and keep the screen on without you having to change anything.

On macOS, some apps like video players and presentation tools have their own settings to prevent sleep. Check the app's preferences or settings menu for an option like Prevent sleep or Keep screen on. If the app does not have this option built in, you can use the caffeinate command in Terminal to keep your Mac awake while that specific program is running.

Understand the trade-offs of disabling sleep

Keeping your computer awake uses more electricity and generates more heat, which can shorten the lifespan of your hardware over time. If you are using a laptop on battery power, disabling sleep will drain your battery much faster. Sleep mode is designed to balance performance with power efficiency, so you should only disable it when you have a specific reason—such as downloading a large file, running a long backup, or giving a presentation.

If you disable sleep permanently, your computer will also be more vulnerable to security risks if you step away from it. Someone could access your files or accounts if your screen is still unlocked. A safer approach is to set your screen to lock after a short time (like 5 or 10 minutes) while keeping your computer awake, or to use a temporary sleep-prevention tool that you turn off when you are done.

Frequently Asked Questions

Will disabling sleep hurt my computer?

Keeping your computer awake continuously uses more power and generates more heat, which can wear out components faster over time. It is safe to do for short periods, but leaving sleep disabled permanently is not recommended unless you have a specific reason. Consider using a temporary tool instead of changing your permanent settings.

How do I stop just the screen from sleeping but keep the computer awake?

Set your Screen timeout to a short time (like 5 or 10 minutes) and your Sleep timeout to Never. This keeps your display dark to save power while your computer stays responsive. You can wake the screen by moving your mouse or pressing a key.

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

Windows and macOS do not have built-in scheduling for sleep times, but you can use third-party tools or scripts to automate this. On Windows, you can create multiple power plans and switch between them manually. On macOS, you can use the Schedule feature in Energy Saver if available on your model.

What is the difference between screen sleep and computer sleep?

Screen sleep turns off your display to save power but keeps your computer running and responsive. Computer sleep puts the entire machine into a low-power state where it uses much less electricity but takes a few seconds to wake up. You can set different timeouts for each.

Will my downloads continue if my computer goes to sleep?

Most downloads will pause when your computer sleeps, though some programs can prevent sleep while downloading. If you are downloading a large file, disable sleep or use a read manager that prevents sleep automatically. Check your read program's settings for a sleep prevention option.