diff --git a/README.md b/README.md
index a0ece57..72714e9 100644
--- a/README.md
+++ b/README.md
@@ -48,7 +48,7 @@
These are real window captures of summit-gui running fullscreen on the project's KDE neon X11 test machine (software OpenGL, 1920x1080), taken with import -window after keyboard input, from the release-candidate run (docs/RC_REPORT.md). The library is a demo: invented game titles with generated cover art and made-up playtime, written to disk as a Steam library so the real scanner reads it (docs/demo/make_demo_home.py). Voidrunner is real (the author's own game, added by hand with its own artwork). Stills show no animation.
> [!NOTE]
-> **Pre-alpha.** The launcher, the command-line core and live enhance on an X11 desktop were run end to end on one test machine (one GPU, one game). Wayland capture, real Steam/Heroic launches, a controller, 90/120 Hz and most packaging paths are **not tested**. The table below says which is which.
+> **Pre-alpha.** The launcher, the command-line core and live enhance were run end to end on an X11 test machine and on one KDE Plasma Wayland desktop (one game each: an XWayland one; native Wayland capture only with a test window). Other Wayland desktops, real Steam/Heroic launches, a controller, 90/120 Hz and most packaging paths are **not tested**. The table below says which is which.
## Install
@@ -66,7 +66,7 @@ What was really run: see [Status](#status) (a real install into a scratch prefix
## Status
-- **Working**: run end to end for real on the test machine during the release-candidate run (2026-11-24; KDE neon X11, RTX 3090 shared with another job, software OpenGL for the display).
+- **Working**: run end to end for real on the test machine during the release-candidate run (2026-11-24; KDE neon X11, RTX 3090 shared with another job, software OpenGL for the display), or, where the row says Wayland, on the owner's desktop (2026-11-24; Arch, KDE Plasma 6.8 Wayland, RTX 5080; [docs/WAYLAND_REPORT.md](docs/WAYLAND_REPORT.md)).
- **Tested**: checked in part (unit tests, sample files, dry runs, a build) but not run for real end to end.
- **Experimental**: written, not tested, or known to fall short. Do not rely on it.
- **Planned**: not built.
@@ -76,19 +76,19 @@ What was really run: see [Status](#status) (a real install into a scratch prefix
| Launcher window (`summit-gui`): Home, Library (grid and list), Unfiltered, a page per game, Settings | **Working** | Run fullscreen on the KDE X11 desktop; every screenshot above is that window. Software OpenGL there: **not checked on a GPU-rendered desktop or a TV**. |
| Keyboard navigation (arrows, Enter, Esc, Tab between sections) | **Working** | Driven with synthetic X key events on the desktop: Tab walked Home, Library, Unfiltered, Settings; arrows moved focus; Enter opened a game's page, toggled Enhance and pressed Play. `/`, `P` and `F11` were not pressed in this run (they were in the earlier headless and Xvfb checks). |
| Layouts (Big picture, Grid, List) and six themes | **Working** | All three layouts and five of the six themes captured live from a saved `ui.toml`; Midnight is the default one. |
-| Play from the launcher with Enhance | **Working** | Voidrunner: Enhance toggled on with the keyboard, Play pressed: the launcher ran `summit run custom:voidrunner --enhance`, the game and the engine started. Both stopped when the game was killed, and the screen mode was unchanged afterwards. |
-| Live enhance (`--enhance`): RIFE frame generation + FSR upscaling on a running game's window | **Working on X11** | The engine's picture covered the 1080p screen with the 1280x720 game window under it, the game kept the keyboard. **Slow on that machine**: output 32 to 40 fps while the game drew 52 to 58, because software OpenGL takes about 15 ms to draw a 1080p frame; delay 65 to 97 ms. Not measured on a GPU-driven display. |
+| Play from the launcher with Enhance | **Working** (X11 and KDE Wayland) | Voidrunner: Enhance toggled on with the keyboard, Play pressed: the launcher ran `summit run custom:voidrunner --enhance`, the game and the engine started. Both stopped when the game was killed, and the screen mode was unchanged afterwards. On KDE Wayland: Play on Voidrunner's page did the same (the launcher used to refuse Enhance there). If the engine can't capture (no window found, the share dialog cancelled), the game now goes on without it. |
+| Live enhance (`--enhance`): RIFE frame generation + FSR upscaling on a running game's window | **Working on X11 and KDE Wayland** | **KDE Plasma 6.8 Wayland, RTX 5080**: Voidrunner (an XWayland game) read through XWayland, the picture over it on a chosen monitor at 60 fps, FSR draw 0.06 ms, 21 to 38 ms from a frame reaching the engine to the screen; the game kept the keyboard, also in its own fullscreen mode. Native Wayland windows through the ScreenCast portal and PipeWire: run with a test window only (the share dialog once, then restored for new windows with no dialog; about 50 frames a second, CPU copy). Other Wayland desktops untested. **X11**: The engine's picture covered the 1080p screen with the 1280x720 game window under it, the game kept the keyboard. **Slow on that machine**: output 32 to 40 fps while the game drew 52 to 58, because software OpenGL takes about 15 ms to draw a 1080p frame; delay 65 to 97 ms. Not measured on a GPU-driven display. |
| In-game overlay with the Summit watermark | **Working** | Stats line (top left) and `summit - git.molberg.cloud/alex/summit` (bottom left) are on screen in the engine's window. `--no-watermark` turns the watermark off (earlier check). Not drawn into saved clips. |
-| Instant replay clips: global save key (Ctrl+Alt+R), clip lengths from Settings | **Working on X11** | Buffer 60 s, clip 30 s: Ctrl+Alt+R during play saved a 30.1 s H.264 1280x720 MP4 that ffprobe reads and ffmpeg decodes. **This run found a bug and fixed it**: the global key used to save the whole buffer (60 s) and ignore the configured clip length. Wayland global key (xdg-desktop-portal): written, not tested. |
+| Instant replay clips: global save key (Ctrl+Alt+R), clip lengths from Settings | **Working on X11 and KDE Wayland** | **KDE Wayland**: Ctrl+Alt+R through the GlobalShortcuts portal saved clips while the game had the keys (needs the installed `summit.desktop`, which gives Summit an app id; without it, an X11 key grab through XWayland works while an XWayland game has the keys, also run). **X11**: Buffer 60 s, clip 30 s: Ctrl+Alt+R during play saved a 30.1 s H.264 1280x720 MP4 that ffprobe reads and ffmpeg decodes. **This run found a bug and fixed it**: the global key used to save the whole buffer (60 s) and ignore the configured clip length. |
| `install.sh` | **Working (one machine)** / dry-run elsewhere | Real run into a scratch prefix (`SUMMIT_PREFIX`) on an Ubuntu 24.04 machine, with the checkout supplied through `SUMMIT_SRC_DIR` instead of the clone: built, copied the two binaries and the engine, made the venv; `import torch` there gave 2.11.0+cu128. **This run found a bug and fixed it**: with an NVIDIA GPU the venv got PyPI's torch 2.15+cu132 (CUDA 13.2; the test machine's driver stops at 13.0) and the cu128 step did nothing; torch is now installed from the cu128 index first. Not run on the neon test machine itself, not as a non-root user, not into `/usr/local`, and the engine on the test machine ran from its existing venv. Other distros: `--dry-run` only. |
| Steam scan (all library folders, installed or not), Steam playtime, "most played" | **Tested** | Sample libraries, including the demo one above. Not run against a real Steam install in this run. |
| Heroic (Epic, GOG) and Lutris detection | **Tested** | Sample files only. |
| A reason for every detected entry (Unfiltered); heuristic detection; Windows `.exe` outside a Wine prefix listed as Software | **Tested** | The Unfiltered screenshot shows the reasons for the demo library's Steam entries on the real window. Heuristic and `.exe` detection: unit tests and sample folders, not a real disk full of games. |
| Hours played: Steam's own for Steam games, Summit-tracked sessions for everything else | **Tested** | Unit tests and the demo library; Summit's own tracker ran with Voidrunner earlier. `state.json` is now changed under a file lock, so the launcher and `summit run` saving at once both keep their change (checked: 2 x 40 parallel `summit pin`). |
| Add a game from the launcher (Library > **+ Add a game**, or **ADD** on a folder found on disk) | **Tested** | New since the RC run: the desktop's file dialog picks the file that starts the game, a second dialog asks for its name (guessed from the folder, skipping `bin`, `x86_64` and the like), the library reloads and the game's page opens. Checked on Xvfb with a stand-in zenity, both ways in; not on a real desktop or with kdialog. |
-| `summit doctor` readiness list | **Tested** | New since the RC run: says whether the engine, its venv, torch with CUDA, the model, `ffmpeg`, `xrandr`, `xdg-open` and a file dialog are there, and what each missing one turns off. Run on the build machine (no venv there, so the torch line was not exercised for real); unit tests. |
+| `summit doctor` readiness list | **Working** (KDE Wayland) / **Tested** | Says whether the engine, its venv, torch with CUDA, the model, `ffmpeg`, `xrandr`, `xdg-open` and a file dialog are there, and what each missing one turns off. On Wayland also XWayland, the ScreenCast and GlobalShortcuts portals, `summit.desktop` for the app id, PipeWire and GStreamer's `pipewiresrc`, KWin, the monitor tool and the GPU. Run on the KDE Wayland desktop (all ok, torch 2.11+cu128 on the RTX 5080) and on the build machine; unit tests. |
| Pin to Home, custom artwork | **Working** / **Tested** | Pins from the CLI and the launcher; `summit art`. **New since the RC run**: the launcher's **Change artwork** opens the desktop's file dialog (kdialog on KDE, zenity elsewhere) and the cover and backdrop change at once: checked on Xvfb with a stand-in zenity, not on a real desktop. |
-| Display profile applied at launch (monitor, resolution, refresh) and put back | **Working on X11** | Earlier on the test machine: `summit run` switched the output from its custom mode to 1280x800 @ 74.99 Hz and back when the game exited. Not repeated in this run (the profile used had the default mode). KDE Wayland and wlroots command plans: unit tests only. GNOME Wayland: skipped with a message. |
+| Display profile applied at launch (monitor, resolution, refresh) and put back | **Working on X11 and KDE Wayland** | KDE Wayland: `summit run` switched HDMI-A-1 from 1920x1080 @ 119.98 to @ 60 Hz and back, four times, with `kscreen-doctor` picking the mode by id (that monitor has two modes named `1920x1080@120`, so the old name-based plan could restore the wrong one). X11, earlier: from a custom mode to 1280x800 @ 74.99 Hz and back. wlroots: unit tests only. GNOME Wayland: skipped with a message. |
| Per-game profile editor (Profile on a game's page) | **Working** (earlier run) | Listed the monitor's real xrandr modes; every change is written to the profile. Not opened in this run. Focus is stored only (raising the game window is not built). |
| `summit enhance clip.mp4` (RIFE on a file) | **Working** (earlier run) | 30 fps 1080p to 60 fps at 14 ms per generated frame on the RTX 3090. |
| Game controller navigation | **Experimental** | Reads `/dev/input/js*`; decoding and mapping unit tested, no real controller. |
@@ -96,14 +96,14 @@ What was really run: see [Status](#status) (a real install into a scratch prefix
| RTX Video Super Resolution (`rtx-vsr`) | **Experimental** | Wired to the engine, not tested. |
| 90/120 Hz output, choosing a monitor by name | **Experimental** | Wired, one virtual display only. |
| PS5 Remote Play and capture cards | **Experimental** | Wired as `ps5` / `capture:` sources, no hardware. |
-| Wayland (window capture for Enhance, global keys) | **Experimental** | Enhance refuses to start on Wayland; the portal path for the save key is untested. |
+| Wayland on GNOME, sway, Hyprland; a real native Wayland game; fractional scaling | **Experimental** | Written for any desktop with the ScreenCast portal, run only on KDE Plasma at scale 1 with a native test window. Without KWin the engine can't tell which native window is the game (the share dialog picks it) or where it is (the picture covers the `--monitor` screen). |
| `.deb` (`packaging/deb/build.sh`) | **Tested** | Builds, contents checked with `dpkg-deb`; never installed. |
| AUR PKGBUILD, AppImage | **Experimental** | Not built or run. |
| One-click "Add to Steam" with SteamGridDB artwork, "My PS5" / "Capture Card" entries, lsfg-vk, DLSS, Flatpak | **Planned** | |
## Clips
-The engine keeps a rolling buffer of what you played (hardware encoded where possible), like the PS5's Share button. Pick how far back to keep (15 s to 10 min) and what a save writes (15 s, 30 s, 1 m, 3 m, 5 m or 10 m) in Settings. **Ctrl+Alt+R saves a clip from any window on X11**, so you never have to leave the game; in the engine's own window **R** saves the default length and **Ctrl+1 to Ctrl+6** a chosen one. A clip is never longer than the buffer holds. Clips land in `~/Videos/Summit//` (a folder per game, named after the library entry) as plain MP4 files; **Settings > Clips folder** opens it. The folder per game is new since the RC run (unit tested; the RC clip went to the old `~/Videos/SmoovPlay/`).
+The engine keeps a rolling buffer of what you played (hardware encoded where possible), like the PS5's Share button. Pick how far back to keep (15 s to 10 min) and what a save writes (15 s, 30 s, 1 m, 3 m, 5 m or 10 m) in Settings. **Ctrl+Alt+R saves a clip from any window** (on X11 with a key grab, on KDE Wayland through the GlobalShortcuts portal), so you never have to leave the game; in the engine's own window **R** saves the default length and **Ctrl+1 to Ctrl+6** a chosen one. A clip is never longer than the buffer holds. Clips land in `~/Videos/Summit//` (a folder per game, named after the library entry) as plain MP4 files; **Settings > Clips folder** opens it. The folder per game is new since the RC run (unit tested; the RC clip went to the old `~/Videos/SmoovPlay/`).

@@ -150,7 +150,7 @@ summit profile set default --framegen rife --upscaler fsr
summit enhance clip.mp4 --out smooth.mp4 # file in, 60 fps file out
summit enhance ps5 # PS5 Remote Play, live window (untested)
summit enhance capture:0 --profile my-console # capture card, live window (untested)
-summit enhance window:Voidrunner # a running game's window, live (X11)
+summit enhance window:Voidrunner # a running game's window, live (X11, Wayland)
```
The engine needs an NVIDIA GPU and its own Python environment (`engine/`, torch with CUDA). `install.sh` sets that up with `uv` (see the install row in the table for what was run).
@@ -166,6 +166,13 @@ summit enhance window:Voidrunner # or: enhance a game that is alr
`summit run --enhance` starts the game, waits for its window (up to `--wait` seconds), starts the engine on it with the game's profile (monitor, fullscreen, upscaler, frame generation, model, `target_hz`), and stops both when either one exits. A window can also be named with `--window` (`class:NAME`, `pid:N`, `xid:N` or part of the title) for games whose window belongs to another process.
+How it works on Wayland (run on KDE Plasma 6.8, see [docs/WAYLAND_REPORT.md](docs/WAYLAND_REPORT.md)): the engine looks for the game among XWayland windows and, on KDE, among KWin's own window list. An **XWayland** game (Proton, Wine and most older games) is read exactly as on X11, through XWayland, with no dialog. A **native Wayland** game goes through the desktop's ScreenCast portal: the desktop asks once which window to share, Summit keeps the permission (`~/.config/summit/screencast-token`) and later runs, also of a restarted game, start without asking. Its frames come over PipeWire through GStreamer (`gst-launch-1.0 pipewiresrc`, a CPU copy, about 18 % of one core at 1080p). In both cases the picture is an XWayland window that KWin keeps above the game, fullscreen games included, and that never takes the keyboard. `summit doctor` lists what is missing. Gamescope was tried (it runs and upscales with its own FSR on that desktop) but is not used: it has no frame generation.
+
+| | |
+|---|---|
+|  |  |
+| KDE Wayland: Voidrunner (XWayland) started from the launcher, Ctrl+Alt+R through the portal | KDE Wayland: a native Wayland test window through the portal; each green block is a key the window got with the picture on top |
+
How it works (X11): the engine redirects the game's window off screen with the Composite extension and reads it 60 times a second through `ffmpeg`'s x11grab, leaving out grabs where nothing changed, so frames come at the game's own rate. Its output is a borderless window on top of the game that never takes focus and lets clicks through: over the game's window, or over the whole monitor with `fullscreen = true` (that is where the upscaler has something to do). Stats and the watermark `summit - git.molberg.cloud/alex/summit` are drawn in that window; `--no-watermark` hides the watermark.
| | |
@@ -183,7 +190,7 @@ What was measured, and what was not (test VM: RTX 3090 shared with another job,
- Fullscreen with FSR to 1080p: only about 33 output frames a second, because software OpenGL takes 15 ms to draw each one. **On that VM fullscreen is slower than the game itself.** With a real GPU-driven display this step is expected to take well under a millisecond, but that has not been measured.
- Not tested: a real 30 fps game (Voidrunner ran at about 50), 90/120 Hz output, two monitors and `--monitor`, a compositor with direct scanout, games started through Steam or Proton, exclusive-fullscreen games, mouse-driven games in fullscreen mode (clicks go through to whatever is under the pointer, and the picture is scaled, so the pointer does not line up).
-Limits: X11 sessions only (on Wayland it stops with a message). Needs the `ffmpeg` program. The grab polls, so it does not know when the game draws: a 60 fps game can show an occasional repeated or skipped frame. While the picture sits over a game the engine has no keys of its own (they all go to the game): close the game to stop. SIGTERM, SIGINT or SIGHUP to `summit` itself stops the game and the engine and puts the monitor's mode back (exit code 128 + the signal; SIGKILL cannot be caught). Checked with stand-in processes; the mode restore after a signal has not been tried on a real display yet. `SUMMIT_ENGINE_ARGS` passes extra flags to the engine, e.g. `SUMMIT_ENGINE_ARGS=--no-graph` on a GPU short of memory.
+Limits: needs the `ffmpeg` program. The grab polls, so it does not know when the game draws: a 60 fps game can show an occasional repeated or skipped frame. While the picture sits over a game the engine has no keys of its own (they all go to the game): close the game to stop. SIGTERM, SIGINT or SIGHUP to `summit` itself stops the game and the engine and puts the monitor's mode back (exit code 128 + the signal; SIGKILL cannot be caught). Checked with stand-in processes; the mode restore after a signal has not been tried on a real display yet. `SUMMIT_ENGINE_ARGS` passes extra flags to the engine, e.g. `SUMMIT_ENGINE_ARGS=--no-graph` on a GPU short of memory.
## The launcher
diff --git a/crates/summit-cli/src/main.rs b/crates/summit-cli/src/main.rs
index 9cd6059..1501a68 100644
--- a/crates/summit-cli/src/main.rs
+++ b/crates/summit-cli/src/main.rs
@@ -277,6 +277,7 @@ fn main() -> Result<()> {
engine::Ended::Game if detached => out!("the game's window closed; the engine ended ({})", eng_proc.wait()?),
engine::Ended::Game => out!("the game exited; the engine was stopped"),
engine::Ended::Engine => out!("the engine exited ({}); the game was stopped", eng_proc.wait()?),
+ engine::Ended::EngineFailed => out!("Enhance could not run ({}; the engine's last lines above say why): the game went on without it", eng_proc.wait()?),
}
status
} else {
diff --git a/crates/summit-core/src/display.rs b/crates/summit-core/src/display.rs
index 6128d4c..0a4174f 100644
--- a/crates/summit-core/src/display.rs
+++ b/crates/summit-core/src/display.rs
@@ -39,17 +39,18 @@ fn c(a: &[&str]) -> Cmd { a.iter().map(|s| s.to_string()).collect() }
/// instead of pretending.
pub fn plan(session: Session, desktop: Desktop, p: &Profile) -> Vec {
let Some(mon) = p.monitor.as_deref() else { return vec![] };
- let mode = match (p.width, p.height) { (Some(w), Some(h)) => Some((w, h)), _ => None };
+ // 0 means not set (`summit profile set --width 0`): never a mode to ask a monitor for
+ let mode = match (p.width, p.height) { (Some(w), Some(h)) if w > 0 && h > 0 => Some((w, h)), _ => None };
+ let p = &Profile { refresh_hz: p.refresh_hz.filter(|r| *r > 0.0), width: mode.map(|m| m.0), height: mode.map(|m| m.1), ..p.clone() };
match (session, desktop) {
(Session::Wayland, Desktop::Kde) => {
- let mut arg = format!("output.{mon}.enable");
- let mut v = vec![c(&["kscreen-doctor", &arg])];
+ // One call: kscreen-doctor applies all of its arguments as one configuration.
+ let mut v = vec!["kscreen-doctor".to_string(), format!("output.{mon}.enable")];
if let Some((w, h)) = mode {
let m = match p.refresh_hz { Some(r) => format!("{w}x{h}@{}", r.round() as u32), None => format!("{w}x{h}") };
- arg = format!("output.{mon}.mode.{m}");
- v.push(c(&["kscreen-doctor", &arg]));
+ v.push(format!("output.{mon}.mode.{m}"));
}
- v
+ vec![v]
}
(Session::Wayland, Desktop::Wlroots) => match mode {
Some((w, h)) => {
@@ -90,8 +91,9 @@ pub struct Output {
#[derive(Debug, Clone, PartialEq, Default)]
pub struct Mode {
pub width: u32, pub height: u32, pub rates: Vec,
- /// (rate, mode name) for xrandr modes whose name is not just "WxH" (custom modes like "1920x1080_120.00"):
- /// xrandr picks a mode by its name, so these need it.
+ /// (rate, what the tool picks this mode by) when "WxH" is not enough. xrandr: the names of custom modes
+ /// ("1920x1080_120.00"). kscreen-doctor: the mode id, as its names ("1920x1080@120") can be shared by two
+ /// modes (119.88 and 119.98 Hz on one real monitor).
pub named: Vec<(f32, String)>,
}
@@ -154,6 +156,7 @@ pub fn parse_kscreen_json(text: &str) -> Vec