Skip to content
ClickTray
Free tools & guides

Guide

How to Stop Your Computer From Sleeping on Windows 11

4 min read
A luminous form on the point of dimming, held open by a steady arriving light against encroaching darkness.

To stop your computer from sleeping on Windows 11 you can change the power settings permanently, or hold the machine awake temporarily and let it go back to normal afterwards. Which one you want depends entirely on whether this is a "forever" problem or a "for the next two hours" problem — and most people asking have the second one.

First: three timers, not one

Windows 11 has three separate things that can interrupt you, and they are configured in different places. Fixing the wrong one is the reason people set sleep to Never and find the screen still goes black.

  1. Screen off — the display turns off. The machine is still running.
  2. Sleep — the machine suspends.
  3. Lock — the session locks and asks for your credentials. On a work machine this is usually set by policy and cannot be overridden by anything you do locally.

Work out which one is happening before you fix anything.

The permanent fix: power settings

Settings → System → Power & battery → Screen and sleep.

You will see up to four dropdowns — screen-off and sleep, each with separate values for On battery power and When plugged in. Set the ones you care about to Never.

That is the whole permanent fix, and if this machine sits on a desk and you never want it to sleep, stop here.

Two things it does not do: it does not affect a lock policy, and it does not travel with you. On a laptop, Never on battery is a decision you will regret on a train.

The temporary fix: hold it awake, then let go

The better answer for "I need this for the next few hours" is an application that asks Windows to keep the machine awake, the way a media player does while a film is playing. Windows has a proper mechanism for exactly this, and it is what a well-behaved tool uses.

The advantages over changing settings:

  • It reverts. Stop it and the machine goes straight back to its normal behaviour. There is no setting left switched on for six months.
  • It sends no synthetic input. Your cursor does not move, nothing is typed, and nothing can interfere with what you are doing.
  • It survives a reboot no better and no worse than your intentions do, which is the right behaviour for a temporary thing.

ClickTray's Stay Awake does this with its System power blocker strategy — the default, and deliberately so. Start it before a long render, install or download; stop it afterwards.

When blocking sleep is not enough

Some things watch for input rather than for the power state. A presence indicator, a session that disconnects after a period of inactivity, an internal application with its own timeout. A power-state block does not produce an input event, so those still fire.

Two escalations, in order of how little they disturb you:

  • A keep-alive keystroke. Taps F15 or Scroll Lock — keys nothing normally binds — on an interval you set. It resets an idle timer without moving your cursor. This is the right answer for keeping a status indicator from going Away.
  • A cursor nudge. One pixel and back, on an interval. This is what a mouse jiggler does, and it is last because it moves your pointer while you are trying to use it.

Work down that list, not up it. Most problems stop at the power-state block.

Things that do not work

  • Playing a video in a background tab. Some browsers hold the screen awake this way, but it is inconsistent, it does not generate input events, and it burns battery for no reason.
  • An open document or a running program. Neither counts as activity. Windows is counting input, not intent.
  • Anything at all, against a managed lock policy. If your organisation locks the machine after ten minutes, it locks after ten minutes. No software or hardware changes that, and anything claiming otherwise is not being straight with you.

ClickTray is free, ad-free and code-signed, with no paid tier and no account. It is funded by sharing a slice of your PC's idle bandwidth when it can — and the tools are disabled while that is switched off, which is the trade, said plainly rather than buried.

The short version

Set the power settings to Never if this is a desktop that should never sleep. Use a temporary power-state block if it is a laptop, or if you only need it for an afternoon. Reach for a keystroke or a cursor nudge only when you have found something that specifically watches input — and accept that a managed lock policy wins regardless.

The tool for this — Stay Awake

Three strategies, and you pick which one. A system power-state block is the default and sends no synthetic input at all. A one-pixel cursor nudge covers idle detectors that watch the mouse rather than the power state. A harmless F15 or Scroll Lock pulse covers session timeouts that only reset on a real key event — the twenty-minute game disconnect and the status light that goes amber while you are reading. Learn more about the Stay Awake.

Windows 10/11 (x64) · Free · No account

Questions

Frequently asked questions

Keep reading

Related guides & tools

Stop holding the button down yourself

ClickTray does it from the tray, on a hotkey, with timing that varies the way a hand does — and three more tools alongside it.

Windows 10/11 (x64) · Free · No account

Runs on your PC · nothing uploaded · no click limit, no paid tier