The direct fix is to change the power and sleep settings so the computer never turns off its display or goes into sleep on its own. On Windows that lives in Settings > System > Power & battery (or Power & sleep) and on a Mac in System Settings > Lock Screen and Energy Saver. Setting "Never" for both the screen and sleep timers keeps the machine awake while it is plugged in and idle.

The condition that matters most is whether the change is permanent or just for one session. A fixed setting suits a desktop that should stay on all day. For a single download or a long call, a temporary wake lock is kinder and safer.

What the Sleep Timers Actually Control

Two separate timers decide when a machine stops responding. The screen-off timer darkens the display but leaves the computer running, so downloads and calls continue. The sleep timer is the one that pauses work and can drop a network connection or an online meeting.

Turn off the screen timer if the monitor going dark bothers you during a reading or a video. Turn off the sleep timer if a background task must keep running. You can set them to different values, so the screen darkens after a few minutes while the computer itself never sleeps.

Laptops add a third factor: whether the lid is open. Closing the lid usually triggers sleep regardless of the timer. Keeping a laptop awake while shut means asking it not to sleep on lid close, which is a separate option in the same power menu.

Change the Setting on Windows in Four Steps

The exact menu labels differ between versions of Windows, so read the wording on screen rather than relying on one path. The flow below is the common one.

  1. Open Settings from the Start menu and choose System, then Power & battery (called Power & sleep on some versions).
  2. Find Screen and sleep. Set both When plugged in, turn off my screen after and When plugged in, put my device to sleep after to Never.
  3. Repeat for the battery row only if you want the same behaviour unplugged. Leaving the battery row short protects the charge on a laptop.
  4. Open Additional power settings, select Choose what closing the lid does, and set the plugged-in action to Do nothing if the laptop must keep working with the lid shut.

Older machines reach the same controls through Control Panel > Power Options. On a managed work computer the menu may be greyed out, which means the organisation controls the setting.

Change the Setting on a Mac in Three Steps

Macs split the same idea across two panes. The display sleep control lives under Lock Screen, and it also decides when the screen saver appears.

  1. Open System Settings and go to Lock Screen. Set Turn display off on power adapter when inactive to Never.
  2. Open the Energy Saver or Battery pane. Enable Prevent automatic sleeping on power adapter when the display is off so downloads continue once the screen darkens.
  3. If the machine should stay awake for a few hours only, open Terminal and run caffeinate -t 7200, which holds the Mac awake for 7,200 seconds, or 2 hours, then stops.

The equivalent on Windows for one-off needs is the power mode slider or a small utility, but the simplest reliable method is a session-length tweak you reverse afterwards.

Keep It Awake for One Task, Then Let It Sleep Again

Permanent "never sleep" settings are convenient and easy to forget. Left on a laptop, they drain a battery flat in a few hours and let a machine run hot in a closed bag. The gentler approach is to lift the timer for the length of the job.

If a large download takes about 40 minutes, set the sleep timer to 60 minutes instead of never. The extra 20 minutes covers a slow connection without leaving the machine permanently awake. For a video call that runs 1 hour, set 90 minutes. When the task ends, return the value to 15 or 20 minutes.

Media playback usually counts as activity, so a film or a presentation often keeps the screen on by itself. If it does not, a single wake lock for the length of the title solves it without changing any permanent setting.

Which Sleep Settings Suit Each Situation

The right value depends on the job, the power source, and how long the machine must stay responsive. The table below gives a starting point you can adjust.

SituationScreen offSleepWhy
Desktop left on all day15 minutesNeverScreen saves power, the machine keeps serving tasks
Laptop on battery5 minutes15 minutesProtects the charge and avoids heat in a bag
Long download, about 2 hours10 minutes2 hours, then back to 15Covers the job without a permanent change
Lid closed, still workingNot applicableSet lid action to Do nothingThe lid, not the timer, is stopping it

Match the timer to the task, not to a vague wish for a machine that never stops. A laptop that sleeps after 15 minutes on battery is behaving correctly.

A 3-Hour Backup Overnight

Say a backup needs about 3 hours and must not be interrupted. Plug the computer in first, because the timer behaves differently on battery. Set the screen-off timer to 15 minutes so the display is not lit all night, and set the sleep timer to 4 hours. That leaves 1 hour of margin over the 3-hour job.

If the connection is slow and the job could stretch, set sleep to never and check the backup log in the morning. Once the log confirms completion, return the sleep timer to 15 minutes. A simple rule to remember: set the timer to double the expected time for short jobs and to the expected time plus 1 hour for long ones, then put it back.

Also confirm the machine will not sleep because of the lid or a full battery mode. A laptop shut in a drawer will pause the backup even with the timer set to never.

Why It Still Sleeps After the Change

If the screen still goes dark or the machine still drops offline, one of a few things is overriding the setting.

  • Lid close: the lid action still sends the computer to sleep. Change the lid setting separately.
  • Managed device: a work policy can lock the power menu. The setting will be greyed out and cannot be changed locally.
  • Screen saver: a screen saver with a password can lock the machine even when sleep is off. Disable or lengthen it in the same settings area.
  • Low battery: a critical battery action can force sleep regardless of the timer. Plug in for long tasks.
  • Per-app behaviour: some apps keep the machine awake themselves, and some stop when the screen locks. Leave the screen on for the duration if the job depends on it.

Change one thing at a time and test with a short timer, for example 2 minutes, so you can watch what happens without waiting all evening.

Questions That Come Up When a Computer Won't Stay Awake

Will keeping the computer awake damage it?

A modern machine is built to run for long stretches, but good airflow matters. Keep vents clear, avoid soft surfaces and enclosed bags, and let it sleep when the work is done.

Does a dark screen mean the computer is asleep?

No. The screen going dark is a separate timer. Check whether a download or a call is still running before assuming the machine has slept.

Can a computer be woken remotely?

Some desktops support wake-on-network, but it depends on hardware and network settings. If a task must finish, keep the machine awake for that window instead of relying on a remote wake.

What if the settings will not save?

A work-managed machine or a locked policy is the usual cause. Ask whoever administers the computer to change the sleep policy.

If the computer is not sleeping when you want it to, or waking at odd hours, and the pattern lasts for more than a week or two, mention it to a doctor if it affects your own rest. For the machine itself, a short timer is the calm default.