Cannot open any games with Gamescope
Is there an existing issue for this?
- [X] I have searched the existing issues
Are you using any gamescope patches or a forked version of gamescope?
- [X] The issue occurs on upstream gamescope without any modifications
Current Behavior
When I run any steam game with gamescope in the launch options, the game does not open. It goes as far as checking the cloud saves but once it goes to load the game after whatever processing it needs to do (e.g. the vulkan drivers on persona 5), the game does not run and the play button switches back to "Play". My friend tried to replicate this but didn't have the same issue as me.
Please tell me commands I need to run etc., I'm new to linux.
Steps To Reproduce
- Be on my computer
- Install steam and gamescope through the package manager
- Run any game with gamescope in the launch options
Hardware information
- Distro: EndeavourOS (happened when I used LinuxMint too)
- CPU: AMD Ryzen 5 7600 (12) @ 5.170GH
- GPU: AMD ATI Radeon RX 6700XT
- Driver Version: [I couldn't run this command]
Software information
- Desktop environment: EndeavourOS Cinnamon
- Session type: x11
- Gamescope version: 3.16.1-1
- Gamescope launch command(s): gamescope -- %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
$ gamescope
[gamescope] [Info] console: gamescope version 3.16.1 (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/bo/.config/gamescope/scripts'
[gamescope] [Warn] scriptmgr: Directory '/home/bo/.config/gamescope/scripts' does not exist
[gamescope] [Info] vulkan: selecting physical device 'AMD Radeon RX 6700 XT': queue family 1 (general queue family 0)
[gamescope] [Info] vulkan: physical device supports DRM format modifiers
[gamescope] [Error] vulkan: vkCreateDevice failed (VkResult: -7)
terminate called without an active exception
Aborted (core dumped)
Output of `gamescope -- vkcube`
$ gamescope -- vkcube
[gamescope] [Info] console: gamescope version 3.16.1 (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/bo/.config/gamescope/scripts'
[gamescope] [Warn] scriptmgr: Directory '/home/bo/.config/gamescope/scripts' does not exist
[gamescope] [Info] vulkan: selecting physical device 'AMD Radeon RX 6700 XT': queue family 1 (general queue family 0)
[gamescope] [Info] vulkan: physical device supports DRM format modifiers
[gamescope] [Error] vulkan: vkCreateDevice failed (VkResult: -7)
terminate called without an active exception
Aborted (core dumped)
Output of `gamescope --backend sdl -- vkcube`
$ gamescope --backend sdl -- vkcube
[gamescope] [Info] console: gamescope version 3.16.1 (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/bo/.config/gamescope/scripts'
[gamescope] [Warn] scriptmgr: Directory '/home/bo/.config/gamescope/scripts' does not exist
[gamescope] [Info] vulkan: selecting physical device 'AMD Radeon RX 6700 XT': queue family 1 (general queue family 0)
[gamescope] [Info] vulkan: physical device supports DRM format modifiers
[gamescope] [Error] vulkan: vkCreateDevice failed (VkResult: -7)
terminate called without an active exception
Aborted (core dumped)
Output of `gamescope --backend drm`
$ gamescope --backend drm
[gamescope] [Info] console: gamescope version 3.15.13.plus1 (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/bo/.config/gamescope/scripts'
[gamescope] [Warn] scriptmgr: Directory '/home/bo/.config/gamescope/scripts' does not exist
[gamescope] [Info] vulkan: selecting physical device 'AMD Radeon RX 6700 XT': queue family 1 (general queue family 0)
[gamescope] [Info] vulkan: physical device supports DRM format modifiers
[gamescope] [Error] vulkan: vkAllocateDescriptorSets failed
Failed to initialize Vulkan
Failed to create backend.
if you're on X11 you likely need https://github.com/ValveSoftware/gamescope/pull/1548 which will be in 3.16.2 as the SDL backend does not launch properly on 3.16.1.
if you're on X11 you likely need #1548 which will be in 3.16.2 as the SDL backend does not launch properly on 3.16.1.
@matte-schwartz What do I need to do or is it just waiting for the next update? The post just seems to be referencing stuff and I don't really understand it
Wait for the next update or compile Gamescope yourself. Using Gamescope-git from the AUR is probably the easiest way to do that on Arch.
@matte-schwartz
So if I were to do that, what do I actually need to do? I think in the post it said they had to edit 2 lines of code but I don't know where I'm looking.
I'm assuming you mean running like yay gamescope-git but that seems to not give me a chance to look at it to find what I'm looking for.
Also how long would you expect it to take to update? I'm not in dire dire need but I'd like to use it since I use an ocr to learn languages and some games don't continue running when alt tabbed which is why I needed to use it before. (Probably irrelevant information)
The comment you're referring to about changing anything was incorrect so ignore that. yay gamescope-git is fine without modifying anything manually. If Gamescope is still not working after that, then your issue is something else entirely and just appeared to have the same conditions to trigger it.
I have no say on when new releases get tagged so I can't really provide any sort of estimate.
@matte-schwartz gamescope-git also doesn't work for me. I tried it again just now and it's the same result. Is there any more commands to run or information I can give you? This is a fresh install of Endeavour OS which I've only updated all the packages and then installed steam and gamescope and after that the only other things on here are timeshift and bluez + blueman. I've had the same issues on Linux Mint and it only got resolved when I used the flatpaks and then when they had to update everything broke again.
Hmm, can you check coredumpctl list and see if any Gamescope coredumps are there? If it's the most recent one, you can use coredumpctl info to get a readout of it. If it's an older one, you can use coredumpctl info <gamescope coredump's number>. I'm not able to reproduce your crash with Persona 5 yet but I don't have the same GPU as you.
coredumpctl list
TIME PID UID GID SIG COREFILE EXE >
Mon 2025-01-13 18:15:16 GMT 6119 1000 1000 SIGABRT present /usr/bin/gamescope>
Mon 2025-01-13 18:15:22 GMT 6307 1000 1000 SIGABRT present /usr/bin/gamescope>
Tue 2025-01-14 16:01:25 GMT 4010 1000 1000 SIGABRT present /usr/bin/gamescope>
Tue 2025-01-14 16:32:30 GMT 7380 1000 1000 SIGABRT present /usr/bin/gamescope>
Tue 2025-01-14 16:33:00 GMT 7592 1000 1000 SIGABRT present /usr/bin/gamescope>
Tue 2025-01-14 16:41:33 GMT 8399 1000 1000 SIGABRT present /usr/bin/gamescope>
Tue 2025-01-14 16:48:46 GMT 8668 1000 1000 SIGABRT present /usr/bin/gamescope>
Tue 2025-01-14 17:43:52 GMT 10855 1000 1000 SIGABRT present /usr/bin/gamescope>
Tue 2025-01-14 18:50:36 GMT 13760 1000 1000 SIGABRT present /usr/bin/gamescope>
Wed 2025-01-15 11:51:09 GMT 4582 1000 1000 SIGABRT present /usr/bin/gamescope>
Wed 2025-01-15 11:52:18 GMT 5374 1000 1000 SIGABRT present /usr/bin/gamescope>
Wed 2025-01-15 11:52:40 GMT 5586 1000 1000 SIGABRT present /usr/bin/gamescope>
Wed 2025-01-15 14:46:21 GMT 25816 1000 1000 SIGABRT present /usr/bin/gamescope>
Wed 2025-01-15 19:45:22 GMT 38780 1000 1000 SIGABRT present /opt/discord/Disco>
Thu 2025-01-16 10:38:34 GMT 3429 1000 1000 SIGABRT present /usr/bin/gamescope>
lines 1-16/16 (END)
coredumpctl info
PID: 3429 (gamescope)
UID: 1000 (bo)
GID: 1000 (bo)
Signal: 6 (ABRT)
Timestamp: Thu 2025-01-16 10:38:34 GMT (59s ago)
Command Line: gamescope -- /home/bo/.local/share/Steam/ubuntu12_32/steam-laun>
Executable: /usr/bin/gamescope
Control Group: /user.slice/user-1000.slice/session-2.scope
Unit: session-2.scope
Slice: user-1000.slice
Session: 2
Owner UID: 1000 (bo)
Boot ID: de31bdbeb46d482dba3d296692101750
Machine ID: 9c99dbc0418d4be09ea5cab134ca71c5
Hostname: naiwongbao
Storage: /var/lib/systemd/coredump/core.gamescope.1000.de31bdbeb46d482db>
Size on Disk: 981.8K
Message: Process 3429 (gamescope) of user 1000 dumped core.
Stack trace of thread 3429:
#0 0x000070ebdb2a53f4 n/a (libc.so.6 + 0x963f4)
#1 0x000070ebdb24c120 raise (libc.so.6 + 0x3d120)
#2 0x000070ebdb2334c3 abort (libc.so.6 + 0x244c3)
lines 1-23
Edit: okay, nvidia for now just doesn't work with gamescope.
having similar issue on wayland(hyprland) running the game from HGL(same error in lutris, albeit different logs and bottles too but i dont have its logs)
os: nixos 24.11 gamescope: tried both git and stable 3.15.14 gpu: optmus intel+nvidia(4060)
HGL logs
[gamescope] [[0;34mInfo[0m] [0;37mscriptmgr:[0m Loading scripts from: '/usr/share/gamescope/scripts'
[gamescope] [[0;33mWarn[0m] [0;37mscriptmgr:[0m Directory '/usr/share/gamescope/scripts' does not exist
[gamescope] [[0;34mInfo[0m] [0;37mscriptmgr:[0m Loading scripts from: '/etc/gamescope/scripts'
[gamescope] [[0;33mWarn[0m] [0;37mscriptmgr:[0m Directory '/etc/gamescope/scripts' does not exist
[gamescope] [[0;34mInfo[0m] [0;37mscriptmgr:[0m Loading scripts from: '/home/greeed/.config/gamescope/scripts'
[gamescope] [[0;33mWarn[0m] [0;37mscriptmgr:[0m Directory '/home/greeed/.config/gamescope/scripts' does not exist
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m selecting physical device 'NVIDIA GeForce RTX 4060 Laptop GPU': queue family 2 (general queue family 0)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m physical device supports DRM format modifiers
[gamescope] [[0;34mInfo[0m] [0;37mwlserver:[0m [backend/headless/backend.c:67] Creating headless backend
[gamescope] [[0;34mInfo[0m] [0;37mxdg_backend:[0m Seat name: Hyprland
[gamescope] [[0;31mError[0m] [0;37mvulkan:[0m vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344241 (VkResult: 0)
[gamescope] [[0;31mError[0m] [0;37mvulkan:[0m vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344258 (VkResult: 0)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m supported DRM formats for sampling usage:
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m AR24 (0x34325241)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m XR24 (0x34325258)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m AB24 (0x34324241)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m XB24 (0x34324258)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m RG16 (0x36314752)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m AB4H (0x48344241)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m XB4H (0x48344258)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m AB30 (0x30334241)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m AR30 (0x30335241)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m XR30 (0x30335258)
gamescope: ../src/rendervulkan.cpp:2139: bool CVulkanTexture::BInit(uint32_t, uint32_t, uint32_t, uint32_t, createFlags, wlr_dmabuf_attributes*, uint32_t, uint32_t, CVulkanTexture*, gamescope::OwningRc<gamescope::IBackendFb>): Assertion `modifiers.size() > 0' failed.
============= End of log =============```
lutris logs
```[gamescope] [[0;34mInfo[0m] [0;37mconsole:[0m gamescope version f873ec7868fe84d2850e91148bcbd6d6b19a7443 (gcc 14.2.1)
[gamescope] [[0;34mInfo[0m] [0;37mscriptmgr:[0m Loading scripts from: '/usr/share/gamescope/scripts'
[gamescope] [[0;33mWarn[0m] [0;37mscriptmgr:[0m Directory '/usr/share/gamescope/scripts' does not exist
[gamescope] [[0;34mInfo[0m] [0;37mscriptmgr:[0m Loading scripts from: '/etc/gamescope/scripts'
[gamescope] [[0;33mWarn[0m] [0;37mscriptmgr:[0m Directory '/etc/gamescope/scripts' does not exist
[gamescope] [[0;34mInfo[0m] [0;37mscriptmgr:[0m Loading scripts from: '/home/greeed/.config/gamescope/scripts'
[gamescope] [[0;33mWarn[0m] [0;37mscriptmgr:[0m Directory '/home/greeed/.config/gamescope/scripts' does not exist
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m selecting physical device 'Intel(R) UHD Graphics (ADL-S GT0.5)': queue family 0 (general queue family 0)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m physical device supports DRM format modifiers
[gamescope] [[0;34mInfo[0m] [0;37mwlserver:[0m [backend/headless/backend.c:67] Creating headless backend
[gamescope] [[0;34mInfo[0m] [0;37mxdg_backend:[0m Seat name: Hyprland
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m supported DRM formats for sampling usage:
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m AR24 (0x34325241)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m XR24 (0x34325258)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m AB24 (0x34324241)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m XB24 (0x34324258)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m RG16 (0x36314752)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m AB4H (0x48344241)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m XB4H (0x48344258)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m AB48 (0x38344241)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m XB48 (0x38344258)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m AB30 (0x30334241)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m AR30 (0x30335241)
[gamescope] [[0;34mInfo[0m] [0;37mvulkan:[0m XR30 (0x30335258)
[gamescope] [[0;34mInfo[0m] [0;37mwlserver:[0m Using explicit sync when available
[gamescope] [[0;34mInfo[0m] [0;37mwlserver:[0m Running compositor on wayland display 'gamescope-0'
[gamescope] [[0;34mInfo[0m] [0;37mwlserver:[0m [backend/headless/backend.c:17] Starting headless backend
[gamescope] [[0;34mInfo[0m] [0;37mwlserver:[0m Successfully initialized libei for input emulation!
[gamescope] [[0;34mInfo[0m] [0;37mwlserver:[0m [xwayland/server.c:107] Starting Xwayland on :1
MESA-LOADER: failed to open dri: /nix/store/ak5hicfnzhd1kwk7dzlyy4w8sg8zq8hn-mesa-24.3.3/lib/gbm/dri_gbm.so: cannot open shared object file: No such file or directory (search paths /run/opengl-driver/lib/gbm:/nix/store/ak5hicfnzhd1kwk7dzlyy4w8sg8zq8hn-mesa-24.3.3/lib/gbm, suffix _gbm)
couldn't create gbm device
EGL setup failed, disabling glamor
Failed to initialize glamor, falling back to sw
[gamescope] [[0;34mInfo[0m] [0;37mpipewire:[0m stream state changed: connecting
[gamescope] [[0;34mInfo[0m] [0;37mpipewire:[0m stream state changed: paused
[gamescope] [[0;34mInfo[0m] [0;37mpipewire:[0m stream available on node ID: 105
[gamescope] [[0;34mInfo[0m] [0;37mxwm:[0m Embedded, no cursor set. Using left_ptr by default.
[gamescope] [[0;34mInfo[0m] [0;37mvblank:[0m Using timerfd.
[gamescope] [[0;34mInfo[0m] [0;37medid:[0m Patching res 800x1280 -> 1920x1080
gamemodeauto:
gamemodeauto:
bwrap: Unexpected capabilities but not setuid, old file caps config?
[gamescope] [[0;34mInfo[0m] [0;37mlaunch:[0m Primary child shut down!
(EE) failed to read Wayland events: Broken pipe
Monitored process exited.
No return code
@matte-schwartz is the reason you said to do it with the AUR version (gamescope-git) because it was on a different update? Because at the moment its on the same update so maybe thats why it's not any different.
@matte-schwartz Sorry to bother, I'm just looking around again to see if other people have a similar issue to me. Did the coredump come up with anything at all? A lot of the recent issues seem to be to do with GPUs but running some of the commands, mine doesn't seem to winge about it. Not that it matters but I've put it here and its very similar results to the previous logs (hence not mattering)
Just updating to say nothing has changed with recent updates to gamescope
@matte-schwartz if it helps it seems that vkresult -7 means "VK_ERROR_EXTENSION_NOT_PRESENT" (according to https://registry.khronos.org/vulkan/specs/latest/man/html/VkResult.html). Also please tell me if you want me to stop @ing you, I don't know whats appropriate here since I'm new to github in the sense of I don't understand what the decorum is
Could someone tell me where to get further help about this? Nothing has changed
I am also having this error
I am having the same issue. I'm also on EndeavourOS, Cinammon, and X11. I'm on all AMD hardware. I also noticed similar issues when trying to use EndeavourOS and KDE. I tried both X11 and Wayland in that instance, including the --expose-wayland flag. Gamescope wouldn't work there either. I suspect this is also why every time I try to launch gamescope-session that after going to a black screen for a few kicks back to my login screen.
Hardware Info:
- CPU: AMD Ryzen 5 5600G
- GPU: AMD Radeon RX 7900 GRE
- Kernel: Linux 6.14.5-arch1-1
Software Info:
- Desktop environment: EndeavourOS Cinnamon
- Session type: x11
- Gamescope version: 3.16.4-28-g3ab24ca0
- Gamescope launch command(s): gamescope -W 1920 -H 1080 -r 60 -- supertuxkart
Launching supertuxkart from the command line also produces this error for me. Any game I try to add the launch command to in steam simply doesn't launch. I've tried a couple version that are post 3.16.2 per @matte-schwartz's comment about the recent update that was a problem. At this point it seems unrelated to that. I've tried using both cinammon and kde without any luck using any of the versions of gamescope that I can get from the AUR.
[gamescope] [Info] console: gamescope version 3.16.4-28-g3ab24ca0 (gcc 15.1.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/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/jon/.config/gamescope/scripts'
[gamescope] [Warn] scriptmgr: Directory '/home/jon/.config/gamescope/scripts' does not exist
[gamescope] [Info] vulkan: selecting physical device 'AMD Radeon RX 7900 GRE': queue family 1 (general queue family 0)
[gamescope] [Info] vulkan: physical device supports DRM format modifiers
[gamescope] [Error] vulkan: vkCreateDevice failed (VkResult: -7)
terminate called without an active exception
Aborted (core dumped)
I've done a little more testing and I was able to get gamescope working on another distro, but it was 3.15.9 and not 3.16.4. So I can confirm that I can get a version of gamescope working on my hardware. This was with KDE and X11 on the most recent stable version of Bazzite.
I tried to get an older version of gamescope installed on my arch install, but as usual trying to do that on an arch based distro is a bit of a pain. Getting lots of errors when attempting it various ways. Usually something else I have installed (usually cmake) causes the various dependency installs to fail.
I also ran into some issues trying to get the flatpak version working, which I believe is older than 3.16. This might be a possible work around but I haven't got it working.
Edit: I can also confirm that this gives an error with cinnamon and wayland.
I figured it out. I believe that this is related to #991. This also explains why I wouldn't have issues with Bazzite because they would install the correct drivers with steam on the initial install of the OS. @bonkie25 I suspect this is what is causing your issue since we're using the same distro and DE with EndeavourOS and Cinnamon. I'm guessing you did the same thing I did.
When EndeavourOS first asks you how you want to install steam it has driver options, the default option is amdvlk, which according to #991 can be an issue. I know this was the original option I chose when installing steam using yay, I mean why not use the default right?
Here's what my terminal looked like and the options I chose. Sorry it isn't formatted well I jumped computers to update the ticket.
3 extra/gamescope 3.16.4-1 (1.1 MiB 3.6 MiB)
SteamOS session compositing window manager
2 extra/sl 5.05-5 (10.1 KiB 23.1 KiB)
Steam Locomotive runs across your
terminal when you type "sl"
as you meant to type "ls"
1 multilib/steam 1.0.0.82-2 (18.5 MiB 18.7 MiB)
Valve's digital software delivery system ==> Packages to install (eg: 1 2 3, 1-3 or ^4)
==> 1|
Sync Explicit (1): steam-1.0.0.82-2
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
For security reasons, the password you type will not be visible.
[sudo] password for jon: resolving dependencies...
•: There are 9 providers available for vulkan-driver:
Repository extra
1) amdvlk
2) nvidia-utils
3) vulkan-dzn
4) vulkan-gfxstream
5) vulkan-intel
6) vulkan-nouveau
7) vulkan-radeon
8) vulkan-swrast
9) vulkan-virtio
Enter
a number (default=1): 7
: There are 9 providers available for lib32-vulkan-driver:
Repository multilib
1) lib32-amdvlk
2) lib32-nvidia-utils
3) lib32-vulkan-dzn
4) lib32-vulkan-gfxstream
5) lib32-vulkan-intel
6) 1ib32-vulkan-nouveau
7) lib32-vulkan-radeon
8) lib32-vulkan-swrast
9) lib32-vulkan-virtio
Enter a number (default=1): 7
looking for conflicting packages... warning: dependency cycle detected:
warning: lib32-harfbuzz will be installed before its lib32-freetype2 dependency warning: dependency cycle detected:
warning: lib32-mesa will be installed before its lib32-libglvnd dependency warning: dependency cycle detected:
warning: lib32-keyutils will be installed before its lib32-krb5 dependency
I chose option 7 because I have a radeon card. After doing this I installed gamescope from the AUR and everything worked as expected.
I can confirm that gamescope -W 1920 -H 1080 -r 60 -- supertuxkart launched supertuxkart into a 1920x1080 window along with gamescope -W 1920 -H 1080 -r 60 -- %command% working as a launch command on No Man's Sky in steam.
When EndeavourOS first asks you how you want to install steam it has driver options, the default option is amdvlk, which according to #991 can be an issue. I know this was the original option I chose when installing steam using yay, I mean why not use the default right?
When I tried to reinstall just now, I didn't get these options, also when I tried installing those drivers manually, nothing changed when I tried running a game (P4G) with default gamescope settings (gamescope -- %command%). I don't know what I'm doing wrong. Also I'm on KDE now so would that be an issue? I'm writing this before rebooting and switching to cinnamon
Edit: it was the same on Cinnamon as it was on KDE
@bonkie25 This is where I had some issues as well. Purging steam and re-installing was about the only way to go and it also gave me issues. I was lucky enough that I had just done an install, so I just did a completely fresh install of EndeavourOS.
When I did a pacman -Rcns steam I don't know if it actually got everything it needed. You might also want to try pacman -Rcns amdvlk which I didn't cause if there are any instances of amdvlk left on your machine it won't work. I ended up doing a fresh install of EndeavourOS and then installing Steam with the correct install options in order to fix it.
Edit: I'm newer to running arch normally but I'm pretty sure if you don't do something similar the pacman commends I shared then some of the install stays cached on your system. I'm pretty sure I also ran into this cause a yay -R steam only seemed to remove steam and not also its dependencies.
@bonkie25 This is where I had some issues as well. Purging steam and re-installing was about the only way to go and it also gave me issues. I was lucky enough that I had just done an install, so I just did a completely fresh install of EndeavourOS.
@jonstump
I cannot believe this works. I tried doing the commands you said but it never gave me the prompts for the driver installation again so I reinstalled endeavourOS (I have a backup on my NAS) and it's working. Thank you so much that's amazing.
I really hope they make it so you don't have to reinstall your entire system in order to change drivers like this because this could be a lot more difficult for people who don't have a 6tb brick they can access at all times.
@bonkie25 glad to help. I'm sure there is probably a way to do it correctly, but I'm not as well versed with an arch based system as I am a debian based system so I'm sure I missed something. I bet if we asked on the EndeavourOS forums how to properly purge a driver we'd probably get a better solution than the one I found of reinstalling the system.