Feature request: Multi-user support in Game Mode via an outer system Gamescope + nested per-user sessions

未关闭
#3,112 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
18/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
linux

调研方向

The issue names gamescope-session, Gamescope, Wayland, and Steam sessions, but does not point to specific source files or tests. Start by reading the Game Mode session setup and checking how Gamescope supports nested Wayland sessions. A contribution would need a defined, accepted scope and a way to verify multiple isolated users can launch sessions through a shared compositor.

由索引模型根据 Issue 内容生成。

描述

With SteamOS expanding beyond handhelds into living room / HTPC setups (like the new Steam Machine), the single-user deck auto-login model in Game Mode feels pretty limiting compared to consoles like the Switch or Xbox.

Right now, switching accounts means logging out of the Steam client under the same Linux UID, which doesn't isolate Desktop Mode files, non-Steam saves, or local configs. And if two people want to play on the same TV with their own accounts, you basically have to hack together desktop multi-seat or manual containers.

Since Gamescope already works both as a DRM/KMS compositor and as a nested Wayland client, I was wondering if it's feasible to decouple the outer shell from the user sessions:

  • Run an outer, unprivileged system-level Gamescope that owns the display, global overlays (Quick Access, volume, etc.), and a simple "console lobby" screen.
  • Expose its Wayland socket to authorized local users (via ACLs or a dedicated group) for zero-copy DMA-BUF sharing.
  • Keep each person as a normal Linux user with their own $HOME, PipeWire instance, and Steam userdata. When someone picks a game from the lobby (Switch-style "Who's playing?"), spawn the inner Steam/game session under that UID and point WAYLAND_DISPLAY to the outer Gamescope socket.

Long term, having the display compositor decoupled from the user session could also make it way easier to route separate controllers to separate user sessions, or even support Xbox-style multi-account local co-op down the road (though I know shared /games permissions, shader caches, and Steamworks single-user assumptions would still be tricky to sort out).

Is anything like a system-level compositor / true multi-user Game Mode on the roadmap for living room SteamOS?


Detailed architecture notes & diagram (formatted with AI)
Summary

Currently, SteamOS's Game Mode (gamescope-session) is tightly coupled to a single Linux user (deck) with auto-login. While this works well for personal handhelds like the Steam Deck, it creates friction in shared living room setups (e.g., Steam Machine / HTPCs) compared to traditional consoles like the Nintendo Switch or Xbox.

This RFC proposes decoupling the outer system compositor from per-user game/Steam sessions using nested Gamescope over a shared Wayland socket, enabling true OS-level multi-user isolation without sacrificing the seamless console UX.


Current Limitations
  1. No OS-level user isolation in Game Mode: Switching accounts requires logging out and back into the Steam client under the same Linux UID, which makes Desktop Mode privacy, per-user non-Steam apps, and separate local configs awkward.
  2. High friction for living room sharing: Unlike the Nintendo Switch ("Select a user" upon launching a game) or Xbox (on-demand account sign-in tied to controllers), SteamOS still feels like a single-user PC wrapped in a kiosk shell.
  3. Local multi-account co-op is difficult: Running two separate Steam accounts on a single living room TV currently requires hacky desktop multi-seat setups or manual nested containers.

Proposed Architecture

Since Gamescope already supports both DRM/KMS direct output and nested Wayland client mode, SteamOS could split the session into two decoupled layers:

[ Physical Display (DRM/KMS) ]
              ▲
              │  (Outer System Gamescope: Global UI, Quick Access, Audio/Power)
              │
   [ Shared Wayland Socket ]  <-- Exposed via ACL / dedicated group (zero-copy DMA-BUF)
              ▲
              │  (Inner Per-User Sessions: Isolated UID, $HOME, PipeWire, Steam/Game)
    ┌─────────┴─────────┐
[ User A ]          [ User B ]

  1. System-Level Outer Gamescope (The Console Shell):
  • Runs as a dedicated, unprivileged system compositor owning the display (DRM/KMS), global overlays (volume, power, Quick Access Menu), and the shared "Console Lobby."
  • Exposes its Wayland socket with controlled permissions (e.g., ACLs or a gamescope-users group) so authorized local Linux users can attach surfaces with zero-copy DMA-BUF sharing.
  1. Per-User Isolated Sessions (Switch-Style Launch Flow):
  • Each family member has a standard Linux user account (isolated $HOME, saves, Steam userdata, and PipeWire audio).
  • Booting the console lands directly in the outer lobby without a traditional desktop login screen. When launching a game, the shell prompts "Who is playing?" and spawns the inner Steam/game process (or nested Gamescope) under the selected Linux UID, pointing WAYLAND_DISPLAY to the outer compositor's socket.
  1. Future Extensibility (Xbox-Style Multi-Account Co-op):
  • With the display layer decoupled from the user session, this lays the groundwork for routing separate controllers (udev/input focus) to separate user sessions, or eventually pairing a shared game process with per-user Steamworks IPC proxies for simultaneous multi-account local co-op.

Key Benefits
  • True Console UX: Instant boot to lobby, fast user switching without tearing down the display server or restarting the compositor.
  • Clean Linux Security & Privacy: Each user's Desktop Mode files, browser data, and non-Steam saves remain strictly isolated by standard UNIX permissions.
  • Leverages Existing Tech: Builds directly on Gamescope's native nesting and Wayland's DMA-BUF architecture rather than reinventing the display stack.

Known Challenges to Solve
  • Shared Game Library & Shader Cache: Managing read/write permissions for a shared /games library and pre-compiled shader caches across multiple Linux UIDs (e.g., via a shared group or read-only base + per-user overlay).
  • Input Routing: Ensuring controllers are cleanly routed to the active nested session without focus conflicts.
  • Steamworks Compatibility: Simultaneous multi-account play within a single game instance would still require future Steamworks SDK support or a proxy layer.

Would love to hear thoughts from the SteamOS / Gamescope maintainers on whether a decoupled system-compositor approach is something on the radar for living room SteamOS devices!

主要语言
没有语言数据
星标
2.7k
派生
89
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ValveSoftware/SteamOS 的其他 Issue

查看 ValveSoftware/SteamOS 的全部 Issue

相似的 Issue

更多 Desktop Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。