Eine Konsolen-Oberfläche im Stil von PS5/Xbox für Linux, geschrieben in Rust. Man bedient sie komplett mit dem Gamepad, sie hat flüssige Animationen und zeigt alle Apps und Spiele (Steam + Desktop-Apps) übersichtlich an. Sie startet als eigene Session direkt aus dem Login-Manager oder TTY, so wie der Steam Deck „Game Mode“.
| Option | Aufwand | Kontrolle über Animationen | Bewertung |
|---|---|---|---|
| A) gamescope als Compositor + eigene Shell als Vollbild-Client | gering–mittel | in der Shell voll, beim App-Wechsel begrenzt | Start hiermit |
| B) Eigener Wayland-Compositor mit Smithay | sehr hoch | voll (auch Übergänge zwischen Apps, Overlays) | später, falls A an Grenzen stößt |
Entscheidung: Wir bauen in Phase 1 die Shell als eigenständige Rust-App, die auch auf dem normalen Desktop im Fenster läuft, damit die Entwicklung schnell geht. In Phase 2 läuft sie in gamescope (so macht es auch Steam im Game Mode). Phase 3 ist optional ein eigener Smithay-Compositor als Hybrid: Shell, Overlays, Eingabe und Fokus im eigenen Compositor, gamescope nur noch verschachtelt pro Spiel für Upscaling/HDR (siehe Epic 7). Weil die Shell vom Compositor getrennt ist, bleibt der Code der Shell dabei erhalten.
Tech-Stack (Vorschlag)
- UI: Slint (deklarative Animationen, Wayland, später auch
linuxkms-Backend ohne Compositor) – bereits aus TempRechner bekannt - Gamepad:
gilrs - App-Erkennung:
freedesktop-desktop-entry(.desktop-Dateien),keyvalues-parser(Steam VDF/ACF) - System (Power, Lautstärke, Netzwerk):
zbus(logind, NetworkManager), PipeWire viawpctl - Async/Prozesse:
tokio - Optional Phase 3:
smithay
cargo buildundcargo clippy -- -D warningslaufen ohne Fehler- Das Feature ist komplett mit Gamepad und Tastatur bedienbar
- Animationen laufen auf der Zielhardware flüssig (60 fps)
- Die Akzeptanzkriterien sind manuell geprüft, Logik (Parser usw.) hat Unit-Tests
Schätzung in Story Points (SP): 1, 2, 3, 5, 8, 13. Ein Sprint dauert 2 Wochen.
| ID | Story / Task | SP |
|---|---|---|
| 0.1 | Rust-Toolchain per rustup installieren (ist im Moment nicht im PATH), Workspace ConsoleUI mit Crates shell (Binary) und core (Logik/Lib) anlegen |
1 |
| 0.2 | Slint-Grundgerüst: Vollbildfenster, das sich mit --windowed als Fenster öffnen lässt |
1 |
| 0.3 | Spike gamescope: Wie steuert man Fokus/App-Wechsel? (X11-Atoms wie GAMESCOPECTRL_BASELAYER_APPID, STEAM_GAME, GAMESCOPE_EXTERNAL_OVERLAY; Verhalten bei nativen Wayland-Clients mit --expose-wayland). Ergebnis: kurzes Dokument und Proof of Concept |
5 |
| 0.4 | Spike Slint-Performance: 50 Kacheln mit Bildern, Scale-/Blur-Animationen, fps messen | 3 |
| ID | User Story | Akzeptanzkriterien | SP |
|---|---|---|---|
| 1.1 | Als Spieler sehe ich eine horizontale Reihe mit meinen zuletzt genutzten Apps | Die Kacheln liegen nebeneinander, die gewählte Kachel ist größer und hat einen Glow | 5 |
| 1.2 | Als Spieler navigiere ich mit Steuerkreuz/Pfeiltasten durch die Kacheln | Die Fokus-Animation dauert ca. 150–250 ms mit Easing, die Liste scrollt mit, sodass der Fokus links bleibt (PS5-Stil) | 3 |
| 1.3 | Als Spieler ändert sich der Hintergrund passend zur gewählten App | Das Hero-Artwork blendet als Crossfade über, eine Vignette liegt darüber, Titel und Infos stehen unten links | 5 |
| 1.4 | Als Spieler sehe ich eine Top-Bar mit Uhrzeit, Akku, WLAN und Controller-Status | Die Werte aktualisieren sich live | 3 |
| 1.5 | Als Spieler starte ich mit A/Enter die gewählte App | Es gibt eine Start-Animation (Kachel zoomt auf Vollbild), dann startet der Prozess | 3 |
| 1.6 | Als Spieler höre ich dezente UI-Sounds beim Navigieren und Starten | Die Sounds lassen sich abschalten | 2 |
| ID | User Story | Akzeptanzkriterien | SP |
|---|---|---|---|
| 2.1 | Als Spieler werden meine installierten Desktop-Apps erkannt | .desktop-Dateien aus XDG-Pfaden inkl. Flatpak werden geparst, NoDisplay wird gefiltert |
3 |
| 2.2 | Als Spieler werden meine Steam-Spiele erkannt | libraryfolders.vdf und appmanifest_*.acf werden geparst, Start über steam steam://rungameid/<id> |
5 |
| 2.3 | Als Spieler sehe ich schöne Cover-Bilder | Steam-librarycache (Cover/Hero/Logo) wird genutzt, sonst das Icon des Themes, sonst ein Platzhalter mit Farbverlauf |
5 |
| 2.4 | Als Spieler öffne ich eine Bibliothek als Grid-Ansicht | Grid mit Gamepad-Navigation, Filter (Alle/Spiele/Apps), Sortierung (A–Z, zuletzt gespielt) | 5 |
| 2.5 | Als Spieler suche ich nach Apps | Bildschirmtastatur für das Gamepad, Live-Filter | 5 |
| 2.6 | Als System merke ich mir die zuletzt genutzten Apps | Persistenz als JSON/TOML in $XDG_DATA_HOME/consoleui/ |
2 |
| 2.7 | Als Spieler kann ich Apps anpinnen oder ausblenden | Kontextmenü mit der Options-Taste | 3 |
| ID | User Story | SP |
|---|---|---|
| 3.1 | Gamepad-Eingaben (gilrs) werden in UI-Aktionen übersetzt (Up/Down/Left/Right/Confirm/Back/Menu/Guide), Wiederholung beim Gedrückthalten |
5 |
| 3.2 | Tastatur-Mapping auf dieselben Aktionen, damit man ohne Controller entwickeln kann | 1 |
| 3.3 | Glyphen der Buttons passen sich an den Controller-Typ an (Xbox/PlayStation) | 3 |
| 3.4 | Die Guide-/PS-Taste öffnet von überall die Shell bzw. das Quick-Menü | 3 (hängt von 0.3 ab) |
| ID | User story | SP |
|---|---|---|
| 4.1 | Session script: gamescope in embedded mode (DRM) with the shell as the main client | 3 |
| 4.2 | Session file in /usr/share/wayland-sessions/consoleui.desktop, so the session can be chosen in SDDM/GDM |
2 |
| 4.3 | Launched apps get the focus; when they exit, the shell returns with an animation | 5 |
| 4.4 | Running apps are shown in the shell ("Running now"); you can switch back to them or quit them | 5 |
| 4.5 | Processes run in their own systemd scope (systemd-run --user --scope), so crashes and quitting work cleanly |
3 |
| 4.6 | Quick menu as an overlay above running games (volume, brightness, back to the shell, quit the game). Brightness only on screens with a backlight, the card is hidden otherwise | 8 (spike 0.3) |
| 4.8 | Done. Media card in the quick menu: while a player (browser, music app) has something loaded over MPRIS, a card shows the track and artist; confirm plays or pauses, up and down skip | 3 |
| 4.7 | Done. Window switcher in the quick menu: a row with every running app, most recently used first, one card per window with a live preview (our compositor; artwork in gamescope and on the desktop). ✕ switches, □ quits, ✕ right after opening goes to the previous app | 5 |
| ID | User Story | SP |
|---|---|---|
| 5.1 | Power menu: power off, restart, sleep (logind via zbus) |
3 |
| 5.2 | Set the volume (PipeWire) | 3 |
| 5.3 | Wi-Fi list and connecting (NetworkManager via D-Bus) | 8 |
| 5.4 | Pair Bluetooth controllers (BlueZ via D-Bus) | 8 |
| 5.5 | Settings page: theme/accent color, sounds, resolution (on a real display under our compositor) | 5 |
| 5.6 | Notifications as toasts (download finished, controller connected) | 3 |
| 5.7 | Done. As a player in a household I pick my profile at the start ("Who's playing?", like the users of a PS5): several profiles within one Linux user, each with its own history, pinned/hidden entries, game options and settings in $XDG_DATA_HOME/consoleui/profiles/<id>/. Profiles can be added, renamed, recolored and deleted with the gamepad (name entry with the on-screen keyboard); "Switch profile" in the control center; the first profile takes over the existing files. Not a login manager: no passwords, no separate Linux users |
5 |
| 5.8 | Done. Updates without knowing the distribution: settings page "Updates" lists what PackageKit, Flatpak, fwupd and rpm-ostree offer, shows what changed, installs everything (apps at once, the system as an offline update at the next restart), searches in the background and tells with a toast | 8 |
| ID | User Story | SP |
|---|---|---|
| 6.1 | Animated boot/start screen with logo | 2 |
| 6.2 | Done. Transitions between pages (Home ↔ Library ↔ Settings) with slide/fade | 3 |
| 6.3 | Parallax or subtle motion in the background artwork | 3 |
| 6.4 | Done. Theme system with central design tokens (colors, radii, timings). Controller button colors and one-off effect colors (gradients, sheen, shadows) stay where they are used | 3 |
| 6.5 | Performance pass: load images asynchronously, thumbnail cache, frame-time overlay for debugging | 5 |
| 6.6 | i18n: UI strings in English as the source language, German translation (e.g. Slint's @tr() with gettext catalogs), language follows LANG and can be changed on the settings page; remaining German strings in the code are moved to English |
5 |
| 6.7 | Done (Sprint 11). Optional background music on the home screen like on the PS5: a generated ambient loop or the user's own files, fades out while an app is in front | 3 |
| 6.9 | Done (Sprint 11). Animated background ("shader" background) as a settings choice: Artwork (animated where an entry has no artwork), Animated (always), Classic | 3 |
| 6.8 | Done (Sprint 11). Animation polish: focus ring with a gap, light sweep on focus, ripple on press, gliding tab underline, crossfading info area, progress indicator on the launch screen | 3 |
| 6.10 | Done. UI feedback round: the game comes to the front only once the launch screen is fully open, rounded corners on the zooming game image, frosted-glass panels, a calm info area on the home screen, keyboard key caps in the hints after keyboard input | 5 |
| 6.11 | Done. Boot splash like a console's: from power-on the screen shows the shell's own boot screen (logo, pulsing glow, loading dots) instead of the distribution's, as a Plymouth theme, including the disk password prompt and the update/shutdown screens | 2 |
Approach: We do not rebuild everything gamescope can do. Full parity (FSR/NIS, HDR, frame
limiter, many per-game special cases) would be roughly 110–170 SP plus a lot of maintenance. Our own
Smithay compositor takes over the parts we currently have to work around in gamescope: shell,
overlays, input, focus and the transitions between shell and app. Games run directly in the
compositor (through XWayland). Games that need upscaling, HDR or an FPS limiter are started in a
nested gamescope (gamescope -- <game>, gamescope as a client), so we get those expensive
features from gamescope per game (Story 7.10, done in Sprint 8).
What goes away: the STEAM_GAME atoms and the process mapping in src/gamescope.rs, the
EVIOCGRAB in src/grab.rs, the notification window that is 1 px narrower than the root window,
and the focus that gamescope does not hand back after the overlay. The shell stays a normal client.
The gamescope mode (CONSOLEUI_GAMESCOPE=steam) remains as a fallback.
Spike results and the plan for 7.2: docs/spike-smithay.md. Estimates below are updated after the spike.
| ID | Story | SP |
|---|---|---|
| 7.1 | Spike: build Smithay's anvil example, run the shell (Slint, Wayland) and a nested gamescope inside it — done (Sprint 8) |
5 |
| 7.2 | Done (Sprint 9). Minimal compositor crates/compositor: DRM/KMS + libinput + libseat (--drm) and winit (--winit, development), the shell as fullscreen client, control socket (CONSOLEUI_COMPOSITOR), relative-pointer/pointer-constraints/drm_syncobj, own session file next to the gamescope session |
13 |
| 7.3 | Done (Sprint 9). XWayland basics: X11Wm, fullscreen games, override-redirect windows, window → launched app mapping (reuses consoleui_core::ownership, fallback for windows without _NET_WM_PID) |
13 |
| 7.4 | Robust XWayland for Steam and games: Steam client, launcher and splash windows, focus changes, special cases from tests with real games | 13 |
| 7.5 | Done (Sprint 10). Focus and input in the compositor: Guide button always goes to the shell, the game gets no input while the quick menu is open (replaces grab.rs), keyboard focus returns cleanly |
5 |
| 7.6 | Done (Sprint 10). Shell as overlay above running apps: quick menu and toasts as shell toplevels placed on top by the compositor (Slint has no layer-shell), replaces the OverlayWindow/NotificationWindow tricks |
5 |
| 7.7 | Done (Sprint 11). Animated transitions between shell and app in the compositor (tile zooms into the real game image, animated return) | 8 |
| 7.8 | Done, not yet seen on a real GPU. Direct scanout for the game in front (zero-copy, low latency), falling back to composition while an overlay is open. Clients get dmabuf feedback with a scanout tranche; --no-scanout/CONSOLEUI_NO_SCANOUT=1 turn it off, the log says direct scanout on/off |
5 |
| 7.9 | VRR (adaptive sync) and tearing for games, simple frame pacing. Partly done: VRR as the setting "Variable refresh rate" (off by default, row only when the monitor can do it), on only while a game is in front, commits go out at once. Open: tearing (Smithay has no tearing-control/async page flip yet), a test on a VRR monitor | 13 |
| 7.10 | Nested gamescope per entry (resolution, FSR/NIS/integer, FPS limit, HDR, fullscreen) from the context menu — done (Sprint 8), not for Steam games | 5 |
| 7.11 | Multiple monitors/hotplug (choose the output, switch to the remaining one on unplug). Partly done: unplug → remaining monitor and mode changes worked before; now --output NAME/CONSOLEUI_OUTPUT and external-before-built-in choose the monitor. A preferred monitor plugged in while another is in use now takes over live, and the settings row "Screen" picks one of the connected monitors at runtime (saved per profile, taken again when it is plugged in). Open: several monitors at once (mirrored or extended) |
5 |
| 7.12 | Done. Screenshot with the Print key (compositor renders the output into ~/Pictures/ConsoleUI/screenshot-<date>-<time>.png, toast with the file name; Guide + R1 on the gamepad does the same under our compositor) |
3 |
| 7.13 | Done. Real backdrop blur behind the quick menu and toasts above a game (dual Kawase pass in the compositor, panels announced over the control socket) | 3 |
| 7.14 | Done. Typing into apps: with a text field of the app in front focused, ✕ opens the floating on-screen keyboard above the app (text-input-v3 for apps, input-method-v2 only for the shell). Not for X11/XWayland apps, they do not announce text fields |
5 |
| 7.15 | Done. Gamepad mouse for windows made for a mouse: starts with "Show Steam" and from the quick menu card over an app. Left stick moves the pointer, ✕ clicks, □ right-clicks, L1/R1 scroll, ○ ends. Ends by itself when the app leaves the front or the Steam game starts | 3 |
Idea (not scheduled): the compositor could own the gamepads and give games a virtual (uinput) controller that it mutes while the quick menu is open; unlike EVIOCGRAB this would also cover games that read controllers via hidraw.
About 98 SP in total, 7.1–7.6 (≈ 54 SP) as the first goal: a session that runs as well without gamescope as it does today. Deliberately not in the compositor: own upscaling, HDR and color management, FPS limiter — the nested gamescope (7.10) provides those. License decided before 7.2: GPL-3.0-or-later, so code from niri (GPL-3.0-or-later) and anvil/smallvil (MIT) can be reused.
Goal: apps that look and feel like the platform, built by us and by others, which run in a window on any
Linux desktop and fullscreen in the console session. Apple, Android and the consoles offer the same building
blocks: toolkit and design language, runtime, stable API, templates and rules, packaging with identity and
permissions, distribution. consoleui-ui and consoleui-app are the first two.
| ID | Story | SP |
|---|---|---|
| 8.1 | License decision for the SDK. Today an app that links the crates must be GPL-3.0-or-later; proprietary apps need LGPL or MIT for ui, app, sdk and core. Includes Slint's own license terms for a console device. The owner decides |
1 |
| 8.2 | Done. crates/sdk as the one public API of an app: re-exports, Controls (controller and keyboard as one event stream), Sounds, build::compile, --snapshot. Semantic versions and a stability promise follow with 8.8 |
3 |
| 8.3 | Done. App template templates/app and dev/new-app.sh <name>: logic without UI in page.rs with tests, controller, keyboard and mouse, .desktop file |
3 |
| 8.4 | Done. Developer guide and design rules in docs/sdk.md |
2 |
| 8.5 | Done. Flatpak packaging: dev/new-app.sh puts a manifest named after the app's ID into the app (Freedesktop runtime 25.08 with the Rust extension). No shared base app: the SDK is linked into each app, the runtime has what Slint needs and pw-cat. Permissions: Wayland/X11, DRI, --device=input (gilrs finds controllers without udev in the sandbox), the PipeWire socket, --talk-name=org.consoleui.Shell1. Checked with a generated app: built, started from the shell under the compositor, controller found in the sandbox, the shell's properties read from inside. Until the crates are published the build reads them from the checkout and needs network, so Flathub needs vendored sources later |
5 |
| 8.6 | Done. Console apps in the .desktop file: X-ConsoleUI=true lists an app whatever its categories say, X-ConsoleUI-Kind, -Cover, -Hero, -Logo (absolute path or icon name) |
3 |
| 8.7 | Done. System services for apps over D-Bus, usable from the sandbox and from other languages: org.consoleui.Shell1 with accent color, animations, sounds, profile name and toasts. The properties send PropertiesChanged, apps follow with watch_session. The on-screen keyboard already works through text-input-v3. Tested from inside a Flatpak sandbox (8.5): the properties answer, other names stay blocked |
8 |
| 8.8 | First-party apps that prove the API before it is called stable (done: the store, the file manager crates/files and the media player crates/media), then publish the crates and promise stability |
13 |
| 8.9 | Partly done. Distribution: the store crates/store (consoleui-store), an app on the SDK: Flathub's games and apps that suit the console, search, details, install and remove for the user, with progress. What it installs shows up in the shell's library (RefreshLibrary) and starts through the shell (Launch). Screenshots load in the background (curl, cache in $XDG_CACHE_HOME/consoleui/store), with a full view. Open: our own Flatpak repository, updates (the shell's Updates page does those) |
8 |
| Sprint | Goal | Stories |
|---|---|---|
| 1 | "It moves": home screen with dummy data and smooth navigation | 0.1, 0.2, 0.4, 1.1, 1.2, 3.2 |
| 2 | "Real apps": detect desktop and Steam apps, show them with covers and launch them | 2.1, 2.2, 2.3, 1.3, 1.5, 2.6 |
| 3 | "Couch-ready": gamepad control and console session with gamescope | 3.1, 0.3, 4.1, 4.2, 4.3, 1.4 |
| 4 | "Library": grid, search, running apps | 2.4, 2.5, 4.4, 4.5, 3.3 |
| 5 | "System": power, volume, quick menu | 5.1, 5.2, 3.4, 4.6 |
| 6 | "Polish": animations, settings, performance | 6.x, 5.5, 5.6, 1.6 |
| 7 | Wi-Fi/Bluetooth, context menu, notifications over games, performance | 5.3, 5.4, 2.7, 5.6, 6.3, 6.5 |
| 8 | "Hybrid start": Smithay spike, nested gamescope per entry, i18n | 7.1, 7.10, 6.6 |
| 9 | "Own compositor": minimal compositor, XWayland, test VM, license | 7.2, 7.3 |
| 10 | "Session without gamescope": input isolation, overlays, keyboard layout, DRM checks | 7.5, 7.6 |
| 11 | "Transitions": shell ↔ app animated in the compositor, animation polish, background music | 7.7, 6.7, 6.8 |
| 12+ | Steam and launchers (with the user), then latency | 7.4 → 7.8, 7.9, 7.11, 7.12 |
- Workspace mit
consoleui-core(Logik, 8 Tests) undconsoleui(Slint-Shell, 3 Tests) - Home-Screen: Kachelreihe mit Fokus-Animation (220 ms,
ease-out-quart), Glow, „Drück“-Effekt, Hintergrund in der Akzentfarbe, Top-Bar mit Uhr, Infobereich, Steuerungshinweise - Tastatur: Pfeile/WASD, Enter/Leertaste, Esc/Backspace, Tab/M, Strg+Q zum Beenden
- Noch nicht drin: Starten von Apps (Sprint 2). Hoch/Runter tun noch nichts.
Spike 0.4 – Ergebnis (--bench, Release, KDE Wayland, 5120×1440, femtovg-Renderer)
| Kacheln | Ø fps | Renderzeit Ø | max |
|---|---|---|---|
| 12 | 114 | 5,3 ms | 18 ms |
| 50 | 112 | 5,8 ms | 32 ms |
| 100 | 109 | 6,0 ms | 28 ms |
Die Renderzeit hängt kaum von der Anzahl der Kacheln ab, bezahlt wird vor allem die Fläche (Vollbild-Verläufe und Schatten). Die Max-Werte kommen vom ersten Frame (Texturen hochladen). Ein echter Weichzeichner (Blur) für Hintergründe ist in Slint nicht eingebaut. Für 1.3 nehmen wir deshalb ein vorab verkleinertes oder weichgezeichnetes Bild. Auf schwacher Hardware (Steam Deck o. Ä.) sollten wir später den Skia-Renderer vergleichen (Story 6.5).
- Steam (2.2): eigener VDF-Parser, alle Bibliotheken aus
libraryfolders.vdf, nur vollständig installierte Spiele. Proton, Runtimes, Redistributables und Soundtracks werden ausgefiltert, Duplikate über mehrere Bibliotheken zusammengeführt. Start übersteam steam://rungameid/<id>. - Desktop-Apps (2.1): eigener
.desktop-Parser mit deutschen Namen. Aufgenommen werden die Kategorien Game/AudioVideo/Audio/Video/Network/Graphics, ausgeschlossen Settings/System/Development/Office. Steam-eigene Spielverknüpfungen werden übersprungen, Icons kommen aus dem KDE-Theme, sonst aus hicolor oder pixmaps. - Artwork (2.3): Steam-Cover, Logo (ersetzt den Titeltext) und Hero aus
appcache/librarycache, sowohl im neuen als auch im alten Format. Die Akzentfarbe wird aus dem Cover berechnet. - Hintergrund (1.3): Das Hero-Bild wird erst beim Fokussieren geladen und über zwei Ebenen überblendet (500 ms).
- Starten (1.5): Die Kachel zoomt auf Vollbild („wird gestartet …“), der Prozess läuft in einer eigenen Prozessgruppe, und nach 2,6 s kehrt die Shell zurück. Die echte Fokus-Übergabe folgt mit 4.3.
- Historie (2.6):
~/.local/share/consoleui/history.json. Gestartete Apps rutschen nach vorn, die Reihe ist nach „zuletzt genutzt“ sortiert, danach alphabetisch. - Messwert mit echter Bibliothek (69 Kacheln, Release): Ø 105 fps, Renderzeit Ø 6,3 ms, max 17,7 ms.
- Bekannt: Einige AppImage-Icons ohne Dateiendung lassen sich nicht laden. Die Kachel zeigt dann das Monogramm. Mit 69 Einträgen wird die Reihe lang, was für die Bibliothek (2.4) spricht.
- Spike gamescope (0.3): siehe docs/spike-gamescope.md. Ohne
-ebekommt das neueste Fenster den Fokus, nach dem Schließen ist die Shell automatisch zurück. - Gamepad (3.1): gilrs, alle 8 ms abgefragt. Steuerkreuz und linker Stick (mit Hysterese) navigieren, mit Wiederholung beim Halten (350 ms, dann 120 → 70 ms). Kreuz/A bestätigt, Kreis/B geht zurück, Options/PS öffnen das Menü (vorerst ohne Funktion). Geräte ohne SDL-Mapping werden ignoriert, z. B. die Joystick-Schnittstelle der Keychron-Tastatur.
- Top-Bar (1.4): Controller mit Akkustand, Netzwerk (Ethernet/WLAN/offline aus sysfs) und Laptop-Akku (nur wenn vorhanden), dazu die Uhr. Alles wird jede Sekunde aktualisiert.
- Tastensymbole (3.3, Teil): Bei PlayStation-Controllern ✕/○, bei Xbox und anderen A/B, mit Tastatur ⏎/Esc. Es gibt noch keine eigenen Glyph-Grafiken.
- Rückkehr (4.3): Der Startbildschirm bleibt offen, solange die App läuft. Desktop-Apps werden
über das Prozessende erkannt, Steam-Spiele über
RunningAppIDin~/.steam/registry.vdf, mit 90 s Timeout, falls das Spiel nie startet. Danach fährt die Shell animiert zurück. Mit Kreis/Esc kommt man vorher zur Übersicht. Steam wird mit-silentgestartet. - Session (4.1/4.2):
session/consoleui-session,session/consoleui.desktopundsession/install.sh(mit sudo ausführen). Verschachtelt in gamescope getestet. Der Start vom TTY bzw. Login-Bildschirm ist noch nicht getestet. - Noch offen: das echte Bedienen mit dem DualSense und die Session auf echter Hardware (DRM-Backend) testen.
- Fehler aus Sprint 3 behoben: gilrs liest den Controller direkt vom Gerät. Ohne Fensterfokus
ignoriert die Shell deshalb jetzt alle Gamepad-Eingaben (
FocusScope.has-focus), damit Tasten im Spiel keine Aktionen in der Shell auslösen. In gamescope mit einem zweiten Fenster getestet. - Navigation: Die Tabs „Home“ und „Bibliothek“ wechseln mit L1/R1 bzw. Q/E. Die Home-Reihe
zeigt die 12 zuletzt genutzten Apps und am Ende die Kachel „Bibliothek“. Dreieck bzw.
/öffnet von Home und Bibliothek aus die Suche. Seitenwechsel blenden über und gleiten (200 ms). - Bibliothek (2.4): Raster mit Titeln, die Spaltenzahl richtet sich nach der Fensterbreite. Quadrat/F schaltet den Filter (Alle/Spiele/Apps) um, Options/Tab die Sortierung (zuletzt genutzt / A–Z, Umlaute richtig einsortiert; seit Sprint 7 im Kontextmenü).
- Suche (2.5): QWERTZ-Bildschirmtastatur mit Ziffern, Leerzeichen, ⌫ und „Fertig“. Mit der echten Tastatur kann man direkt tippen. Die Suche ignoriert Groß-/Kleinschreibung und Umlaute, jedes Suchwort muss vorkommen. Die Reihenfolge ist: Titelanfang, dann Wortanfang, dann irgendwo im Titel. Die Treffer stehen als Kachelreihe darunter, ohne Suchtext die zuletzt genutzten Apps.
- Tastensymbole (3.3): gezeichnete Symbole in den Controller-Farben (✕ ○ △ □ / A B X Y, L1/R1 bzw. LB/RB, ≡), mit Tastatur die Tastennamen. Die Hinweisleiste passt sich an Bildschirm und Auswahl an.
- systemd-Scope (4.5): Desktop-Apps laufen über
systemd-run --user --scopein einer eigenen Unit (consoleui-app-*.scope). Ohne User-Bus wird direkt gestartet (Prozessgruppe). - Laufende App (4.4, Teil): „● LÄUFT“-Badge und „Läuft gerade“ als Unterzeile. Options/Tab
in Home beendet die App nach einer Rückfrage: Desktop-Apps über
systemctl --user stop, Steam-Spiele per SIGTERM an Prozesse mitSteamAppId=<id>. Kreis/Esc schließt den Startbildschirm, die App wird weiter verfolgt. Offen für Sprint 5: zu einer laufenden App zurückwechseln (gamescope-Fokus) und mehrere laufende Apps gleichzeitig verfolgen. - Entwickler-Optionen:
--start home|library|search,--query <text>,--snapshot <png>(rendert das eigene Fenster, ohne den Bildschirm abzufotografieren). - Messwert: Home mit Bibliothekskachel Ø 105 fps, Renderzeit Ø 5,7 ms.
- Nicht manuell getestet: Beenden-Dialog und Badge mit einer echten App sowie die Start-Animation aus Bibliothek und Suche.
- Spikes: docs/spike-gamescope.md (Spike 2 und 3). Zurückwechseln
geht nur im Steam-Modus von gamescope, ein echtes Overlay mit einem ARGB-Fenster und
STEAM_OVERLAYvor dem Mappen. - Session im Steam-Modus:
session/consoleui-sessionstartetgamescope -eund setztCONSOLEUI_GAMESCOPE=steam. Die Shell übernimmt die Rolle von Steam: Sie gibt jedem neuen Fenster per x11rb einSTEAM_GAME-Atom. Die Zuordnung läuft über_NET_WM_PID, dannSteamAppIdin der Umgebung oder die systemd-Scope-Unit bzw. die Elternprozesse. Fenster ohne Zuordnung gehen an die zuletzt gestartete App. MitGAMESCOPECTRL_BASELAYER_APPIDbestimmt die Shell, wer vorne ist. - Mehrere laufende Apps (4.4): Alle werden verfolgt und haben ein Badge. ✕ auf einer laufenden App holt sie zurück nach vorn („Fortsetzen“), ohne gamescope zeigt sie den Startbildschirm „läuft“. Ist das App-Fenster da, verschwindet der Startbildschirm.
- Steuerzentrale (4.6, 3.4): Die PS-Taste (Tastatur: F1) öffnet sie von überall, auch während ein Spiel vorne läuft. In gamescope ist sie ein eigenes transparentes Overlay-Fenster über dem Spiel, ohne gamescope eine Ebene im Hauptfenster. Inhalt: Fortsetzen, Home, Beenden (mit Spiel), Lautstärke, Standby, Neustart, Ausschalten, Abmelden. Folgenschwere Aktionen brauchen einen zweiten Druck („Wirklich?“).
- Lautstärke (5.2):
wpctlauf@DEFAULT_AUDIO_SINK@, ▲/▼ in 5-%-Schritten, ✕ schaltet stumm. - Energie (5.1):
systemctl suspend|reboot|poweroff(logind/polkit, ohne root). - Entwickler-Optionen:
--actions(simulierte Eingaben) und--dummy-launch <befehl>, damit sich der Ablauf in gamescope automatisch testen lässt. - Getestet: der komplette Ablauf verschachtelt in gamescope
-emitglxgears(Screenshots perGAMESCOPECTRL_REQUEST_SCREENSHOT=2), das Quick-Menü im Desktop-Fenster per--snapshot. - Nicht getestet: echte Steam-Spiele und der Steam-Client in der Steam-Modus-Session, die Session auf echter Hardware (DRM), Lautstärke regeln und Energieaktionen auslösen.
- Bekannte Grenze: Während die Steuerzentrale offen ist, bekommt das Spiel die Controller-Tasten
weiterhin mit, denn gilrs und das Spiel lesen dasselbe Gerät. Abhilfe wäre ein exklusiver Zugriff
(
EVIOCGRAB) oder ein virtueller Controller, ähnlich wie bei Steam Input.
- Einstellungen (5.5): dritter Tab „Einstellungen“ mit Akzentfarbe (Weiß, Blau, Violett,
Grün, Orange, Rot), Animationen an/aus (alle Dauern 0), Klängen an/aus und Tastensymbolen
(automatisch/PlayStation/Xbox). ▲▼ wählt, ◀▶ ändert. Gespeichert wird sofort in
~/.config/consoleui/settings.json, fehlende Felder bekommen Standardwerte. Die Akzentfarbe färbt Fokusrahmen, Buttons, Tasten und Karten. - Klänge (1.6): werden zur Laufzeit erzeugt (Sinus mit Oberton und Hüllkurve, keine Dateien)
und über einen dauerhaften
pw-cat --rawabgespielt. Ein eigener Thread schreibt, die Queue ist klein, dicht folgende Fokusklänge fallen weg. Welcher Klang kommt, ergibt sich aus der Änderung: Fokus, Seite, Steuerzentrale, Start oder Bestätigen. - Boot-Animation (6.1) und Laden im Hintergrund (6.5): Logo mit pulsierendem Lichtschein und
Ladepunkten, mindestens 1,2 s. Währenddessen laufen Erkennung und Bilddekodierung (
image-Crate, mehrere Threads, Cover auf höchstens 480×720 verkleinert, Akzentfarbe) im Hintergrund. Benchmark, Skript und Snapshot starten erst danach. - Hinweise (5.6): Toast oben rechts bei „Controller verbunden/getrennt“, „Start fehlgeschlagen“ und schwachem Controller-Akku (≤ 15 %, einmal pro Entladung).
- Exklusiver Controller: Solange die Steuerzentrale offen ist, sperrt die Shell die
evdev-Geräte des Controllers per
EVIOCGRABund liest sie selbst (Steuerkreuz, Stick, ✕, ○, Options, PS). Das Spiel bekommt dann nichts mit. Getestet: Ein zweiter Grab-Versuch scheitert mit EBUSY, solange das Menü offen ist, vorher und nachher ist das Gerät frei. - Messwert: Ø 112 fps, Renderzeit Ø 5,8 ms, max 15 ms (Home, echte Bibliothek).
- Nicht getestet: die Bedienung mit echtem Controller während des Grabs, das Hören der Klänge, Toasts bei echtem Ein- und Ausstecken.
- Grenzen: Spiele, die den Controller über hidraw lesen (Steam Input, manche SDL-Spiele), sehen ihn trotz Grab. Toasts erscheinen nur, wenn die Shell sichtbar ist, nicht über einem laufenden Spiel (seit Sprint 7 behoben).
- Ursache: Nach dem Overlay gibt gamescope den X11-Tastaturfokus nicht an die Shell zurück, obwohl sie wieder vorne ist. Die Controller-Sperre aus Sprint 4 hing am Fensterfokus, deshalb ging nur noch die PS-Taste.
- Lösung: In gamescope entscheidet jetzt
Shell::shell_in_front(keine App vorne, Startbildschirm offen oder die App vorne hat noch kein Fenster), ob Controller-Eingaben an die Shell gehen. Die Tastatur holt sich den Fokus perXSetInputFocuszurück (spätestens nach 500 ms). - Dazu
session/consoleui-nested: simuliert die Session in einem Desktop-Fenster.
- Ursache: Das Spielende wurde an
RunningAppIDin~/.steam/registry.vdferkannt, und das setzt Steam oft erst Minuten später zurück. - Lösung:
steam::running_games()sucht in/procnach Prozessen mitSteamAppId=<id>(setzt Steam für jedes Spiel, auch unter Proton). Gibt es 2 s lang keinen, ist das Spiel beendet.steam::stop_gamenutzt dieselbe Suche.
- Kontextmenü (2.7): Options/Tab öffnet auf dem fokussierten Eintrag in Home und Bibliothek eine kleine Karte mit „Anheften“/„Lösen“, „Ausblenden“ und bei laufenden Apps „Beenden“ (mit der bekannten Rückfrage). ▲▼ wählt, ✕ führt aus, ○ schließt. Der „•••“-Knopf in Home steht dafür, die Hinweisleiste zeigt „Optionen“.
- Angeheftet: steht in der Home-Reihe immer vorn (in Anheft-Reihenfolge, zählt nicht gegen die 12 zuletzt genutzten) und trägt eine Nadel oben rechts in der Akzentfarbe. In der Bibliothek gilt die normale Sortierung.
- Ausgeblendet: verschwindet aus Home, Bibliothek und Suche. Der Bibliotheksfilter hat jetzt den Wert „Ausgeblendet“, dort bietet das Kontextmenü „Wieder anzeigen“.
- Sortierung: Weil Options jetzt das Kontextmenü öffnet, steht „Sortierung: …“ in der Bibliothek als letzter Menüpunkt (✕ schaltet um, das Menü bleibt offen). Eine freie Taste gab es dort nicht mehr.
- Gespeichert in
$XDG_DATA_HOME/consoleui/collection.json(Eintrags-IDs, tolerant geladen, atomar geschrieben); mit--dummywird wie bei der Historie nichts gespeichert. - Geprüft per
--snapshot(Menü in Home/Bibliothek, Nadel, Filter „Ausgeblendet“, Suche ohne ausgeblendeten Eintrag, „Beenden“ mit--dummy-launch "sleep 15"). Nicht getestet: mit echter Bibliothek und echtem Controller.
- Einstieg: zwei neue Zeilen „WLAN“ und „Bluetooth“ in den Einstellungen. Sie zeigen den
Zustand („Kein Adapter“, Netzname, „1 Gerät verbunden“, „Aus“) und öffnen mit ✕ eine Unterseite,
○ führt zurück. Die Unterseiten sind ein Zustand der Einstellungsseite (kein neuer
Screen). - WLAN (5.3): Ein/Aus-Zeile, darunter die Netze mit Signalbalken, Schloss für gesicherte Netze und „Verbunden“-Badge (pro SSID zusammengefasst, verbundenes Netz zuerst, dann nach Signal). ✕ verbindet bzw. trennt, □ sucht neu. Gesicherte Netze ohne gespeichertes Profil öffnen die Passwort-Eingabe: dieselbe Bildschirmtastatur wie die Suche, mit einer neuen Umschalttaste ⇧ (Großbuchstaben und Sonderzeichen), ≡ zeigt das Passwort an, auch die echte Tastatur tippt. Ohne Adapter steht dort „Kein WLAN-Adapter“.
- Bluetooth (5.4): Ein/Aus-Zeile mit Adaptername, □ startet bzw. beendet die Gerätesuche.
Geräte mit Art (Controller, Audio, Tastatur …, aus BlueZ-
Icon, Class of Device oder Name), Controller sind mit Grafik und Rahmen hervorgehoben und stehen vorne. ✕ koppelt (Pair + Trusted- Connect), verbindet oder trennt; ≡ zweimal entfernt ein gekoppeltes Gerät. Für die Kopplung registriert die Shell einen eigenen BlueZ-Agenten („NoInputNoOutput“, nimmt alles an), damit es auch in der gamescope-Session ohne KDE-Agent klappt. Unbenannte, ungekoppelte Geräte werden ausgeblendet.
- Technik: NetworkManager und BlueZ über D-Bus mit
zbus(blockierend) in einem eigenen Thread (consoleui_core::network::spawn), die UI holt die Antworten alle 100 ms per Timer ab. Neu gelesen wird nur, solange die Einstellungen offen sind (alle 3 s, bei Suche/Auftrag 1 s). Ergebnisse kommen als Toast („Verbunden mit …“, „Kopplung fehlgeschlagen“). Logik ohne D-Bus (Modelle, Sortierung, Flags, Seitenzustand, Simulation) liegt incoremit Tests. - Entwickler-Option:
--fake-networksimuliert WLAN und Bluetooth (Netze, Passwortprüfung, Geräte bei der Suche, eine Kopplung, die immer scheitert) und ändert nichts am System. Snapshots mit--actionswarten jetzt, bis das Skript durch ist. - Getestet: alle Abläufe mit
--fake-networkper--snapshot(Liste, Passwort, Verbinden, Suche, Koppeln, Fehler, Entfernen). Auf diesem PC (nur Ethernet) nur lesend: Die WLAN-Seite zeigt „Kein WLAN-Adapter“, die Bluetooth-Seite den ausgeschalteten Adapter „fedora-pc“. - Nicht getestet (keine Hardware bzw. bewusst keine Systemänderung): echtes Verbinden mit
einem WLAN (
AddAndActivateConnection, WPA3/SAE, Löschen des Profils bei falschem Passwort), WLAN ein/aus undRequestScan, Bluetooth ein/aus, Gerätesuche, Koppeln mit dem eigenen Agenten (DualSense, Xbox), Verbinden/Trennen/Entfernen. Der Agent ist bewusst einfach (kein PIN-Dialog, alte Geräte bekommen „0000“). WEP und WPA-Enterprise werden abgelehnt.
- Toasts über laufenden Apps: Ist in gamescope eine App vorne (
Shell::shell_in_frontist falsch), erscheint der Hinweis in einem eigenen, transparentenNotificationWindow(ui/notification.slint, nutztui/toast.slint). Es bekommt vor dem MappenSTEAM_OVERLAY=1, aber keinSTEAM_INPUT_FOCUS, und ist ein Pixel schmaler als das Root-Fenster. Damit wählt gamescope es als Benachrichtigungsfenster: immer obenauf, nie fokussiert. Nach der Anzeigedauer blendet der Hinweis aus und das Fenster wird versteckt. Ist die Shell vorne oder läuft sie ohne gamescope, bleibt es beim Toast im Hauptfenster. - Entwicklungshilfe: Der
--actions-Schritttoastzeigt einen Testhinweis. - Verschachtelt getestet (960×540,
glxgears): Der Hinweis steht oben rechts über dem Spiel,GAMESCOPE_FOCUSED_WINDOWund der X11-Eingabefokus bleiben beim Spiel. Auch zusammen mit der offenen Steuerzentrale sind beide zu sehen, und der Fokus liegt beim Overlay. Steuerzentrale → Home geht danach, und ein Hinweis auf dem Home-Screen erscheint wieder im Hauptfenster. - Grenzen: gamescope ignoriert die Position des Benachrichtigungsfensters. Es zentriert das Fenster und skaliert es auf die Ausgabe, deshalb ist es fast bildschirmgroß (feste Größe über min = max in den Size-Hints, sonst zieht gamescope es auf Root-Größe). Ältere gamescope-Versionen unterscheiden Overlay und Benachrichtigung nur nach der Breite (> 1200 px = Overlay). Dort wäre das Fenster ein Overlay ohne Eingabe, also zu sehen, aber es könnte das Quick-Menü verdecken. Nicht auf echter Hardware getestet.
- Gefunden beim Test der Hinweise: Nach dem Schließen des Overlays gibt gamescope den Tastaturfokus auch der App vorne nicht zurück (wie schon bei der Shell).
- Lösung:
Gamescope::focus_appsetzt ihn auf das Fenster der App, falls er nicht in einem ihrer Fenster oder Unterfenster liegt (läuft alle 500 ms mitrestore_keyboard_focus).
-
Heroes im Hintergrund (6.5):
src/hero.rsdekodiert die Steam-Heroes (bis 3840 px breit) auf zwei Worker-Threads und verkleinert sie auf höchstens 1920×1080. Das alte Bild bleibt stehen, bis das neue fertig ist, dann blenden die beiden Ebenen über. Die Nachbarn der fokussierten Kachel (±1, +2, in der Bibliothek auch die Zeile darüber/darunter) werden vorab geladen, veraltete Aufträge verfallen beim nächsten Fokuswechsel, der Cache hält die letzten 12. Abgeholt wird mit einemTimer::single_shot, der sich nur bei offenen Aufträgen neu plant. -
Parallaxe (6.3):
ui/hero.slint(HeroLayer) ist 6 % größer als das Fenster und wandert mit der Fokusspalte um bis zu 3 % zur Gegenseite; beim Einblenden gleitet das Bild aus 5 % Zoom zurück (1,5 s). Beides animiert nur nach einer Änderung, ein ruhender Bildschirm zeichnet nicht neu. Mit „Animationen aus“ sind die Dauern 0 und die Verschiebung ist 0. -
Icons ohne Dateiendung:
consoleui_core::image_format::snifferkennt PNG, JPEG (Signatur) und SVG (Text) am Dateianfang;tiles::load_iconlädt damit z. B.~/AppImages/.icons/designcraft(alle sieben AppImage-Einträge zeigen jetzt ihr Icon statt des Buchstabens). -
Benchmark:
--benchgibt zusätzlich den größten Frameabstand und die längste Eingabeverarbeitung im UI-Thread aus. Messung echte Bibliothek, Home, 4 Läufe abwechselnd (Rechner wenig belastet):vorher nachher Ø fps 71–108 101–110 Renderzeit max 14–52 ms 14–20 ms max Frameabstand 19–62 ms 17–24 ms längste Eingabe im UI-Thread 12–25 ms 0,06–0,12 ms Unter starker Last (andere Builds, Load ≈ 32) waren es vorher bis 730 ms im UI-Thread, nachher höchstens 7 ms.
-
Nicht getestet: die Parallaxe in Bewegung (Snapshots zeigen nur den Endzustand), 4K-Ausgabe (dort ist ein 1920er-Hero etwas weicher).
Three agents worked in parallel in their own worktrees; the branches were merged into main.
- Spike Smithay (7.1): docs/spike-smithay.md. anvil (Smithay git main
24647fc8d001) builds in about 2 min and ran nested with its winit backend in KDE (never on a TTY).- Works: the shell natively on Wayland (dmabuf, presentation feedback,
--actions/--snapshot), X11 clients via anvil's XWayland (X11Wm, glxgears ≈ 110 fps, launched by the shell, came to the front, shell back after exit), nested gamescope via SDL on Wayland (FSR, 60 fps). - Problems: gamescope's native Wayland backend needs
zwp_relative_pointer_manager_v1(anvil only offers it with udev); gamescope's X11/SDL path never showed a window; anvil ignoresset_fullscreenbefore the first commit; glxgears has no_NET_WM_PID(7.3 needs a fallback); Smithay has no tearing-control/async page flip yet (VRR is there); Slint has no layer-shell, so overlays are shell toplevels placed by the compositor. - For the udev backend these packages are missing on this machine:
libinput-devel mesa-libgbm-devel libseat-devel libdrm-devel libdisplay-info-devel libei-devel. - Plan for 7.2:
crates/compositorbased on anvil,--winit/--drm, starts the shell withCONSOLEUI_COMPOSITOR=<control socket>(line-delimited JSON, types inconsoleui-core). Estimates updated in Epic 7. Open: project license (niri/cosmic-comp are GPL).
- Works: the shell natively on Wayland (dmabuf, presentation feedback,
- Nested gamescope per entry (7.10): context menu → "Gamescope options…" opens a card in the
settings style: start in gamescope on/off, resolution (native/720p/800p/1080p/1440p, width follows
the output's aspect ratio), upscaler (off/FSR/NIS/integer), FPS limit (off/30/40/60/90), HDR,
fullscreen; the bottom line previews the prefix. Saved per entry in
game_options.json. The launch runsgamescope <args> -- <command>in the same systemd scope, so stopping, exit tracking and window ownership work unchanged. Steam games are not supported (Steam starts the game itself; the only ways are Steam's own config files) — the card points togamescope … -- %command%in Steam's launch options instead.ENABLE_GAMESCOPE_WSIis removed for the nested gamescope (it showed a "Gamescope WSI Layer Error" inside the session).- Tested: unit tests, snapshots, desktop launch with
glxgears(process tree and scope checked, quitting via the quick menu), in the gamescope session the nested window was tagged and in front. - After the reboot: in the gamescope session (
gamescope -e,--dummy-launch glxgears, option set via--actions) the shell startedgamescope -W 960 -H 540 -f -- glxgears, and gamescope's own screenshot shows glxgears in front – the WSI fix works. - Not tested: HDR, NIS/integer quality, real entries, real gamepad.
- Tested: unit tests, snapshots, desktop launch with
- i18n (6.6): English is the source language, German comes from one gettext catalog
lang/de/LC_MESSAGES/consoleui.po(≈ 226 messages), bundled into Slint (@tr) and embedded inconsoleui_core::i18nfor Rust strings (tr/trf/trn) — no runtime gettext, no.mofiles. The language followsLANGUAGE/LC_ALL/LC_MESSAGES/LANG, or the new settings row "Language: Automatic / English / Deutsch", and switches without restart. The on-screen keyboard is QWERTZ for German and QWERTY for English; desktop names (Name[de]) follow the language. A test fails on missing, untranslated or stale catalog entries. Remaining German comments and log messages were translated to English.- Tested: snapshots of all screens in both languages (software renderer), runtime switch.
- Not tested: overlay/notification windows in gamescope, the real D-Bus backend's error texts, real gamepad. Known gaps: entry names loaded at startup keep the old language until restart; the German search heading is now "Suchen" (shares the msgid with the △ hint).
- GPU fault: a nested gamescope run in the Smithay spike (gamescope over anvil's XWayland)
triggered NVIDIA
Xid 51 BAD_TSGat 12:32; afterwards every new Vulkan device failed (NV_ERR_RESET_REQUIRED) until a reboot. After the reboot both re-runs passed without an Xid: the 7.10 test in the gamescope session, and nested gamescope via SDL on Wayland and on anvil's XWayland on the NVIDIA GPU (details in the spike doc). The earlier fault most likely came from the spike's frame-dump patch of anvil. Agents now run GPU tests one after another, not in parallel. - Development container:
dev/toolbox.shcreates a Fedora toolboxconsoleui-devwith all-develpackages (including the Smithay udev backend) and test tools; the code stays on the host. Tests, clippy, release build, snapshots and the full anvil build run inside it.
License: the project is now GPL-3.0-or-later (LICENSE), so code from niri can be reused.
Three agents worked in parallel (compositor, test VM, i18n), then cargo fmt ran over the whole
workspace with a new rustfmt.toml (max_width 120, use_small_heuristics = "Max", chosen because it
changed the least code).
- Compositor (7.2): new crate
crates/compositor(binaryconsoleui-compositor, Smithay git24647fc8d001, built in the dev container). Backends--winit(nested) and--drm(DRM/KMS + libinput + libseat/logind; accepts a software EGL device). All toplevels are fullscreen;set_fullscreenbefore the first commit is honoured. Globals: linux-dmabuf v4 with feedback,wl_drm, drm-syncobj (explicit sync), presentation-time, relative-pointer, pointer-constraints, viewporter, single-pixel-buffer, xdg-decoration, data device/primary selection. The compositor starts the shell withCONSOLEUI_COMPOSITORand quits with it (SIGTERM/SIGINT/Ctrl+Alt+Backspace clean up sockets).--screenshot-after MS PNGrenders the output offscreen into a PNG (basis for 7.12). - Control protocol:
consoleui_core::protocol, a Unix socket with one JSON object per line. Shell → compositor:Hello,Launched,Exited,Focus,Overlay,Screenshot. Compositor → shell:Welcome,Output,WindowMapped,AppGone,FocusChanged,ScreenshotDone. An app comes to the front once one of its windows shows content. Shell side:src/compositor.rs(takes precedence over gamescope; gamescope and desktop mode unchanged). - XWayland (7.3):
X11Wm; X11 toplevels fullscreen, dialogs centered, override-redirect windows above their owner, keyboard focus and X stacking follow the front window, clipboard bridged. Window → app mapping via_NET_WM_PIDor the X-Resource client PID (glxgears has no_NET_WM_PID) plusconsoleui_core::ownership; unclaimed windows go to the newest app without a window. - Session files:
session/consoleui-compositor-session(--drm) andsession/consoleui-compositor.desktop;session/install.shinstalls them when the compositor is built;session/consoleui-nested --compositorruns the nested session on our compositor. - Test VM:
dev/vm.sh(plain QEMU/KVM as the user, Fedora 44 Cloud image verified via the signed CHECKSUM, cloud-init usertester, virtiofs share of the checkout at the same path,virtio-vgawithout host GL,ssh/screenshot/seathelpers), seedocs/dev-vm.md.seatruns a command as an active logind session on seat0/VT 7. - i18n follow-up: entry names and descriptions follow a runtime language switch (
AppEntry.names,localize_entries); the German search heading is "Suche" again (English heading: "Find"). - Tested:
- Nested (
--winit) on the NVIDIA GPU, one run at a time, no Xid: shell fullscreen, a Wayland app and an X11 app (glxgears) through launch → front → quick menu → resume → exit → back to the shell, nested gamescope via the 7.10 option with gamescope's own Wayland backend. - In the VM with
--drmon seat0 (llvmpipe): mode 1280×800 set on Virtual-1, the shell rendered, glxgears launched through XWayland, mapped to its app and shown fullscreen, focus went to the shell for the quick menu and back to the game. ("Unable to become drm master" is logged but harmless.) - 128 core + 10 compositor + 8 shell tests, clippy,
cargo fmt --check(in the dev container).
- Nested (
- Bug found by hand in the VM: the keyboard did not reach the shell on
--drm(the pointer did). The shell's first buffer changed no front window, so the policy was not re-applied and the shell never got keyboard focus; nested runs hid it because a resize re-applied the policy, and the tests used--actionsinstead of real keys. Fixed inState::window_committed; verified with keys injected through QMPsend-key.dev/vm.sh trynow runs compositor + shell in the VM with one command. - Not tested: VT switching and hotplug on DRM, real games, Steam, real gamepad, HiDPI, other keyboard layouts, the login session through a display manager.
- Known gaps (next stories): toasts are not visible over a running app and the quick menu shows the
whole shell window above the game (7.6); the game still gets input while the quick menu is open,
gamepads still use
grab.rs(7.5); no popup grabs, no cursor on DRM unless the client sets one, nowp_fifo/commit-timing; background apps get frame callbacks only once a second; unclaimed normal windows stay invisible (Steam and launcher windows: 7.4). - Workflow change: the whole workspace (
cargo test/clippy --workspace) now builds only in the dev container, because the compositor needs-develpackages; on the host,cargo build/cargo runstill build the shell. glxgears is in Fedora'sglx-utilspackage (added to the toolbox and VM lists).
Two agents in parallel; both had to test with real key events (QMP send-key), not only --actions.
- Input isolation (7.5): while the quick menu is open, keyboard and pointer go only to shell
windows; the game's surface gets a pointer leave (its pointer lock/confinement is released and
restored afterwards). Keyboard focus returns to the game only after all keys are released, so the
game never sees the release of the key that closed the menu — no
restore_keyboard_focushacks. F1, Super+Escape andXF86HomePageare reserved by the compositor and sent to the shell asGuide, so the quick menu opens from the keyboard even while a game has focus (found with real keys in the VM: before, F1 went to the game). Gamepads: the shell keeps theEVIOCGRAB(grab.rs, driven by the same overlay state) — the shell is the only gamepad reader, and logind revocation would not affect fds a game opened itself. - Overlays (7.6): quick menu and toasts are separate shell toplevels announced with
ShellMessage::WindowRole; the policy stacks them above the app (Layer), toasts never get input. The game stays visible under the menu. Older peers keep working (Welcome.features). - Keyboard layout:
consoleui_core::keymapdetects the system layout (herede (nodeadkeys)); new settings row "Keyboard layout" (only under the compositor, Automatic + 16 layouts), applied at runtime viaKeyboardLayout/Keymapmessages. - DRM checks in the VM (with real keys): VT switching works (also mid-game, no stuck modifiers);
a new preferred mode was ignored — fixed; unplugging the output hands over to a second one; login
through SDDM into "ConsoleUI (own compositor)" works and Ctrl+Q returns to the greeter. The
compositor now logs to stderr and the session to the journal (
journalctl --user -t consoleui);session/install.shaccepts a toolbox build. New VM helpers:dev/vm.sh keys,dev/vm.sh output,VM_HEADS, a second VM viaCONSOLEUI_VM_DIR/VM_SSH_PORT. - Tested: a foot terminal as stand-in game logged exactly the keys typed outside the menu
(
abcde), none of the keys pressed while the menu was open; nested on the NVIDIA host the quick menu and a toast showed over glxgears and the game came back (no Xid); gamescope mode regression checked; 136 core + 15 compositor + 8 shell tests, clippy, fmt. - Not tested: real gamepad (also the grab in compositor mode), hidraw games and Steam, a real game's pointer lock, keyboard isolation of an X11 game with logged keys, password login at the greeter (autologin only), GDM/greetd, real monitors (EDID, HDR, refresh rates), HiDPI.
- Known gaps: games no longer get F1/Super+Escape/Home under the compositor; hidraw controllers
still reach the game while the menu is open (possible later fix:
SDL_JOYSTICK_HIDAPI=0, loses gyro/LED/rumble); the overlay stays on top ~450 ms while fading out; a monitor that comes back after a hand-over stays dark (single output); shutdown logs a harmless DRM "restore previous state" error.
- Transitions (7.7):
ShellMessage::Focuscarries an optionalTransition(the tile rectangle and how long the shell's launch screen takes to grow); the compositor announcesFEATURE_TRANSITIONS. Opening: the app's windows zoom out of the tile (or out of the launch screen where it is at that moment) to fullscreen and fade in; the image keeps its aspect ratio (scaled to cover the growing rectangle and cropped to it). Return ("Home" in the quick menu): the app shrinks into its tile on the home screen and fades out above the shell, which settles from a slight zoom and brightens. If the app closed its window itself, only the shell part runs. The Smithay-free logic is incrates/compositor/src/transition.rs(unit-tested);State::frame_windowsbuilds the frame's windows (front to back, the app being left raised above the shell, background apps hidden) andrender.rsturns anEffectinto rescale/relocate/crop elements. The shell keeps the launch screen up ~700 ms under the zooming app. Animations off → no transition (instant, as before). - Background music (6.7): settings row "Background music": Off (default) / Ambient / My music.
Ambient is generated (
consoleui_core::music, 48 s loop over four chords with bells and an echo, seamless) and streamed to its ownpw-cat --media-role Musicwith a 1.5 s fade; "My music" playsflac/ogg/opus/wavfiles from$XDG_DATA_HOME/consoleui/musicshuffled, paused withSIGSTOP/SIGCONT. It plays only while the shell is in front (no app, no launch screen, no boot screen).cargo run -p consoleui-core --example ambient_wav -- /tmp/ambient.wavwrites the loop to a WAV file. - Animation polish (6.8): focus ring with a gap around the tile, a light sweeping once across a newly focused tile, a ripple ring on press, a glass highlight on every tile, a gliding underline under the current tab, the info area on the home screen crossfades (old text sinks, new one rises) and an indeterminate progress bar on the launch screen. The settings list scrolls now (nine rows with the music row did not fit above the hint bar in a 720p window). Benchmark: render time Ø 6.0 → 7.0 ms, max frame gap unchanged.
- Animated background (6.9): settings row "Background": Artwork (default: the hero artwork, the
animated background where an entry has none), Animated (always, no artwork), Classic (the old
plain gradient). Slint has no custom shaders, so
consoleui_core::backdropis a per-pixel function (aurora bands in the accent of the focused entry, vignette, dither) rendered at 240×135 on its own thread at ~30 fps (3.7 ms per frame, too much for the UI thread) and scaled up smoothly; the color glides to the new accent. It runs only while visible and the shell is in front; with animations off it is one still frame. Costs: while it runs the window repaints at 30 fps instead of idling. Under heavy unrelated load (two Android emulators) the benchmark showed no difference between Classic and Animated; repeat on an idle machine. - Tested: nested on the NVIDIA host (
--winit, glxgears via--dummy-launch, one run, no Xid): a screenshot series every 70 ms through launch → zoom in, quick menu → Home → shrink into the tile, launch again from the running tile → zoom out of the tile. Music with a stand-inpw-catthat records the stream: fade in after the boot screen, fade out at the launch, back after the app exited. 138 core + 21 compositor + 8 shell tests, clippy, fmt. - Not tested: transitions on DRM in the VM, with a real game or Steam (splash windows), with a nested gamescope; the music with real speakers over a longer time; "My music" with real files.
- Known gaps: no rounded corners or shadow on the zooming game image (would need a shader); the return animation needs the app's window, so an app that quits shows only the shell part; "My music" pauses without a fade.
- What: the user asked for a "user selection"; of the two readings (a real greeter/login manager for Linux users, or PS5-style profiles inside the shell) they chose the profiles. A greeter (greetd IPC or PAM, Linux users with AccountsService avatars) stays open as an idea.
- Storage:
profiles.json(list, last chosen) andprofiles/<id>/withhistory.json,collection.json,game_options.jsonandsettings.jsonunder$XDG_DATA_HOME/consoleui. The ID is a slug of the first name and stays when renaming. On the first start the profile is named after the login name and gets copies of the old files (~/.config/consoleui/settings.jsonincluded), so an older ConsoleUI still works. - Flow: with two or more profiles the shell asks "Who's playing?" after the boot screen (the settings of the profile chosen last apply until then, e.g. its language). ✕ chooses, ≡ opens the menu (rename, change color, delete with a confirmation; the running profile cannot delete itself), "Add profile" opens the name entry (on-screen keyboard with a shift layer, words start with a capital, max. 20 characters, at most 8 profiles). The control center has "Switch profile" (also over a running game: the game goes to the background, like "Home"). Switching reloads settings (language, accent, sounds, music, …), history, pins and game options, re-sorts and greets with a toast; running apps keep running. The top bar shows the active profile's avatar instead of the placeholder circle.
- Code:
consoleui_core::profilesandprofile_picker(UI-free, 15 tests),src/profiles.rs(start profile, view),ui/profiles.slint. The loader no longer reads history/collection/game options; the shell applies the active profile's data. Options--profile <ID|NAME>and--start profiles. - Tested: snapshots with a scratch
XDG_DATA_HOME: the start screen, the menu, the name entry, switching at start and back through the control center with the real library (pins, history and hidden entries differ per profile, accent and language change), the first start creating a profile from the old files, adding and deleting (files removed). 153 core + 8 shell + 21 compositor tests, clippy, fmt. Also "Switch profile" over a running app on the desktop (glxgears via--dummy-launch: it keeps running). - Not tested: with a real gamepad and in the compositor/gamescope session (the screen is a layer of the main window, so nothing session-specific is expected).
- Known gaps: no avatar images (initial and color only); Steam's own "last played" counts for every profile; Steam itself and the games do not know about the profiles (save games are shared); no protection (PIN) for a profile.
- Launch handover: the launched app is handed to our compositor (or gamescope's baselayer) only
once the shell has rendered a frame after the launch screen's animation ended (rendering notifier,
checked by the 50 ms compositor poll; at the latest 300 ms later). The compositor then zooms the
app in from slightly smaller than fullscreen (
Transition { tile: None }), so the game never appears over a half-open launch screen. The launch screen closes ~700 ms after that handover. - Rounded corners (7.7 gap):
crates/compositor/src/rounded.rswraps each surface of the zooming app in an element that swaps Smithay's texture shader for one with an antialiased rounded-rect clip (approach after niri'sClippedSurfaceRenderElement). The radius follows the tile (12 % of the shorter side, at most 4 % of the output height) at the small end and is 0 at fullscreen, in both directions. Not scanned out directly while rounded; buffers with a transform other thanNormalare drawn without rounding. - Frosted glass: Slint 1.18 has no backdrop blur, so the hero workers also make a 192×108
copy blurred with σ 2.5 (≈ 25 px at 1080p);
GlassPanel(ui/glass.slint, globalGlass) shows it through, lined up with the window, above the accent gradient, frosted with a 62 % tint. Used by the context menu, the game options panel, the quit confirmation, the quick menu and toasts in the main window. Like Windows' Mica it shows the blurred background artwork, not the tiles in front of it. The overlay and notification windows above a game stay an almost opaque dark glass (blurring the game would need a compositor blur pass). Benchmark unchanged (render time Ø 6.0 → 5.4 ms, noise). - Calm info area: the home info area only crossfades now (old text out in half the focus duration, new text in after a short delay); the sink/rise motion made logo and text jump back and forth while scrolling.
- Keyboard glyphs: the hints show the buttons of the device used last: key caps (Enter, Esc,
Tab, F1, two arrow keys, …) after keyboard input, controller glyphs after gamepad input
(
input::hint_glyphs); before, keyboard glyphs appeared only without a connected controller. - Tested: nested compositor in the dev container (llvmpipe, glxgears) with screenshot series every 50 ms through launch → zoom in and quick menu → Home → shrink into the tile; snapshots of the hints with keyboard glyphs and of the frosted panels with a scratch Steam library (copied hero images). 141 core + 21 compositor + 8 shell tests, clippy, fmt.
- Not tested: on the NVIDIA host, on DRM in the VM, with a real game; the keyboard/gamepad switch with real devices (scripted actions bypass it).
- Observed: under llvmpipe in the dev container the shell sometimes renders no frame for ~0.5 s right after a launch (CPU starved by glxgears); the frame-based handover waits for it, the 300 ms fallback then brings the app anyway.
Branch agent/compositor-blur, on top of the UI feedback round (6.10).
- Protocol:
ShellMessage::Blur { role, regions, fade_ms }(featurebackdrop_blurinWelcome): the panels of the overlay or notification window as rectangles in window coordinates with a corner radius; an empty list removes them. The shell sends the resting rectangle of the open quick menu bar and of the shown toast (outproperties ofOverlayWindow/NotificationWindow) fromShell::sync_blur, called on open/close and from the 50 ms compositor poll (toasts are hidden by timers); only changes go out. The compositor fades the blur in and out withinfade_ms(the panel's own fade), so it does not have to follow the slide animation frame by frame. - Compositor:
backdrop.rs(Smithay-free, tested) keeps regions and fades per role and computes the captured area (bounding box + 64 px, clipped to the output).blur.rsrenders the windows below the overlay into an offscreen texture at half resolution (only the captured area), runs 3 downsampling and 3 upsampling dual Kawase passes (custom texture shaders via Smithay'sGlesRenderer) and draws the result under the window with the rounded-clip shader ofrounded.rs(rounded::clip_uniformsis now shared). Nothing is rendered again while the elements below (id, commit, geometry, alpha) and the area stay the same, so a static scene costs one cached texture draw. If the shaders do not compile, the windows are drawn without blur. - Cost: for the 1080p quick menu bar (1920×330) the capture is 960×229 pixels plus passes over at most 1/4 of that each, well below one full-screen composition pass; a toast is ~250×70. No extra copies of the game's buffer, no readback.
- Shell: with the feature the glass tint of panels in these two windows drops from 95 % to
50 % (
Glass.backdrop); the quick menu's dimming now ends at the bar, so the blurred game under the bar is not darkened twice. - Tested: nested compositor in the dev container (llvmpipe) with glxgears and with a second shell instance as a colorful stand-in game; with the blur passes disabled the captured backdrop lines up pixel-exactly with the game (orientation and offsets checked), with them the game's text under the bar and toast is smeared. 141 core + 25 compositor + 8 shell tests, clippy, fmt.
- Not tested: on the NVIDIA host (GPU cost not measured), on DRM in the VM, with a real game.
- Follow-up after user feedback (flicker and stutter on Home): the blur sat at the bar's resting
place and faded while the bar was still sliding, which showed as a flickering band over the bright
home screen. Now rendering notifiers on the overlay and notification windows call
Shell::sync_blurafter every frame, so the region follows the sliding bar and the moving toast (the bar's blur no longer fades; region updates keep a running toast fade going). The animated background pauses while the quick menu is open, so the shell redraws only the menu instead of two windows at once. Measured on the NVIDIA host: the blur takes ~0.45 ms CPU per frame (max ~1 ms). - Second follow-up (tested by the user in the VM): reopening the quick menu right when the
hide timer of the previous close ran out (450 ms) hid the window just shown, because
openis set only 30 ms after showing: the menu was then open (and took the input) but invisible. The open and close timers now check a generation counter (Shell::quick_generation). The cards keep one model (Shell::quick_items, only changed rows are replaced), so the focus animates from card to card instead of the row being rebuilt on every input (96 instead of 38 menu frames for three steps). Verified with timed--actionsaround the 450 ms mark and real key events in the VM. - Third follow-up (glitches on the NVIDIA host): following the sliding bar did not work: the region sent after a frame of the overlay often reached the compositor before that frame's buffer (the shell's swap waits for vsync), so the blur ran a frame ahead and flickered at the bar's edge. Now only a resting panel is blurred: the region is sent once the bar (or toast) has arrived and fades in within 150 ms, and it is removed at once when the panel starts to leave; while sliding, the panel is the plain glass. A blur that follows moving panels would need the region tied to the overlay's buffer (e.g. applied on the window's next commit), left for later.
- Fourth follow-up: the user found the flicker only nested in KDE; in the console session on a
TTY (DRM) there were no problems. So the blur follows the sliding bar and the toast again, from
the first frame and without a fade.
--no-blur/CONSOLEUI_NO_BLUR=1turn it off for checks. - Observed (pre-existing, also on 6.10): the winit backend logs
EGL_BAD_SURFACEfromeglQuerySurface(buffer age) after frames without damage and after screenshots, because the surface is no longer current; harmless, but noisy.
- Home focus beyond the row: up from the tile row selects the tabs of the top bar (a pill around
the tab, ◀ ▶ moves it, ✕ opens the page), down selects the buttons below the info ("Play"/"Open"
and "•••", ✕ acts like on the tile or opens the options menu); ○ or the opposite direction goes
back to the row.
consoleui_core::HomeArea(tested) holds the logic; the tile keeps its size but drops its ring while the selection is elsewhere. - Home row: one tile stays visible to the left of the focused one (
TileRow.lead). - Settings list: ends further above the hint bar, scrolls so that the row after the focused one is fully visible, and has room below the last row.
- Profile picker: the name no longer touches the avatar ring. Quick menu: no invisible menu after a quick reopen (generation counter for the open/close timers), the card focus animates, colors switch at once (no pale "ghost" card).
- Typing into apps (7.14): the compositor offers
text-input-v3to apps andinput-method-v2only to the shell's process (PID fromHello), because an input method sees everything typed;Welcomeannounces this as the featuretext_input.inputmethod.rsis the shell's input method on its own Wayland connection and thread,shell/typing.rsthe keyboard above the app. It opens with ✕ while a text field of the app in front is active and shows in the overlay window; the app keeps the keyboard focus (noOverlaymessage), the shell reads the controllers exclusively and types withcommit_string. ○ closes it. Its panel gets the compositor's backdrop blur. - Floating keyboard:
KeyboardPanel(crateui) replaces the keyboards built into the search, the Wi-Fi password and the profile name entry. R3 (F2 on the keyboard,Action::Reposition, new hint glyph) grabs it, the directions move it, R3, ✕ or ○ let go;consoleui_core::placement::KeyboardPlacement(tested) keeps it fully on the screen. - Focus look: list entries, cards and buttons no longer fill with the accent color.
FocusRingdraws an accent outline with two highlights travelling around it (animated only while focused and with animations on),FocusFilla light accent wash that trails the focus; the text keeps its color. A liquid "sloshing" fill was tried and dropped. - Gallery: shows the floating keyboard (
--movegrabs and moves it). - Test:
--dummy-launch footin the VM with--actions "wait:2000,confirm,wait:5000,confirm,wait:1200,confirm,right,confirm"(foot implementstext-input-v3). - Known gaps:
inputmethod.rsandshell/typing.rshave no unit tests, only that manual run covers them. X11/XWayland apps get no automatic keyboard, which matters for most games and Steam (7.4).
- Brightness (4.6):
consoleui_core::systemreads the backlight from/sys/class/backlight(firmware before platform before raw) and sets it through logind'sSetBrightness(busctl), which needs no root. Up/down on a new quick menu card, steps of 5 %, never below 5 %, because some panels go dark at 0. Without a backlight the card is not shown. - Resolution (5.5): new settings row, only when the compositor reports modes (DRM, never nested).
CompositorMessage::Modeslists the output's sizes,ShellMessage::Resolutionchooses one orNonefor the preferred mode; the shell sends it again after everyModes, so the choice also holds after a restart, a profile switch and a replug.modes.rs(Smithay-free, tested) picks the mode: the preferred one if it has that size, else the fastest progressive one; a size the monitor does not have falls back to the preferred mode. - Gamepad screenshot (7.12): Guide + R1 like in Steam, through
ShellMessage::SaveScreenshotto the same path as the Print key.GuideChordtherefore makes the Guide button count on release, so the quick menu opens when the button is let go, not when it is pressed. New--actionsstepscreenshot. - Checked in the VM (
--drm, llvmpipe): 1280×800 → 5120×2160 → 4096×2160 → back to automatic, the shell refits each time and nothing crashes; a screenshot at 5120×2160 is complete; a saved 1024×768 is applied at start (about 0.4 s after the preferred mode) and survives a new preferred mode from the monitor. Brightness only with a forced fake backlight in a snapshot (card, bar, hints). - Not tested: a real gamepad (
GuideChordhas unit tests, the chord itself never ran),SetBrightnesson a real panel, a real TV. - Known gaps: the gamepad screenshot works only under our compositor, not in gamescope or on the desktop. The game also sees R1 during the chord. There is no "keep this resolution?" dialog with a revert: a mode the TV cannot show stays saved in the profile. No brightness for external monitors (DDC/CI).
- Sources: PackageKit over the system bus (not on image-based systems,
/run/ostree-booted),flatpak,fwupdmgr --jsonandrpm-ostreeas programs withLC_ALL=C. A source that is not there is left out, one that fails shows in the page's status line.consoleui_core::updateshas the model, page state, parsers andFakeBackend(--fake-updates);src/updates.rsthe real backend on its own thread;src/shell/updates.rsshows the page in the Wi-Fi page's layer. - Page: ✕ opens what changed in a dialog (PackageKit's update text or changelog and CVEs, fwupd's release text, the commit subject for Flatpak), □ asks and installs all, ≡ searches again. Security updates are marked. Nothing is installed while an app runs, and the search in the background (after 2 minutes, then every 6 hours) waits for that too; its toast respects the "Notifications" setting.
- Install: Flatpak at once; PackageKit only downloads and triggers the offline update
(
Offline.Trigger("reboot")), so packages never change under the running session. - Tested: on the host the list matches
pkcon get-updates(read-only, security flags too); in the VM a real install through the UI prepared the offline update (/system-update). Not tested: the offline update's restart itself, Flatpak and firmware installs,rpm-ostreeand other distributions. - Known gaps: no polkit rule. The VM's test user is in
wheel; a session user without that right gets an error toast, as a console session has no password dialog. The transaction waits for PackageKit'sFinishedwithout a timeout, on the update thread. Arch and NixOS have no usable PackageKit, there only Flatpak and fwupd show.
- gamescope-Fokussteuerung ist kaum dokumentiert und auf XWayland bzw. Steam ausgelegt → deshalb Spike 0.3 früh einplanen. Falls das nicht klappt, wird Epic 7 wichtiger.
- Overlay über Spielen (4.6) ist mit gamescope der schwierigste Teil.
- Testen der Session am besten zuerst verschachtelt (
gamescope -- consoleuiim KDE-Desktop) und erst danach auf einem TTY bzw. als Login-Session.
- Steam's windows during a launch: the fallback for windows without a known owner took the Steam
client's splash, "Launching" and shader dialogs for the game, so the launch screen closed over them.
ownership::is_steam_clientnow keeps them away from a Steam game, in the compositor and in the gamescope session; they stay behind the launch screen until the game's own window shows content. - Way out: a hidden Steam dialog may be waiting for an answer (cloud conflict, EULA, launch options,
shader processing with its Skip button). After 15 s without a game window the launch screen offers
"Show Steam" (
ShellMessage::ShowSteam).STEAM_START_TIMEOUTwent from 90 s to 10 minutes, because Steam may process shaders for that long; quitting a game that has not started ends the wait. - Window switcher (4.7):
consoleui_core::switcherand the row inquickmenu.slint. Up from a card or L1/R1 from every card reach it (up/down change the volume on some cards). The compositor answersListWindowsafter the next frame with previews (preview.rs, about 480 px wide, in$XDG_RUNTIME_DIR/consoleui-previews-<socket>),RaiseWindowputs a window above the others of its app. - Tested: nested compositor with a stand-in
steamscript and an isolatedHOME: on the old code the stand-in's splash is shown after 12 s, now it stays hidden, "Show Steam" appears and the game comes to the front by itself. Switcher with two apps of two windows each: previews, switching and raising work. - Not tested: the real Steam client (window names and process tree of its dialogs), a real game, the gamescope path, DRM in the VM. Steam's dialogs are used with the gamepad mouse (Story 7.15).
- Open observation: in 2 of 3 runs with a second glxgears window it was first drawn only 300 px wide (llvmpipe, nested); not seen in 2 runs of the old code, in another run of the same test it was complete. The sizing code did not change. Four later runs with 12 screenshots did not show it, the cause is unknown. Check with a real game.
- Direct scanout (7.8):
FrameFlags::DEFAULTalready allowed planes, what was missing is telling clients which formats reach one:drm.rsbuilds per-output dmabuf feedback with a scanout tranche (primary and overlay planes, limited to formats we can sample),render::send_dmabuf_feedbacksends it after each frame. Transitions and the blur stay composited (RoundedSurfaceand the backdrop have no underlying storage). - VRR (7.9):
Policy::wants_vrr(a game in front, no quick menu),ShellMessage::Vrr,vrrinCompositorMessage::Modes. Only monitors that switch without a modeset. Under VRR there is no vblank to aim at: a commit cancels the render timer and goes out at once, presentation feedback saysVariable. - Monitor switch (7.11): a plugged-in monitor that
pick_outputprefers takes over; unplugging it goes back. - Tested: unit tests; VM with two heads (
--output Virtual-2: plugging it in switches, unplugging switches back, the game keeps running and fills the output); VRR row and messages against a stand-in control socket. - Not tested: direct scanout never happened in a test: the VM's clients (llvmpipe, lavapipe) use shm
buffers, and
--drmmust not run on the host.use_vrrand the frame pacing under VRR never ran either, QEMU has no VRR. On real hardware, look fordirect scanout onandVRR oninjournalctl --user -t consoleui. If a game flickers or stalls, tryCONSOLEUI_NO_SCANOUT=1.
- Gamepad mouse:
consoleui_core::pointer(stick → pixels, buttons → commands),src/shell/mouse.rs, thePointer*messages (featurevirtual_pointer). The shell reads the controller exclusively like in the quick menu; the compositor moves its seat pointer. The pointer starts in the middle of the screen. - Fixed on the way:
evdev::key_actiononly knew ✕, ○, Start, Guide and the D-pad, so while grabbed □, △, L1, R1 and R3 did nothing: in the quick menu (L1/R1 to the switcher, □ to quit there) and on the keyboard over apps. It now matches the gilrs mapping; Xbox controllers report X and Y the wrong way round and are swapped. - Tested: VM on the seat with a virtual Xbox pad (uinput) and foot with mouse reporting: the stick moves the pointer, ✕, □ and R1 reach the app as left click, right click and wheel, after ○ a press of ✕ clicks nothing.
- Tested with a stand-in
steamscript (nested): "Show Steam" starts the gamepad mouse, the process withSteamAppIdends it. - Not tested: the real Steam client, a real DualSense. Steam Input reads the controller too (hidraw), so its desktop layout may act at the same time. A Wayland app that sets no cursor of its own shows no pointer (foot and XWayland apps do).
- Plymouth theme
session/plymouth/consoleui(script plugin; Fedora:plymouth-plugin-script, the others ship it with plymouth).consoleui.scriptdraws whatui/boot.slintdraws with the same scale factor (max(0.4, min(w / 1920, h / 1080))), layout and timings (glow pulsing every 900 ms, dots every 700 ms), so the splash and the shell's boot screen look the same at every resolution. The images are still pictures at twice the reference size (184 KB in the initramfs); Plymouth scales them and animates their opacity. Slint's circle gradient spans half the box diagonal,generate.pybakes the glow the same way. The disk password prompt (glass field, padlock, bullets), questions, messages and an update screen (title and progress bar for offline updates and upgrades) are part of the script. A first version with the two-step plugin (60 pre-rendered frames, 3 MB) could not scale and jumped in size at the handover. - Start like a console: the splash starts black and fades in (0.8 s, ease-out). When the firmware showed a logo,
install-plymouth.shcopies it from the ACPI BGRT table (/sys/firmware/acpi/bgrt, a BMP and its offsets) withfirmware-logo.py(standard library only) tofirmware.pngand writes its offsets into the installed script; the splash draws it at the same place, holds it 0.4 s and fades it out before its own logo fades in, so the firmware logo does not vanish with a cut. The firmware screen is taken as horizontally centered and the same shape as Plymouth's. Run the installer again after a firmware update. Only the logo from power-on is out of reach: a board's BIOS option that turns the logo off (then black, fading into ours) or a vendor tool for a custom logo. - Handover without a gap: three things showed the text console or black between the splash and the shell.
SDDM waits for
plymouth-quit, which tears the splash down before the session exists: the SDDM drop-in frominstall-plymouth.shmakes it deactivate Plymouth instead (like GDM) and quit it with--retain-splashonce the compositor's control socket exists plus 3 s. The compositor turned all connectors off when it opened the GPU, and Smithay'sinitialize_outputcommits an empty frame: while Plymouth runs, the compositor keeps the connectors and sets up the DRM output only with the shell's first frame (PendingOutput, at most 5 s; thewl_outputexists from the start so the shell gets its size). - Generated:
session/plymouth/generate.py(Pillow, Noto Sans ExtraBold) renders the PNGs; they are checked in.sudo session/install-plymouth.shinstalls and selects the theme, adds the SDDM drop-in when SDDM is installed, rebuilds the initramfs and remembers the previous theme;--restoregoes back to it and removes the drop-in. - Tested in the VM (
VM_UEFI=1, SDDM autologin into "ConsoleUI (own compositor)", kernel argumentsrhgb quiet plymouth.ignore-serial-consolesbecause the VM has a serial console): firmware logo, splash, then the shell's boot screen fading into the home screen, no black frame (screenshots every ~60 ms and a trace of the scanned-out framebuffer from debugfs). Password prompt, messages and the update screen withplymouthdby hand. The TianoCore logo of OVMF stays in place and fades into ours; OVMF itself prints two "BdsDxe: loading" lines above it while the boot loader loads, which vendor firmware does not. With SeaBIOS (the VM's default) the BIOS, iPXE and GRUB print text first; a real PC with UEFI does not. - Not tested: real hardware and 4K; GDM (does its own handover) and other display managers; a second monitor (the compositor drives one output, the splash stays on the other until Plymouth quits).