Steam-Headless / docker-steam-headless

A Headless Steam Docker image supporting NVIDIA GPU and accessible via Web UI
GNU General Public License v2.0
730 stars 79 forks source link

Gamescope #102

Closed Cheerpipe closed 7 months ago

Cheerpipe commented 8 months ago

Is your feature request related to a problem?

First of all, thanks for make linux headless gaming easy and enjoyable. I have been using steam headless for about two weeks and can't be more happy with this.

Now, the request...

Not sure if it is a problem or an expected behavior consiering Steam Headless nature. I installed gamescope from debian repositories but this is not working ¿at all?. I am an almost complete linux noob so i dont't know if it is even posible to run gamescope in steam headless.

What is your feature request?

Being able o install and use gamescope

Are there any workarounds?

No response

Additional Context

Current gamescope error log:

[default@SteamHeadless ~]$ gamescope
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
wlserver: [backend/headless/backend.c:82] Creating headless backend
vulkan: selecting physical device 'NVIDIA TITAN RTX': queue family 2
vulkan: physical device supports DRM format modifiers
vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x3231564E (VkResult: 0)
vulkan: supported DRM formats for sampling usage:
vulkan:   0x34325241
vulkan:   0x34325258
wlserver: [wayland] unable to lock lockfile /tmp/.X11-unix/run/gamescope-0.lock, maybe another compositor is running
wlserver: Running compositor on wayland display 'gamescope-1'
wlserver: [backend/headless/backend.c:18] Starting headless backend
wlserver: [xwayland/sockets.c:63] Failed to bind socket @/tmp/.X11-unix/X0: Address already in use
wlserver: [xwayland/server.c:92] Starting Xwayland on :1
wlserver: [types/wlr_surface.c:748] New wlr_surface 0x5622b25c5a00 (res 0x5622b25c7670)
wlserver: [xwayland/server.c:250] Xserver is ready
pipewire: pw_context_connect failed
Warning: failed to setup PipeWire, screen capture won't be available

Host OS Ubuntu server 23.10 VGA: RTX titan Driver: 545.29.02

Cheerpipe commented 7 months ago

I got it "works" by simply installing it using apt install gamescope and adding nvidia_drm.modeset=1 on the host grub file, however, it is unusable on nvidia cards right now but this is ourtside steam-headless scope.