keepscreenunlocked.

Linux

Keep your screen on in Linux.

Two ways to do it: a browser tab when you cannot or do not want to change settings, and the system-level options when you can.

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

The quick way: a browser tab

Press Start above. It uses the browser Screen Wake Lock API, which Chrome, Edge and Firefox (126 and later) support on Linux, so no install and no root are needed. It holds only while the tab stays open and visible.

How well this is honored depends on your desktop environment and how it handles inhibit requests. If the screen still blanks, see why screens go black and check the system settings below.

System settings

GNOME: Settings → Power → Screen Blank, and Settings → Privacy → Screen Lock for the lock delay. Set the blank delay to Never.

KDE Plasma: System Settings → Power Management → Energy Saving (screen energy saving), and Workspace Behavior → Screen Locking for the lock delay.

Setting these to never changes them for everything, all the time, which is why a per-task approach is often better.

From the command line

systemd-inhibit runs a command and blocks idle or sleep while it runs, for example systemd-inhibit --what=idle:sleep sleep 3600 holds the system awake for an hour. This is the closest equivalent to the macOS caffeinate command, and it can block system sleep, not just the screen.

On X11, xset s off -dpms disables the screensaver and display power saving for the session. It does not apply under Wayland.

These options are the right ones for long unattended jobs, because a browser tab cannot stop the machine itself from sleeping.