Skip to content

0034: The TV's picture size: measured at setup, changed in Settings

Status: Accepted (owner, 2026-11-24). Proposed (owner's ask, 2026-11-18: "setup measures the encoder at 4K and suggests 4K or 1080p; a Picture size row in Settings changes it later")

Context

Setup wrote the TV's preferred mode as TV_RESOLUTION. A 4K TV then runs Gamescope at 4K, and every device that joins the TV gets that picture scaled down by our encoder, which on a modest GPU cannot keep 60 fps at that size. Changing it meant editing .env and recreating screen-tv.

Decision

Setup, when the TV's mode is above 1080p and .env has no TV_RESOLUTION yet, runs the server's selftest-encode hevc <mode> 60 5 once (pulling the server image if missing). 55 fps or more keeps the mode, anything else (or no measure) writes 1920x1080. A dry run does not measure.

Settings on the TV gets a "Picture size" row: the sizes 1080p, 1440p and 4K that the TV lists. The runner keeps the pick in settings.json (picture_size) and writes it to picture-size in the TV's run volume; the screen reads it at start, uses it if the TV offers it (else TV_RESOLUTION), and writes back tv-size and tv-modes, which the row shows. A new size restarts screen-tv: the TV goes dark a few seconds and an open app starts again. Device screens have no row: their size is their client's.

Consequences

TV_RESOLUTION becomes the default the row overrides. The measure is the encoder only; a GPU that encodes 4K but renders a game slowly is the household's call in the row. A screen image from before this has no tv-modes, so the row stays hidden until screen-tv runs the new one.

Amendment (owner, 2026-11-27): the row and its card are called "Resolution", the word people know for it.