Is there an existing issue for this?
Are you using any gamescope patches or a forked version of gamescope?
Current Behavior
When gamescope is prepended to a Steam game's launch parameters, regardless of switches used, no window ever actually appears - however, the game is still running in the background with audio appearing to play out of... nothing. It simply has to be stopped by cancelling the process from Steam.
It seems to affect multiple games, but I've tried with Senko no Ronde 2 and Spelunky just for examples.
Interestingly, in KDE's Wayland session, there are windows that appear linked to gamescope, but they are invisible and nothing comes up when activated - they also don't close when requesting the windows to close, again prompting a force close from Steam's UI.

That said, Gamescope still works normally on this setup with non-Steam titles, using Proton via my own Bottles-like launcher which simply prepends gamescope [...] as a scaling option.


Steps To Reproduce
- Set a Steam title's launch parameters to
gamescope -W (resX) -H (resY) -e -- %command%
- Launch the game
- Observe audio playing from the game in the background, despite no window appearing.
Hardware information
- Distro: Arch Linux
- CPU: AMD Ryzen 5 5600X
- GPU: NVIDIA GeForce RTX 3060ti
- Driver Version: NVIDIA 565.77
Software information
- Desktop environment: KDE 6.2.5
- Session type: X11 & Wayland
- Gamescope version: `gamescope version 3.16.1-34-g328f06b0 (gcc 14.2.1)`
- Gamescope launch command(s): `gamescope -w 1920 -h 1200 -W 3840 -H 2160 -r 60 -e -- %command%` (and permutations thereof)
Which gamescope backends have the issue you are reporting?
Logging, screenshots, or anything else
For what it's worth, Gamescope's console output is very similar in all cases, minus the Steam-specific stuff. Pasting in the output running Steam from a CLI:
[gamescope] [Info] console: gamescope version 3.16.1-34-g328f06b0 (gcc 14.2.1)
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
[gamescope] [Info] scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts'
[gamescope] [Info] scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts/00-gamescope'
[gamescope] [Info] scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts/00-gamescope/common'
[gamescope] [Info] scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/common/inspect.lua' (id: 0)
[gamescope] [Info] scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/common/modegen.lua' (id: 1)
[gamescope] [Info] scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/common/util.lua' (id: 2)
[gamescope] [Info] scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts/00-gamescope/displays'
[gamescope] [Info] scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/asus.rogally.lcd.lua' (id: 3)
[gamescope] [Info] scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/deckhd.steamdeck.deckhd-lcd.lua' (id: 4)
[gamescope] [Info] scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.lcd.lua' (id: 5)
[gamescope] [Info] scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.oled.lua' (id: 6)
[gamescope] [Info] scriptmgr: Loading scripts from: '/etc/gamescope/scripts'
[gamescope] [Warn] scriptmgr: Directory '/etc/gamescope/scripts' does not exist
[gamescope] [Info] scriptmgr: Loading scripts from: '/home/seong/.config/gamescope/scripts'
[gamescope] [Warn] scriptmgr: Directory '/home/seong/.config/gamescope/scripts' does not exist
Game Recording - would start recording game 574160, but recording for this game is disabled
Adding process 194432 for gameID 574160
[gamescope] [Info] vulkan: selecting physical device 'NVIDIA GeForce RTX 3060 Ti': queue family 2 (general queue family 0)
[gamescope] [Info] vulkan: physical device supports DRM format modifiers
[gamescope] [Info] wlserver: [backend/headless/backend.c:67] Creating headless backend
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344241 (VkResult: 0)
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344258 (VkResult: 0)
[gamescope] [Info] vulkan: supported DRM formats for sampling usage:
[gamescope] [Info] vulkan: AR24 (0x34325241)
[gamescope] [Info] vulkan: XR24 (0x34325258)
[gamescope] [Info] vulkan: AB24 (0x34324241)
[gamescope] [Info] vulkan: XB24 (0x34324258)
[gamescope] [Info] vulkan: RG16 (0x36314752)
[gamescope] [Info] vulkan: NV12 (0x3231564E)
[gamescope] [Info] vulkan: AB4H (0x48344241)
[gamescope] [Info] vulkan: XB4H (0x48344258)
[gamescope] [Info] vulkan: AB30 (0x30334241)
[gamescope] [Info] vulkan: XB30 (0x30334258)
[gamescope] [Info] vulkan: AR30 (0x30335241)
[gamescope] [Info] vulkan: XR30 (0x30335258)
[gamescope] [Info] vulkan: Creating Gamescope nested swapchain with format 44 and colorspace 0
[gamescope] [Info] wlserver: Using explicit sync when available
[gamescope] [Info] wlserver: Running compositor on wayland display 'gamescope-0'
[gamescope] [Info] wlserver: [backend/headless/backend.c:17] Starting headless backend
[gamescope] [Info] wlserver: Successfully initialized libei for input emulation!
[gamescope] [Error] wlserver: [xwayland/sockets.c:64] Failed to bind socket @/tmp/.X11-unix/X0: Address already in use
[gamescope] [Info] wlserver: [xwayland/server.c:107] Starting Xwayland on :1
ERROR: ld.so: object '/home/seong/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Adding process 194450 for gameID 574160
ERROR: ld.so: object '/home/seong/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/seong/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
[gamescope] [Info] pipewire: stream state changed: connecting
[gamescope] [Info] pipewire: stream state changed: paused
[gamescope] [Info] pipewire: stream available on node ID: 129
[gamescope] [Info] vblank: Using timerfd.
Adding process 194452 for gameID 574160
ProtonFixes[194562] INFO: Running protonfixes
...
[gamescope] [Warn] xwm: got the same buffer committed twice, ignoring.
[gamescopereaper] [Info] reaper: Parent of gamescopereaper was killed. Killing children.
Is there an existing issue for this?
Are you using any gamescope patches or a forked version of gamescope?
Current Behavior
When
gamescopeis prepended to a Steam game's launch parameters, regardless of switches used, no window ever actually appears - however, the game is still running in the background with audio appearing to play out of... nothing. It simply has to be stopped by cancelling the process from Steam.It seems to affect multiple games, but I've tried with Senko no Ronde 2 and Spelunky just for examples.
Interestingly, in KDE's Wayland session, there are windows that appear linked to gamescope, but they are invisible and nothing comes up when activated - they also don't close when requesting the windows to close, again prompting a force close from Steam's UI.
That said, Gamescope still works normally on this setup with non-Steam titles, using Proton via my own Bottles-like launcher which simply prepends
gamescope [...]as a scaling option.Steps To Reproduce
gamescope -W (resX) -H (resY) -e -- %command%Hardware information
Software information
Which gamescope backends have the issue you are reporting?
Logging, screenshots, or anything else
For what it's worth, Gamescope's console output is very similar in all cases, minus the Steam-specific stuff. Pasting in the output running Steam from a CLI: