frametop

Working on Frametop

Rules for people and coding agents changing this repo. The README covers what Frametop is and how to install it; docs/reference.md covers each component, and docs/design.md records how SteamVR on the Frame behaves and why things are built the way they are. Read its notes on SteamVR before changing how the screens, the pointer, or the input relay talk to SteamVR.

Charts and models

docs/charts/ holds state charts and TLA+ models of how Frametop’s parts start, stop, hand things over and fail. When a question or change touches lifecycle, pausing for VR games, worn or away, remote displays and host input, input and the pointer, gaze, hand tracking, the desktop’s screens and panels, or another charted area, read the matching chart’s .mmd and model first. docs/charts/README.md says which group covers what, lists the rules each model checks and the open suspected bugs with their tickets, and shows how to re-run a check with frame-job.

Two ways to run the scripts

Every script works in both modes, and must keep working in both:

scripts/sync.sh                          # PC -> ~/dev/frametop on the Frame
scripts/frame.sh -C <dir> '<build cmd>'  # runs in the "dev" Fedora distrobox
scripts/frame.sh --host '<cmd>'          # runs on the SteamOS host

Trying a change on the headset

Commit it, then put the commit into the live release with scripts/fast-install. It rebuilds only the components whose sources changed since the release’s commit (in the release’s own container, so they link against what the release runs), puts the changed files and programs in place, and restarts the services running them, the Frametop desktop included. Python, QML and scripts take seconds, a rebuilt component a minute or two (the first build of hands, voice, stream or keyboard takes longer: it fetches and builds their libraries). scripts/fast-install status shows what’s on top of the release, undo puts the release back as it was, --dry-run shows what would change, and --no-restart leaves the services alone.

The headset may be in use

A Steam Frame is someone’s personal headset, and they may be wearing it while you work.

SteamOS updates

A SteamOS update replaces SteamVR, KWin, and gamescope with the rest of the OS image. When a change starts depending on something from the image (a host file, an OpenVR interface outside the bundled header, an undocumented layout or output format, a SteamVR or KWin quirk), add a check for it to scripts/update-check.py, or a retest hint for its package there. docs/design.md has the background.

The image (pack/)

pack/Containerfile builds Frametop as an OCI image; releases ship it inside Frametop.zip (get.sh --release, FrameDrop), so they install without building on the headset. pack/design.md explains why and what is open, and pack/README.md documents the specifics. Rules:

Names

User-facing names are “Frametop”, “Frametop Display Settings”, and “Frametop Input Settings”. Programs and files use the ft- / ft_ prefix (ft-screens, ft-pointer, ft-layout, the ft_pointer driver); config, units, and overlay keys use frametop. Program names must stay within 15 characters: Linux truncates process names there, and the scripts find programs with pgrep -x / pkill -x. One waiver: Full Keyboard’s programs keep upstream’s names, framekeyboard and framekeyboard-native-guard (keyboard/FRAMETOP.md).