Settings and dependencies¶
TL;DR. Little is the owner's to set: the app's Settings page holds the appearance, the disclaimer, the
owner's SSH key, the Wi-Fi and the data folder. Everything else has a default, is recorded by the installer, or is a
developer's override in a checkout's .env. overpressure doctor lists what this computer must have for the
headset, with a fix for anything missing; overpressure tools fetches the pinned host tools. This page is the
lookup: the settings' layers, the folders, the environment variables, the dependency checks, the USB access and the
host tools.
Settings¶
Nothing about where things are is the owner's to set: each headset keeps its private files in its own folders,
its backups in backup/<codename>/ (the PICO 4's way back in backup/phoenix/stock) and its unlock files in
assets/<codename>/, so that a PICO 4 and a Quest 2 share one computer; the tools are the fetched or shipped
ones. A headset declares its folders with Settings.CODENAME; one without keeps the shared backup/ and
assets/. A release that kept its files there before moves them into its own folders, once, as overpressure
starts (Headset.settle_files, localconfig.take_over): each a rename on the same disk, nothing copied, deleted
or replaced, the records that name a moved place updated; a file that cannot move now (in use) is found where it
is. A development checkout's files stay where they are until overpressure settle, since its tests run the
command line there.
A headset's settings (overpressure/localconfig.py) come in layers, each over the one before:
| Layer | Where | Who writes it |
|---|---|---|
| The defaults | the code: fixed places, the fetched tools, pinned hashes | nobody |
| The records | out/records.json, by key (PICO4_ADB_SERIAL): the serials, a backup imported elsewhere |
the installer (ctx.set_setting), a backup's import |
| The owner's settings | settings.json: the appearance, the disclaimer on every start, the owner's own SSH key (any headset's) and where its private half is (its location only: the file is never read or copied; it reaches a headset another computer installed), the Wi-Fi the installs set up (its name; its password protected: encrypted for this user with Windows' DPAPI, elsewhere the file is its owner's alone, overpressure/keep.py) |
the app's Settings page, and the ready page's Keep this Wi-Fi |
| A developer's overrides | .env in a checkout (KEY=VALUE lines; .env.example), then the environment |
the developer, by hand |
Nothing writes a .env. A .env an earlier overpressure left in a release's or the app's folder is migrated on
the first start (localconfig.retire): its serials and other records go to the records, the SSH key to
settings.json, where its programs came from goes, and the file stays as .env.old. A checkout's .env is the
developer's and stays. The app's Settings page shows the owner's settings and the data folder (Open,
the app).
The data folder¶
The owner's data lives in the data root (two roots): the app's data folder, or a checkout's own root.
| System | The app's data folder |
|---|---|
| Windows | %LOCALAPPDATA%\overpressure-data |
| macOS | ~/Library/Application Support/overpressure |
| Linux and others | $XDG_DATA_HOME/overpressure (~/.local/share/overpressure) |
| Anywhere | the folder OVERPRESSURE_HOME names |
| In it | What |
|---|---|
settings.json |
the owner's settings |
out/ |
what overpressure records (out/records.json), the installer's state and logs (out/install/), the first setup's answer (out/carried-over.json), the app's state (out/app.json) |
backup/ |
each headset's backups, in backup/<codename>/ |
assets/ |
each headset's unlock files, in assets/<codename>/ |
cache/ |
downloads and the host tools (cache/tools) |
devices/ |
the headsets' releases |
Environment variables¶
| Variable | What it does |
|---|---|
OVERPRESSURE_DEVICE |
the headset the command line works on when --device is not given (also in .env) |
OVERPRESSURE_ACCEPT_DISCLAIMER |
1 accepts the disclaimer without asking, for unattended runs |
OVERPRESSURE_HOME |
another data root, anywhere |
OVERPRESSURE_PYTHON, OVERPRESSURE_ROOT |
another Python and overpressure folder for the app's engine |
OVERPRESSURE_APP_DEMO |
1: the installed app runs the demo, which touches no headset |
OVERPRESSURE_APP_REAL |
1: a development build of the app runs for real instead of the demo |
OVERPRESSURE_DEMO_CARRY_OVER, OVERPRESSURE_DEMO_APP_UPDATE, OVERPRESSURE_DEMO_STATE |
the demo engine's carry-over, app update and headset state (the demo) |
OVERPRESSURE_CONTAINER_ENGINE |
which of Docker or Podman runs the build container (else whichever answers first) |
OVERPRESSURE_BUILDER |
another build image, such as one built from the builder's recipe |
OVERPRESSURE_IMAGE |
set by every container run: the image, passed to the command |
OVERPRESSURE_UID, OVERPRESSURE_GID |
set by a container run: the host's user, who gets back what root created under /work |
OVERPRESSURE_GIT_DIR |
set by a container run in a git worktree: the worktree's folder, which scripts pass as --git-dir |
OVERPRESSURE_BUILD_JOBS |
a package build's parallel jobs for meson in the container, beside MAKEFLAGS and CMAKE_BUILD_PARALLEL_LEVEL (parallel jobs) |
GITHUB_ACTIONS |
true: administrator rights are not refused (GitHub's Windows runners always have them) |
A headset's own keys (PICO4_ADB_SERIAL and the like) are listed with their comments in its env.example.
Dependencies¶
lists what this computer must have for the headset, grouped by what each part is needed for, with a fix for anything missing: Python and its pinned packages, OpenSSH, the headset's USB access (on Linux the udev rules for its USB modes, on Windows their drivers) and its USB network link. The exit status is 1 while something needed is missing; optional parts (pyusb and libusb-package, truststore, brotli while the brotli command is there) and warnings do not fail it. The checks only look: they install, build and change nothing.
Each check has a role (Check.role):
| Role | What it covers | Shown by |
|---|---|---|
| the owner's | what this computer must have | overpressure doctor, the installer's computer check |
| the installer's | what the installer downloads or records itself: the host tools, the serials, the identity, the backup, the unlock files | --development |
| development's | the build container, the acceptance runner's USB link on Windows | --development |
The doctor shows the owner's and says how many it left out; --development shows every check, as Advanced
mode's Check dependencies does, and only it asks the build container, which may make Docker Desktop ask to
share a folder.
The builds' checks are the build container's (Linux-root steps), for builds on this computer: optional, never missing, since a headset can build its own system (the PICO 4's installer does, and skips them):
| Check | Fix when it is not there |
|---|---|
Docker or Podman answers (ENGINE info) |
install Docker or Podman and have it running (how it runs its containers is the owner's choice) |
| the image is pulled | overpressure container pull |
| the engine has 8 GiB of memory or more | give the engine more (Docker Desktop: Settings, Resources, Memory limit; Podman: podman machine set --memory); below it a warning: the build runs fewer jobs and takes much longer |
| the aarch64 handler (an x86-64 engine) | none: each build registers it; after a failure, overpressure container binfmt |
The image holds every Linux tool of the builds, so no tool is checked one by one.
Python packages¶
overpressure is Python 3.12+ on the standard library, with pinned packages where they spare the owner an outside tool; each is imported where it is used, with a fallback, so the tool runs without any of them:
| Package | For |
|---|---|
| brotli | the stock OTA (the brotli command does too) |
| pyusb with libusb-package | EDL devices, Windows' USB network link |
| truststore | HTTPS verified by the system's own verifier (downloads) |
USB access on Linux¶
adb, fastboot and edl-ng open the headset's USB device, which Linux lets a user open only through a udev rule.
overpressure runs nothing as root: the doctor, and with it the installer's first stage, reads the installed rules
(overpressure/usbaccess.py follows their matches, jumps and grants) for each of the headset's USB modes
(Headset.usb_modes()). When one is missing it names the distribution's Android udev rules, which grant the
logged-in user their devices, then sudo udevadm trigger:
| Distribution | Package |
|---|---|
| Arch | android-udev |
| Debian 13 | android-udev-rules |
| Ubuntu | android-sdk-platform-tools-common |
Where the package is there but lacks a mode (Ubuntu 24.04's lacks PICO OS), or no package is known, it gives the rule to add. Before adb, fastboot or EDL uses a connected headset, the installer checks the device itself and stops with the same fix, before anything is sent to it.
A mode that carries a drive (UsbMode.storage) needs one rule more: udev watches every disk and processes it
again whenever one is closed after a write, and on a drive the headset changes under it that loop can keep udev
busy for good. NetworkManager waits for udev before it sets up a link, so the headset's USB network never comes
up. The doctor checks that a rule turns that watch off (OPTIONS+="nowatch" for the mode's IDs and product
string) and gives the rule to add to /etc/udev/rules.d/70-overpressure.rules. Better still, a headset offers no
such drive (the PICO 4 offers none).
USB drivers on Windows¶
Windows needs a driver for a USB mode it has none of its own for: fastboot's and EDL's (UsbMode.driver names
the package and where to get it; adb's interface brings Microsoft's OS descriptors, which bind Windows' own
WinUSB). Without one the device is on the bus, listed with error 28, but adb, fastboot and edl-ng do not see it.
The doctor, and with it the installer's first stage, reads which driver packages are installed (each lies in
%WINDIR%\INF as oem<N>.inf and names the hardware IDs it drives, USB\VID_05C6&PID_9008 for EDL), so a
missing one is named before the headset leaves its maker's system. When a connected device has no driver
(Get-PnpDevice lists it with a status other than OK), the installer stops with the driver to install instead of
waiting for it or asking for a restart. overpressure installs no driver itself.
Host tools¶
fetches the pinned platform-tools (adb, fastboot) and edl-ng into cache/tools, each archive checked by its
SHA-256 (overpressure/tools.py). A developer's override (the environment or a
checkout's .env, settings) takes precedence, then the fetched ones, then PATH. Only this command,
the installer's first task and the look on the headset download them (the look fetches platform-tools when a
headset is on USB and there is no adb yet: a fresh computer would otherwise see a headset in its maker's system as
one that does not answer); Advanced mode has it as Fetch the host tools. Windows' USB network link needs no
tool: it uses pyusb and libusb-package.