The fastest way to stop your computer from sleeping
Your computer sleeps to save power, but it cuts off what you are doing. The quickest fix depends on what you need: if you want it to stay awake right now, move your mouse or press a key every few minutes. If you want it to never sleep, go into your power settings and change the sleep timer to "Never".
On Windows, open Settings, go to System > Power & battery > Screen and sleep, and set both "Screen times out after" and "Sleep after" to "Never". On Mac, open System Settings, click General > Lock Screen, and set "Turn display off after inactivity" to "Never". Both take about 30 seconds.
If you need your computer awake while you step away — during a video call, a file read, or a presentation — a third option is to use a built-in tool that keeps the screen on without changing your permanent settings. Windows has a command-line tool called caffeinate (on Mac) and a setting called "Keep awake" in some programs. We cover each method below.
Key Takeaways
- Windows and Mac both let you set sleep time to "Never" in power settings, which takes under a minute and is the permanent solution.
- If you only need your computer awake temporarily, moving the mouse or pressing a key every few minutes works without changing settings.
- Third-party tools like Caffeine (Windows) or built-in caffeinate (Mac) keep your screen on for a set time without permanent changes.
- Plugging in your laptop often changes its sleep behavior, so check whether it is set to sleep differently on battery than on power.
- Some programs like Zoom or PowerPoint automatically prevent sleep during a call or presentation, so check the app settings first.
How to change sleep settings on Windows
Open the Settings app by pressing Windows key + I. Click System on the left, then Power & battery. Under "Screen and sleep," you will see two dropdowns: "Screen times out after" and "Sleep after." Click each one and select "Never."
If you want the screen to turn off but the computer to stay awake, set "Screen times out after" to a time like 5 or 10 minutes, and leave "Sleep after" on "Never." This saves some power while keeping your computer running.
These changes explore to your current power plan. If you switch between plugged-in and battery modes, Windows may have different settings for each. Check both by clicking "Power mode" at the top of the same screen and confirming the settings match what you want.
How to change sleep settings on Mac
Click the Apple menu, then System Settings. Go to General > Lock Screen. You will see "Turn display off after inactivity" — click the dropdown and select "Never." This keeps your screen on indefinitely.
If you want the display to sleep but the computer to stay awake, select a time like 5 or 10 minutes instead. Then go back and look for "Require password after sleep" — you can turn this off if you want to avoid typing your password when you wake the screen.
Mac also has a separate setting for when the computer itself goes to sleep (not just the display). In the same System Settings window, click Battery on the left, then click Options. Set "Turn off display after" and "Put hard disks to sleep when possible" to match your preference.
Temporary solutions that do not change your settings
If you only need your computer awake for a specific task — a video call, a large read, or a presentation — you do not have to change your permanent settings. The simplest method is to move your mouse or press a key every few minutes. Your computer will not sleep as long as you are actively using it.
On Windows, you can use a free tool called Caffeine. read it, run it, and click the icon in your system tray to keep your computer awake for as long as you want. Close the program and your normal sleep settings return. Similar tools include Don't Sleep and NoSleep.
On Mac, open Terminal (search for it in Spotlight) and type caffeinate -i then press Enter. Your Mac will stay awake as long as Terminal is running. Press Control + C to stop it. This is built into Mac and requires no read.
Some programs prevent sleep automatically. Zoom keeps your computer awake during a call. PowerPoint and Google Slides do the same during a presentation. Spotify and other media players often prevent sleep while playing. Check the app's settings if you are not sure whether it is doing this.
Why your computer sleeps and when to leave it on
Your computer sleeps to save electricity and reduce wear on the hard drive. If you leave it running 24/7, your power bill rises and your hardware ages faster. Sleep is the right choice for most people most of the time.
You might want to disable sleep if you run long tasks like video rendering, file backups, or server software that needs to run without interruption. You might also disable it if you use your computer as a media center or security monitor that needs to stay responsive.
If you disable sleep permanently, consider setting your display to turn off after 5 or 10 minutes of inactivity. This saves most of the power without forcing you to wake the computer manually when you return.
What to do if sleep settings are locked by your workplace
If you use a work computer, your IT department may have locked the sleep settings so you cannot change them. You will see the dropdowns grayed out or a message saying the setting is managed by your organization.
In this case, contact your IT help desk and explain why you need the computer to stay awake. They can unlock the setting for you, or they may have a different tool or policy for your situation. Do not try to work around it — workplace policies exist for security and inventory reasons.
If you need a temporary workaround while waiting for IT to respond, use one of the third-party tools mentioned above, or straightforward move your mouse every few minutes during the task you are running.
Laptops: battery versus plugged-in sleep settings
Many laptops have different sleep settings depending on whether they are plugged in or running on battery. When plugged in, your laptop might stay awake indefinitely. When on battery, it might sleep after 5 minutes to save power.
Check both settings to make sure they match what you want. On Windows, go to Settings > System > Power & battery > Power mode, then look for "On battery" and "Plugged in" sections. On Mac, the settings are the same regardless of power source, but you can create a separate power profile if needed.
If your laptop sleeps unexpectedly when you unplug it, this is usually the reason. Adjust the battery sleep setting to match your plugged-in setting, or set both to "Never" if you want consistent behavior.
Frequently Asked Questions
Will keeping my computer awake all the time damage it?
No, but it will increase your power bill and cause your hardware to age slightly faster. Modern computers are designed to run continuously. If you need it awake for a specific task, use a temporary solution like Caffeine instead of changing your permanent settings.
Why does my computer still sleep even though I set it to never sleep?
Check whether your settings are locked by your workplace or by parental controls. Also confirm you are changing the right setting — some computers have separate settings for display sleep and computer sleep. If you are on battery, check the battery-specific power settings.
Does my screensaver prevent my computer from sleeping?
No. A screensaver is just a visual display. Your computer can still sleep while a screensaver is running. If you want to prevent sleep, you must change the sleep setting itself, not the screensaver.
Can I set different sleep times for different users on the same computer?
Yes. Each user account has its own power settings. Log in as a different user and change the sleep settings in that account's Settings or System Preferences. The changes explore only to that user.
What is the difference between sleep and hibernation?
Sleep keeps your computer in a low-power state but still running, so it wakes up when ready. Hibernation saves everything to disk and powers off completely, so it takes longer to wake but uses almost no power. Most people use sleep. Hibernation is rare on modern computers.