Skip to content

The desktop

TL;DR. KDE Plasma runs as on the Frame: as the Desktop app in a window of the VR session, from Steam's + → Launch Program, with one controller as the mouse. Software comes from Flathub through Discover, as on SteamOS. Desktop mode, Plasma started instead of the Steam client, works as on the Frame but is not tried on the headset.

The Desktop app

Valve's steamdeck-kde-presets puts Desktop into Steam's + → Launch Program (deckard-nested-desktop.desktop, X-Steam-Special=Desktop). Steam starts it like any other app in the running session:

  • steamos-nested-desktop gives Plasma its own runtime directory, shares the audio sockets into it, and starts startplasma-wayland in its own D-Bus session.
  • kwin runs nested as a 1280×800 window of gamescope, without a lock screen.
  • Return to Gaming Mode on the desktop ends it.

The package also brings Valve's Plasma defaults and look-and-feel packages, and Steam's autostart inside Plasma.

How it is put together

  • Plasma is Holo's (6.5.3, Qt 6.10). The Frame's own build (6.2.5) needs its private base's Qt 6.8. The image adds Dolphin and Konsole, about 1.3 GiB in all: the system image is 6,432 MiB of super's 8 GiB.
  • Software, as on SteamOS: Discover and Flathub. Holo's flatpak and discover (6.5.3, matching its Plasma) install, update and remove Flathub apps system-wide, in /var/lib/flatpak, which the Frame's offload binds (var-lib-flatpak.mount) put on the data partition; an app's own data is in ~/.var/app. steamos needs no password for it: flatpak's polkit rule lets the wheel group's active local session install. Both stay through reboots and upgrades. An app starts from Plasma's menu, and in Gaming Mode from Steam's
  • menu. The system image itself stays read-only (userspace.md).
  • plasma.desktop is Valve's (start-gamescope-session plasma-session.target), as on the Frame, whose Plasma build leaves it out. Holo's plasma-workspace ships its own, which starts Plasma without SteamVR. build-userspace.sh installs Valve's over it and checks the owner.
  • Clicks. kwin chooses its X11 backend (gamescope sets DISPLAY). For a window that is not Steam's, gamescope sends the laser's click as a touch and sets _STEAMOS_TOUCH_POINTER_EMULATION on Xwayland's root; Valve's Xwayland turns that touch into the pointer's click. Holo's Xwayland 24.1.9 does not, and the Frame's needs its private base's libei (ei_device_text_keysym), so kwin got bare touches and ignored them. overpressure-gamescope's gamescope-non-steam-window-click.patch gives such windows the click as the left button, as gamescope already does for game windows; hover is unchanged.
  • One launch at a time. steamos-nested-desktop first removes $XDG_RUNTIME_DIR/nested_plasma. A second Desktop started while one runs removes the first one's runtime directory with kwin's Wayland socket in it: kded6 fails ("Failed to create wl_display") and Plasma stays black.
  • The laser is the dashboard's (SteamVR configuration), one controller is enough: trigger left click, joystick click right click, grip middle click, joystick scroll, B or Y back. A or X is the laser's home, as on the Frame. SteamVR sends it as OpenVR button 1 (k_EButton_ApplicationMenu, the compositor's VREvent_ButtonPress, as back is button 2); the Frame's Steam client acts only on button 2 (k_EButton_Dashboard_Back), and neither SteamVR nor gamescope handle 1, so it does nothing on the Frame either.

Desktop mode

Desktop mode works as sddm runs it on the Frame. Steam's VR power menu does not offer Switch to Desktop, so in VR the desktop is the Desktop app above; desktop mode is not tried on the headset:

  1. Steam's Switch to Desktop asks steamos-manager, which writes a one-shot autologin (/etc/sddm.conf.d/zzt-steamos-temp-login.conf, Session=plasma.desktop) and ends the session. Default to Desktop Mode on startup writes zz-steamos-autologin.conf instead.
  2. pico4-session.service starts the next session after 5 s. Its session-target takes the target from sddm's autologin, read as sddm reads it: /usr/lib/sddm/sddm.conf.d, then /etc/sddm.conf.d, then /etc/sddm.conf, with a later setting winning. It follows that session's start-gamescope-session TARGET line: plasma.desktop gives plasma-session.target. PICO4_SESSION_TARGET in /etc/overpressure/session.conf overrides it.
  3. plasma-session.target is SteamVR and gamescope without the Steam client. steamvr-nested-desktop.service runs steamos-nested-desktop, and Plasma floats at 1920×1080 as the overlay valve.plasma.desktopmode. steamos-manager removes the one-shot login in the new session.
  4. Return to Gaming Mode (steamosctl switch-to-game-mode) goes back the same way.

session-switch runs as root around each session:

  • At the first start of a boot, it removes a one-shot login left from before, as sddm's reset-oneshot-boot.conf does.
  • It records the running target in /run/pico4/session-target.
  • A session that ends because the next one starts another target is a switch, not a crash: it resets the session's start limit (systemctl reset-failed).

steamvr-ended and pico4-steamvr-failed.service stop the running target, from $GAMESCOPE_SESSION_TARGET. The room view, Overpressure Settings and the VR CPU limits run with SteamVR, so they run in both sessions.

pico4-userspace-check requires the Desktop entry, steamos-nested-desktop, startplasma-wayland and kwin_wayland_wrapper, and checks the recorded target.

Verified results

Check Result
+ → Launch Program → Desktop, worn Plasma in a window of its own; hover, clicks, right click, middle click and scrolling with one controller; Dolphin opens folders and its window drags
Switch to Desktop not in Steam's VR power menu