keepscreenunlocked.

Smart TV & Raspberry Pi

Keep a TV or Raspberry Pi screen on.

A browser tool works where the browser supports it. On TVs and Pis the system settings usually matter more, so here is what to try and where the limits are.

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

Smart TVs: check your TV’s own settings first

Many smart-TV browsers do not implement the Screen Wake Lock API this tool relies on, so on some TVs the tool will simply report Not supported. Support varies by brand, model and software version, so it is worth trying rather than assuming either way.

TVs also manage their own screensaver and auto power-off, usually under the picture, energy-saving or general settings (the names differ by brand). That setting, not a web page, is normally what decides whether the screen stays on, so check it first. A screen that must stay on for days is better served by a dedicated signage or casting device than by a TV’s built-in browser.

Raspberry Pi: the OS setting does the real work

Chromium on Raspberry Pi OS can use the wake lock, but a Pi used as a display (a dashboard, a photo frame, a sign) is normally controlled at the operating-system level. On Raspberry Pi OS, look in raspi-config under Display Options for the screen-blanking setting and turn it off. The exact menu differs between OS versions, so check yours.

For an unattended display, run Chromium in kiosk mode (chromium --kiosk <url> on recent Raspberry Pi OS versions) and let it start on boot. That gives you automatic recovery after a power cut, which a browser tab you opened by hand will not.

This tool is the right fit for a short, supervised run on a Pi or TV. For a permanent installation, see kiosk & signage and dashboards.

Raspberry Pi: stopping the screen blanking

A Raspberry Pi blanks its screen after a period of inactivity by default. In Raspberry Pi OS you can turn this off in the configuration tool: run sudo raspi-config and look for the screen blanking option under Display settings. On an X11 desktop, xset s off and xset -dpms disable the screen saver and display power management for the session.

The exact menu names and the right commands depend on the Raspberry Pi OS version and on whether it uses X11 or Wayland, so check the documentation for your release.

Showing a web page full screen

  • Open the page in Chromium in full screen or kiosk mode.
  • Set the page to refresh itself if the data changes.
  • Set the Pi to start the browser automatically after a reboot.
  • Use a reliable power supply, since under-voltage causes odd behaviour.

Smart TVs

Smart TVs usually have their own sleep timer and energy-saving settings, found in the system or general settings menu. If the TV turns off after a period of inactivity, look for an auto power off or eco setting. Many TVs also dim or switch to a screen saver when idle, and the setting for that is separate.

A browser keep-awake only works if the TV's browser supports the wake lock feature, and many do not. For a TV that must stay on, the TV's own settings or a small external device such as a Pi plugged into the HDMI port is the reliable route.

What to choose

GoalBest choice
A dashboard on a spare monitorA Raspberry Pi or mini PC in kiosk mode
A TV showing photos or a slideshowThe TV's own screen saver or a casting device
A short event displayA laptop running the browser tool, plugged in

See also kiosk and signage displays for the wider picture.