Skip to main content

Hermes — Product Roadmap

A prioritized task list for turning the technical fork into a product. The unique advantage is the Hermes-KMS zero-copy pipeline: it is the only backend that can report real capture timing because it owns the capture path. Priority goes to high-leverage work where the infrastructure already exists.

Legend: [x] works · [~] works with a caveat named beside it · [ ] not started.

Where the work lives. Everything described in this file is committed to main and has shipped: Foundation, Tier 1 and Tier 2 in v0.5.1 and earlier, everything from "Isolation and multi-user" through "Game Mode" in v0.6.0, alongside Hermes-KMS v0.4.0. Work merged since then sits under Unreleased in the changelog. The priorities themselves are being re-evaluated in #57; this file records what exists, not the order of what comes next.

Backend status. EVDI is the default virtual-display backend and Hermes-KMS is opt-in and labeled experimental, although much of what follows — HDR10, multi-output, independent sessions, pre-login streaming, the capture metrics — exists only on Hermes-KMS. It is expected to become the default once it leaves experimental status.

What "tested" means here. Anything touching seats, accounts, polkit or DRM master is verified in a virtme-ng guest, not on a desktop — the note beside each item says which. Per-compositor capture is verified against the compositors named in the compatibility guide and nowhere else.

Foundation (already in place)​

  • Track active sessions and log client connect/disconnect (rtsp.cpp::session_count()).
  • Diagnostics endpoint exists at /api/hestia/v1/diagnostics.
  • Encoder probe tests nvenc → vaapi → software in order and logs each failure.
  • [~] Pipeline metrics instrumented (capture-metric: zero-copy ~8us vs EVDI ~180us). The numbers are from one machine; they have not been reproduced elsewhere.
  • Hermes-KMS exposes GET_METRICS ioctl (frames, waits, exports, hotplugs).
  • Record why a session ended; distinguish client drop from clean stop.

Tier 1 — high value, low friction, differentiating​

A. Real-time metrics + actionable diagnostics​

  • Expand /api/hestia/v1/diagnostics (or add /metrics) to return live:
    • real encoder in use (codec + hw/sw)
    • connected client(s) / active session count
    • real FPS (pipeline.fps)
    • real stream resolution (pipeline.width × pipeline.height)
    • dropped frames (pipeline.frames_dropped)
    • capture time / capture-to-encode latency (pipeline.capture_to_encode_ms)
    • encode time (pipeline.encode_ms)
    • real bitrate (pipeline.bitrate_kbps)
  • Source the metrics from stream/video session counters plus Hermes-KMS GET_METRICS when the backend is hermes_kms.
  • Expose the encoder fallback as a field (encoder.fell_back_to_software plus per-encoder attempts) rather than only logging it.
  • Add a streaming-readiness preflight to diagnostics.

B. Honest encoder reporting​

  • After the probe, record the real result (chosen encoder and why the others failed) in state queryable by the UI/diagnostics.
  • Emit an actionable message in the log and the diagnostics response.
  • Make the probe prove capture, not just encode. Every encoder probe encodes a synthetic frame and never touches the capture path, so a host whose capture is broken probes green and streams a black picture. This is how the two worst field reports so far presented themselves (#29, and the GBM-device bug behind it). A readiness check that captures one real frame and looks at it would have caught both before a client ever connected.

Tier 2 — high value, medium effort​

  • Reconnection / multiple clients: session-end reason recorded and exposed as awaiting_reconnect, ms_since_last_end, total_ended, client_lost_count.
  • Consistent teardown: process/audio cleanup on disconnect. Investigated in depth (see the session-teardown-architecture note): all termination paths funnel through stop()/graceful_stop() and end identically. No leak found; no code change needed. The shared nvhttp/RTSP path stays intact, preserving Moonlight/Artemis compatibility.
  • systemd: inherit the right environment (Steam/Lutris/audio/graphical session).

Isolation and multi-user​

One host giving each paired client a session of its own. This is the capability the last stretch of work went into, and it is not represented anywhere above.

Status: under re-evaluation, not recommended for use. The parts below are built and tested, but the shape of the feature is not settled and will change incompatibly. The caveats and the two unchecked items in this section are not polish - they are the reasons it cannot be recommended yet.

  • A DRM card, seat, Wayland socket and input devices per session.
  • A Unix account per paired client, created on first use by hermes-session-broker — a socket-activated root service authorized by SO_PEERCRED against a root-owned allow file. Accounts are hermes-sNN, derived from a slot and never from anything a client sent.
  • The session runs as that account, in a transient systemd unit, with the host's session bus, audio server and credentials removed from its environment.
  • A polkit rule that refuses the hermes-session group every action. Not optional: a session on a local seat counts as "active and local" to polkit, which a stock desktop hands over a hundred passwordless actions.
  • [~] An audio sink per session, so a client hears its own session and the host hears the host. True for a session that runs as the Hermes user; a session with a Unix account of its own gets an audio server Hermes cannot reach through its 0700 runtime directory, so that session still hears the host — and says so in the log.
  • [~] Remote Input is rejected while independent sessions are enabled: an input-only connection has no session of its own to attach to, so the request is refused instead of landing in somebody's desktop.
  • GET /api/sessions/list and POST /api/sessions/terminate, with a panel in the web UI — an isolated session outlives the stream that started it, so without this there was no way to see one running with nobody attached.
  • Verified end to end: scripts/session-broker-test.sh, 44 checks, all passing in a virtme-ng guest. It creates real accounts and asks systemd for real units, so it only runs there. A full desktop and simultaneous real clients have not been validated.
  • [~] The session renders in software. This is the honest state of the feature and the largest thing wrong with it. weston takes KMS nodes only, for both its display and its rendering device, and the only KMS node backed by a real GPU belongs to seat0 — which a session on a private seat cannot open. A labwc profile was written to escape that (wlroots takes the two separately) and it gets further: it opens the private-seat card and accepts the render split. It then fails every swapchain, because wlroots allocates scanout buffers on the display device's own render node, and Hermes-KMS's is capture-only with no Mesa driver behind it. Closing this needs a driver change — a render node Mesa can drive, or none at all — not anything in Hermes. The render node handed to a session compositor is now chosen the way the capture path chooses one, and a candidate must survive an allocation probe before it is believed; the wall itself is unchanged.
  • Nothing bounds what a session may consume. No cgroup limits, no quota on the account's home, no cap on concurrent sessions beyond the eight-slot pool.
  • No story for removing a client's data. Accounts are deliberately never removed implicitly, and PURGE exists, but nothing in the UI reaches it.

Hermes-KMS driver surface​

  • UAPI v13: bindings revoked before an output is disabled, per-session binding counters in diagnostics, session cards ordered by session index.
  • hermes-kms-card-broker: creates a card on a private DRM seat at runtime through configfs, so an exhausted pool is answered rather than refused.
  • A refused mode names the envelope the driver would have accepted instead of leaving EINVAL to be guessed at.
  • UAPI v14: ACQUIRE_FRAME2 returns each frame's colour state with the framebuffer, which is what HDR10 capture is built on.
  • One preferred mode. Drivers up to 0.3.2 marked two — their synthetic EDID timing and the mode the client asked for — so a compositor left to choose picked the larger; v0.4.0 advertises only the requested one. The session profiles still name the mode, which is now redundant with every driver Hermes accepts (the floor is UAPI 11, i.e. v0.4.0).
  • Driver release caught up with the host: Hermes-KMS v0.4.0 (UAPI 14, the one-preferred-mode fix, configfs card creation, HDR advertisement) shipped with Hermes 0.6.0.
  • [~] Driver main is ahead again: it grants the render node read-only access, so Chromium/Electron no longer pick it as a GPU. Hermes after 0.6.0 opens it read-only to match; 0.6.0 itself opens it read-write and is refused. The next driver release has to ship with, or after, the Hermes release that carries the read-only open.
  • Make Hermes-KMS the default backend. It is opt-in and labeled experimental today; the features that need it are listed in the README.

Capture coverage per compositor​

"Wayland" is not one case. Which protocol a compositor speaks decides whether a session is capturable at all.

  • wlroots family (Hyprland, labwc, sway) through wlr-screencopy, plus Hyprland headless outputs as virtual displays.
  • KWin and GNOME/Mutter for the host desktop via their own paths; see docs/compatibility.md for what is actually verified where.
  • Capture buffers allocated on a GPU that can produce them, and a capture that can never work now ends with the reason instead of retrying at frame rate. This was the black-screen-with-working-audio failure from #29.
  • [~] ext-image-copy-capture implemented and verified against labwc, but it does not deliver what the #29 report claimed it would: KWin 6.7.4 does not implement the protocol at all — it speaks only zkde_screencast_unstable_v1. What this backend buys is GNOME and the compositors that never spoke screencopy. Where a compositor offers both, screencopy stays the default; HERMES_WAYLAND_CAPTURE=icc forces the new one, which is how it is tested.
  • Capturing an existing KDE desktop still has no path. It needs KWin's own protocol (upstream Sunshine merged a kwingrab.cpp for exactly this) or the portal.
  • No SHM fallback for a compositor that offers only shared-memory screencopy; such a session is refused with an explanation rather than captured slowly.

Game Mode / appliance​

  • hermes-gamemode, a controller-driven console added to Steam as a non-Steam shortcut: PIN entry for a pairing client and a restart, on a machine with no desktop to open the web UI on and no keyboard to type a password into.
  • The user unit actually starts in Game Mode, where nothing activates the XDG target — before this it was reported enabled and never ran.
  • [~] Appliance mode remains a dormant flag plus a read-only readiness report (appliance in diagnostics). The activation path — autologin → Gamescope → virtual display → hermes — is still not orchestrated.
  • [~] Pairing flow: a waiting client is now noticed and answerable without a desktop (pending_pair, pin.html, the console's keypad). The flow itself is unchanged from upstream.

Tier 3 — important, higher effort / lower differentiation​

  • [~] Simplify setup flow. The Game Mode console covers the appliance case; a first-run experience on an ordinary desktop is untouched.
  • [~] Resolution / bitrate configuration. max_bitrate, fallback_mode, default_scale_factor and a per-client display_mode override all exist. What is missing is a coherent place to reason about them.
  • Web UI redesign. Panels have been added (known-issues feed, session list); nothing has been redesigned.

Tier 4 — out of immediate server-side scope / depends on user network​

  • Security / remote access.
  • NAT / external network.
  • Config migration.

Open questions this file cannot answer​

  • How much longer to build on upstream. New work lands better as owned modules than as edits to upstream Sunshine files, and the priorities above do not say where that line is. It is the most structural decision outstanding.
  • Keeping host and driver releases paired. 0.6.0 and Hermes-KMS v0.4.0 closed the gap that left the host depending on a driver nobody could install. It reopens whenever driver main changes a contract the released host relies on, as the read-only render node now does. Hermes checks the UAPI floor but not a change like that one, so until the version check proposed in #57 exists, the README's pairing table is the only thing standing between a user and an EACCES.