Skip to content

cs2 wont start with gamescope #2047

@cone16v

Description

@cone16v

Is there an existing issue for this?

  • I have searched the existing issues

Are you using any gamescope patches or a forked version of gamescope?

  • The issue occurs on upstream gamescope without any modifications

Current Behavior

Image

Running cs 2 in wayland (set wayland in cs2.sh)
it eihter doesnt open at all or opens minimized and you cant unminimize it

Steps To Reproduce

1.Start the game in wayland mode (wayland in cs2.sh) with the launch options : gamescope -w 1280 -h 960 -W 1920 -H 1080 -f -S stretch -- %command%
2. Game starts minimized and you cant open it or game doesnt open at all
3. gg

Hardware information

OS: CachyOS x86_64
Kernel: Linux 6.18.0-3-cachyos
CPU: AMD Ryzen 5 2600X (12) @ 3.60 GHz
GPU: AMD Radeon RX 580 Series [Discrete]
Memory: 5.22 GiB / 15.55 GiB (34%)
Swap: 1.61 GiB / 15.55 GiB (10%)
Disk (/): 119.57 GiB / 445.13 GiB (27%) - btrfs
Driver: Mesa 25.3.1-arch1.3

Software information

- Desktop environment: DE Plasma 6.5.3
- Session type: wayland
- Gamescope version: gamescope version 3.16.17
- Gamescope launch command(s): gamescope -w 1280 -h 960 -W 1920 -H 1080 -f -S stretch -- %command%

Which gamescope backends have the issue you are reporting?

  • Wayland (default for nested gamescope)
  • DRM (default for embedded gamescope, i.e. gamescope-session)
  • SDL
  • OpenVR

Logging, screenshots, or anything else

Running gamescope in the launch options immediately crashes the game before it gets to show up : gamescope -w 1280 -h 960 -W 1920 -H 1080 -f -S stretch -- %command%

reaping` pid: 59621 -- steam

chdir "/home/cone/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive"
ERROR: ld.so: object '/home/cone/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Game Recording - would start recording game 730, but recording for this game is disabled
Adding process 60230 for gameID 730
[gamescope] [Info] console: gamescope version 3.16.17 (gcc 15.2.1)
[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/gpd.win4.lcd.lua' (id: 5)
[gamescope] [Info] scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongo.lcd.lua' (id: 6)
[gamescope] [Info] scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongos.lcd.lua' (id: 7)
[gamescope] [Info] scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.lcd.lua' (id: 8)
[gamescope] [Info] scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.oled.lua' (id: 9)
[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/cone/.config/gamescope/scripts'
[gamescope] [Warn] scriptmgr: Directory '/home/cone/.config/gamescope/scripts' does not exist
ATTENTION: default value of option radv_override_graphics_shader_version overridden by environment.
[gamescope] [Info] vulkan: selecting physical device 'AMD Radeon RX 580 Series (RADV POLARIS10)': queue family 1 (general queue family 0)
[gamescope] [Info] vulkan: physical device does not support DRM format modifiers
[gamescope] [Info] wlserver: [backend/headless/backend.c:67] Creating headless backend
[gamescope] [Info] xdg_backend: Seat name: seat0
[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: AB4H (0x48344241)
[gamescope] [Info] vulkan: XB4H (0x48344258)
[gamescope] [Info] vulkan: AB48 (0x38344241)
[gamescope] [Info] vulkan: XB48 (0x38344258)
[gamescope] [Info] vulkan: AB30 (0x30334241)
[gamescope] [Info] vulkan: XB30 (0x30334258)
[gamescope] [Info] vulkan: AR30 (0x30335241)
[gamescope] [Info] vulkan: XR30 (0x30335258)
[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] [Info] wlserver: [xwayland/server.c:107] Starting Xwayland on :1
The XKEYBOARD keymap compiler (xkbcomp) reports:

Warning: Could not resolve keysym XF86OK
Warning: Could not resolve keysym XF86GoTo
Warning: Could not resolve keysym XF86VendorLogo
Warning: Could not resolve keysym XF86MediaSelectProgramGuide
Warning: Could not resolve keysym XF86MediaSelectProgramGuide
Warning: Could not resolve keysym XF86MediaSelectHome
Warning: Could not resolve keysym XF86MediaLanguageMenu
Warning: Could not resolve keysym XF86MediaTitleMenu
Warning: Could not resolve keysym XF86AudioChannelMode
Warning: Could not resolve keysym XF86MediaSelectPC
Warning: Could not resolve keysym XF86MediaSelectTV
Warning: Could not resolve keysym XF86MediaSelectCable
Warning: Could not resolve keysym XF86MediaSelectVCR
Warning: Could not resolve keysym XF86MediaSelectVCRPlus
Warning: Could not resolve keysym XF86MediaSelectSatellite
Warning: Could not resolve keysym XF86MediaSelectCD
Warning: Could not resolve keysym XF86MediaSelectTape
Warning: Could not resolve keysym XF86MediaSelectRadio
Warning: Could not resolve keysym XF86MediaSelectTuner
Warning: Could not resolve keysym XF86MediaPlayer
Warning: Could not resolve keysym XF86MediaSelectTeletext
Warning: Could not resolve keysym XF86MediaSelectAuxiliary
Warning: Could not resolve keysym XF86MediaPlaySlow
Warning: Could not resolve keysym XF86NumberEntryMode
Warning: Could not resolve keysym XF86RefreshRateToggle
Warning: Could not resolve keysym XF86Accessibility
Warning: Could not resolve keysym XF86DoNotDisturb
Errors from xkbcomp are not fatal to the X server
[gamescope] [Info] pipewire: stream state changed: connecting
[gamescope] [Info] pipewire: stream state changed: paused
[gamescope] [Info] pipewire: stream available on node ID: 92
[gamescope] [Info] xdg_backend: uMaxContentLightLevel: 80
[gamescope] [Info] xdg_backend: HDR INFO
[gamescope] [Info] xdg_backend: cv_hdr_enabled: false
[gamescope] [Info] xdg_backend: uTF: GAMMA22
[gamescope] [Info] xdg_backend: bExposeHDRSupport: false
[gamescope] [Info] xdg_backend: uMaxContentLightLevel: 200
[gamescope] [Info] xdg_backend: HDR INFO
[gamescope] [Info] xdg_backend: cv_hdr_enabled: false
[gamescope] [Info] xdg_backend: uTF: GAMMA22
[gamescope] [Info] xdg_backend: bExposeHDRSupport: false
[gamescope] [Info] edid: Patching res 800x1280 -> 1280x720
[gamescope] [Info] vblank: Using timerfd.
[gamescope] [Warn] launch: Failed to open systemd message bus, there will be no cgroup protection for focused windows.

steam-launch-wrapper: Unrecognised option /home/cone/.local/share/Steam/ubuntu12_32/reaper
[gamescope] [Info] launch: Primary child shut down!
(EE) failed to read Wayland events: Broken pipe
Game Recording - game stopped [gameid=730]
Removing process 60230 for gameID 730
[2025-12-21 20:55:38] Background update loop checking for update. . .
[2025-12-21 20:55:38] Checking for available updates...
[2025-12-21 20:55:38] Downloading manifest: https://client-update.akamai.steamstatic.com/steam_client_ubuntu12
[2025-12-21 20:55:38] Manifest download: send request
[2025-12-21 20:55:38] Manifest download: waiting for download to finish
[2025-12-21 20:55:39] Manifest download: finished
[2025-12-21 20:55:39] Download skipped: /steam_client_ubuntu12 version 1766177208, installed version 1766177208, existing pending version 0
[2025-12-21 20:55:39] Nothing to do
chdir "/home/cone/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive"
Game Recording - would start recording game 730, but recording for this game is disabled
Adding process 61194 for gameID 730
ERROR: ld.so: object '/home/cone/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
[gamescope] [Info] console: gamescope version 3.16.17 (gcc 15.2.1)
[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/gpd.win4.lcd.lua' (id: 5)
[gamescope] [Info] scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongo.lcd.lua' (id: 6)
[gamescope] [Info] scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/lenovo.legiongos.lcd.lua' (id: 7)
[gamescope] [Info] scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.lcd.lua' (id: 8)
[gamescope] [Info] scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.oled.lua' (id: 9)
[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/cone/.config/gamescope/scripts'
[gamescope] [Warn] scriptmgr: Directory '/home/cone/.config/gamescope/scripts' does not exist
ATTENTION: default value of option radv_override_graphics_shader_version overridden by environment.
[gamescope] [Info] vulkan: selecting physical device 'AMD Radeon RX 580 Series (RADV POLARIS10)': queue family 1 (general queue family 0)
[gamescope] [Info] vulkan: physical device does not support DRM format modifiers
[gamescope] [Info] wlserver: [backend/headless/backend.c:67] Creating headless backend
[gamescope] [Info] xdg_backend: Seat name: seat0
[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: AB4H (0x48344241)
[gamescope] [Info] vulkan: XB4H (0x48344258)
[gamescope] [Info] vulkan: AB48 (0x38344241)
[gamescope] [Info] vulkan: XB48 (0x38344258)
[gamescope] [Info] vulkan: AB30 (0x30334241)
[gamescope] [Info] vulkan: XB30 (0x30334258)
[gamescope] [Info] vulkan: AR30 (0x30335241)
[gamescope] [Info] vulkan: XR30 (0x30335258)
[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] [Info] wlserver: [xwayland/server.c:107] Starting Xwayland on :1
The XKEYBOARD keymap compiler (xkbcomp) reports:

Warning: Could not resolve keysym XF86OK
Warning: Could not resolve keysym XF86GoTo
Warning: Could not resolve keysym XF86VendorLogo
Warning: Could not resolve keysym XF86MediaSelectProgramGuide
Warning: Could not resolve keysym XF86MediaSelectProgramGuide
Warning: Could not resolve keysym XF86MediaSelectHome
Warning: Could not resolve keysym XF86MediaLanguageMenu
Warning: Could not resolve keysym XF86MediaTitleMenu
Warning: Could not resolve keysym XF86AudioChannelMode
Warning: Could not resolve keysym XF86MediaSelectPC
Warning: Could not resolve keysym XF86MediaSelectTV
Warning: Could not resolve keysym XF86MediaSelectCable
Warning: Could not resolve keysym XF86MediaSelectVCR
Warning: Could not resolve keysym XF86MediaSelectVCRPlus
Warning: Could not resolve keysym XF86MediaSelectSatellite
Warning: Could not resolve keysym XF86MediaSelectCD
Warning: Could not resolve keysym XF86MediaSelectTape
Warning: Could not resolve keysym XF86MediaSelectRadio
Warning: Could not resolve keysym XF86MediaSelectTuner
Warning: Could not resolve keysym XF86MediaPlayer
Warning: Could not resolve keysym XF86MediaSelectTeletext
Warning: Could not resolve keysym XF86MediaSelectAuxiliary
Warning: Could not resolve keysym XF86MediaPlaySlow
Warning: Could not resolve keysym XF86NumberEntryMode
Warning: Could not resolve keysym XF86RefreshRateToggle
Warning: Could not resolve keysym XF86Accessibility
Warning: Could not resolve keysym XF86DoNotDisturb
Errors from xkbcomp are not fatal to the X server
[gamescope] [Info] pipewire: stream state changed: connecting
[gamescope] [Info] pipewire: stream state changed: paused
[gamescope] [Info] pipewire: stream available on node ID: 119
[gamescope] [Info] xdg_backend: uMaxContentLightLevel: 80
[gamescope] [Info] xdg_backend: HDR INFO
[gamescope] [Info] xdg_backend: cv_hdr_enabled: false
[gamescope] [Info] xdg_backend: uTF: GAMMA22
[gamescope] [Info] xdg_backend: bExposeHDRSupport: false
[gamescope] [Info] xdg_backend: uMaxContentLightLevel: 200
[gamescope] [Info] xdg_backend: HDR INFO
[gamescope] [Info] xdg_backend: cv_hdr_enabled: false
[gamescope] [Info] xdg_backend: uTF: GAMMA22
[gamescope] [Info] xdg_backend: bExposeHDRSupport: false
[gamescope] [Info] edid: Patching res 800x1280 -> 1280x960
[gamescope] [Info] vblank: Using timerfd.
[gamescope] [Warn] launch: Failed to open systemd message bus, there will be no cgroup protection for focused windows.

basename: extra operand 'Offensive/game/cs2.sh'
Try 'basename --help' for more information.
Loaded /home/cone/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libengine2.so, got 0x55aedce4d260
Using breakpad crash handler
[S_API] SteamAPI_Init(): Loaded '/home/cone/.local/share/Steam/linux64/steamclient.so' OK.
Setting breakpad minidump AppID = 730
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
12/21 20:58:01 minidumps folder is set to /tmp/dumps
12/21 20:58:01 Init: Installing breakpad exception handler for appid(730)/version(10329521)/tid(61806)
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
SteamInternal_SetMinidumpSteamID: Caching Steam ID: 76561199042220547 [API loaded yes]
SteamInternal_SetMinidumpSteamID: Setting Steam ID: 76561199042220547
Setting breakpad minidump AppID = 2347771
Loaded libSDL3.so.0, got 0x55aedcf9cbc0
Loaded /home/cone/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libtier0.so, got 0x55aedce35b70
Loaded /home/cone/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libfilesystem_stdio.so, got 0x55aedcfa6510
Loaded /home/cone/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libinputsystem.so, got 0x55aedcfb8ea0
Loaded /home/cone/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/liblocalize.so, got 0x55aedcfcba20
Loaded /home/cone/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/librendersystemvulkan.so, got 0x55aedcfde3b0
Loaded /home/cone/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libresourcesystem.so, got 0x55aedcff1160
Loaded /home/cone/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libschemasystem.so, got 0x55aedd003af0
crash_20251221205801_2.dmp[61816]: Uploading dump (out-of-process)
/tmp/dumps/crash_20251221205801_2.dmp
/home/cone/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/cs2.sh: line 109: 61806 Segmentation fault (core dumped) ${STEAM_RUNTIME_PREFIX} ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
crash_20251221205801_2.dmp[61816]: Finished uploading minidump (out-of-process): success = yes
crash_20251221205801_2.dmp[61816]: response: Discarded=1
crash_20251221205801_2.dmp[61816]: file ''/tmp/dumps/crash_20251221205801_2.dmp'', upload yes: ''Discarded=1''
[gamescope] [Info] launch: Primary child shut down!
(EE) failed to read Wayland events: Broken pipe
Game Recording - game stopped [gameid=730]
Removing process 61194 for gameID 730

Ive tried a bunch of variations and the all either crash the game or the game hangs ,stays minimized and you cant open it. i also tried running hte game x11 to no avail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions