keepscreenunlocked.

Troubleshooting

Why does my screen keep going black?

Short answer: if it comes back when you touch the keyboard, mouse or screen, it's the normal idle timeout, which turns the display off after the dimming stage. You can lengthen it in settings or hold it open with the tool below. If it does not come back, that's a different problem (driver, cable or hardware), covered further down.

Inactive

Pick a duration and hit start.

Duration

Stealth screen
— covers the page with black (or your own wallpaper) so it looks like nothing is open.
Fullscreen
— the same cover, edge to edge. Press Esc to leave.
Ambient sound

Starts only when you press Play. It fades out on its own, when you stop the tool, and when you enter stealth screen (unless you tick the box above).

Feedback

If it comes back on when you touch it

That's normal idle-timeout behavior — same mechanism as screen dimming, just the final stage of it (dim, then fully off, then eventually lock or sleep). Nothing's wrong; see our full breakdown of the causes (idle timeout, battery saver, adaptive brightness) and their fixes, or just use the tool above for an instant fix that doesn't touch any settings.

The usual causes, in order of likelihood

  1. Display timeout. The most common cause by far. Windows: Settings → System → Power & battery → Screen and sleep. macOS: System Settings → Lock Screen. Android: Settings → Display → Screen timeout. iPhone: Settings → Display & Brightness → Auto-Lock.
  2. Sleep timer. Different from the display timeout: the whole computer sleeps after a set time, and the screen goes black with it. If a download or script stops at the same time, it's sleep, not just the display.
  3. Battery saver or low-power mode. It shortens timeouts and dims the display aggressively, often to 30 seconds, and can prevent apps from holding the screen on.
  4. Screen saver set to black. On some desktops the "screen saver" is simply a black screen after a few minutes.
  5. Power plan or lid action. Closing a laptop lid, or a docking-station display being switched, can blank the built-in screen.
  6. Adaptive or ambient settings. Features that dim or sleep the screen based on sensors or attention detection.

How to tell a settings problem from a hardware problem

A simple test: when the screen goes black, press a key or touch the screen. If it comes back immediately, the computer is awake and it's a settings matter. If you hear fans, see a power light or the machine responds to sound or shortcuts but the display stays black, the screen or its connection may be the problem. If the whole machine is off, it was sleeping or shut down.

Two further checks help. Connect an external monitor — if it shows the desktop, the laptop's internal display or its cable is likely at fault. And try a forced restart — if the black screen is gone afterwards, a display driver or a glitch was to blame.

If it doesn't come back on — an honest answer

That's a different, harder problem — possibly a display/graphics driver issue, a failing backlight, a crashed display driver, or a hardware fault. This tool and this site are about idle-timeout software settings, not hardware diagnostics, so we're not going to pretend to have a fix for that here. Worth checking: does the screen come back after a forced restart? Does an external monitor show anything if you connect one? Those answers point toward a software vs. hardware cause, which is the useful next step — likely a search specific to your device model rather than anything generic.

Questions

Will a wake lock fix a screen that goes black randomly?
Only if the cause is the idle timeout. It won't fix a driver crash, a loose cable or a failing backlight.
Why does it go black faster on battery?
Power plans use shorter timeouts on battery to save energy, and battery saver shortens them further.
Why does it go black even though I'm reading?
Idle detection looks at input, not at whether you're looking. Reading without touching anything counts as idle.

Settings paths for the display timeout

DeviceWhere to change it
Windows 11Settings → System → Power & battery → Screen and sleep
macOSSystem Settings → Lock Screen
AndroidSettings → Display → Screen timeout
iPhoneSettings → Display & Brightness → Auto-Lock

Holding it open for one task

If you only need the screen to stay on for one job, use the tool at the top of this page: choose a duration, keep the tab visible, and it lets go when the time is up. If the machine is going to sleep and not just blanking the display, see screen lock vs. system sleep.

When it is worth getting help

  • The screen stays black but the device clearly has power (fans, lights, sounds).
  • It happens at random, not after a period of inactivity.
  • An external monitor works while the built-in display does not.
  • The problem started after an update or a drop.

Those patterns point to a driver, cable or hardware fault rather than an idle timeout, and a technician or the maker's support is the right next step.