Steam for Linux

Steam for Linux

Gamescope not working in Flatpak
Hi, everyone.

With recent support from Nvidia for gamescope I wanted to test it out, as I have some games which would benefit from it (Alt tabbing issues etc.). Now, I have Steam installed via flatpak, and also installed the flatpak version of gamescope (com.valvesoftware.Steam.Utility.gamescope). However, every game I try to launch with gamescope enabled (gamescope -- %command%) doesn't quite launch: The process starts, I get audio, but no window/graphics.

I CAN launch non-steam games under X11 AND wayland.
I CAN launch non-steam games under X11 AND wayland WITH gamescope (system, not flatpak).
I CAN launch steam games under X11 AND wayland without gamescope (flatpak).
I CAN NOT launch steam games under X11 OR wayland WITH gamescope (flatpak).

So the problem does appear to lie with the flatpak version of gamescope?

Attached is log of a game launch under X11 with gamescope.

GameAction [AppID 881100, ActionID 2] : LaunchApp changed task to ProcessingInstallScript with "" Proton: Upgrading prefix from GE-Proton7-29 to 7.0-100 (/home/dh/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/compatdata/881100/) Proton: Prefix has an invalid version?! You may want to back up user files and delete this prefix. fsync: up and running. wine: Using setpriority to control niceness in the [-10,10] range GameAction [AppID 881100, ActionID 2] : LaunchApp changed task to SynchronizingCloud with "" GameAction [AppID 881100, ActionID 2] : LaunchApp changed task to SiteLicenseSeatCheckout with "" GameAction [AppID 881100, ActionID 2] : LaunchApp changed task to CreatingProcess with "" GameAction [AppID 881100, ActionID 2] : LaunchApp waiting for user response to CreatingProcess "" GameAction [AppID 881100, ActionID 2] : LaunchApp continues with user response "CreatingProcess" /bin/sh\0-c\0gamescope -- /home/dh/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=881100 -- '/app/share/steam/compatibilitytools.d/Proton'/proton waitforexitandrun '/home/dh/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Noita/noita.exe'/0 Game process added : AppID 881100 "gamescope -- /home/dh/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=881100 -- '/app/share/steam/compatibilitytools.d/Proton'/proton waitforexitandrun '/home/dh/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Noita/noita.exe'", ProcID 1047, IP 0.0.0.0:0 chdir /home/dh/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Noita ERROR: ld.so: object '/home/dh/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. GameAction [AppID 881100, ActionID 2] : LaunchApp changed task to WaitingGameWindow with "" ERROR: ld.so: object '/home/dh/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. No CAP_SYS_NICE, falling back to regular-priority compute and threads. Performance will be affected. GameAction [AppID 881100, ActionID 2] : LaunchApp changed task to Completed with "" vulkan: selecting physical device 'NVIDIA GeForce GTX 1070': queue family 2 vulkan: physical device supports DRM format modifiers Fossilize INFO: Overriding serialization path: "/home/dh/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/shadercache/881100/fozpipelinesv6/steamapprun_pipeline_cache". vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x3231564E (VkResult: 0) vulkan: supported DRM formats for sampling usage: vulkan: 0x34325241 vulkan: 0x34325258 wlserver: [backend/headless/backend.c:82] Creating headless backend wlserver: Running compositor on wayland display 'gamescope-0' 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 ERROR: ld.so: object '/home/dh/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. ERROR: ld.so: object '/home/dh/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. ERROR: ld.so: object '/home/dh/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. wlserver: [types/wlr_surface.c:741] New wlr_surface 0x556d2a468d10 (res 0x556d2a4bd640) wlserver: [xwayland/server.c:250] Xserver is ready pipewire: pw_context_connect failed Warning: failed to setup PipeWire, screen capture won't be available fsync: up and running. wine: Using setpriority to control niceness in the [-10,10] range Game process updated : AppID 881100 "gamescope -- /home/dh/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=881100 -- '/app/share/steam/compatibilitytools.d/Proton'/proton waitforexitandrun '/home/dh/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Noita/noita.exe'", ProcID 1065, IP 0.0.0.0:0 Setting breakpad minidump AppID = 881100 Steam_SetMinidumpSteamID: Caching Steam ID: 76561198041577317 [API loaded no] Game process updated : AppID 881100 "gamescope -- /home/dh/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=881100 -- '/app/share/steam/compatibilitytools.d/Proton'/proton waitforexitandrun '/home/dh/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Noita/noita.exe'", ProcID 1140, IP 0.0.0.0:0 Setting breakpad minidump AppID = 881100 Steam_SetMinidumpSteamID: Caching Steam ID: 76561198041577317 [API loaded no] libGL error: failed to create dri screen libGL error: failed to load driver: nouveau wlserver: [types/wlr_surface.c:741] New wlr_surface 0x556d2a49e2a0 (res 0x556d2a46c0f0) xwm: error 3: BadWindow (invalid Window parameter) request 20 minor 0 serial 2543 xwm: error 3: BadWindow (invalid Window parameter) request 20 minor 0 serial 2544 xwm: error 3: BadWindow (invalid Window parameter) request 20 minor 0 serial 2545 xwm: error 3: BadWindow (invalid Window parameter) request 20 minor 0 serial 2546 xwm: error 3: BadWindow (invalid Window parameter) request 20 minor 0 serial 2547 xwm: error 3: BadWindow (invalid Window parameter) request 20 minor 0 serial 2548 xwm: error 3: BadWindow (invalid Window parameter) request 15 minor 0 serial 2549 xwm: error 3: BadWindow (invalid Window parameter) request 20 minor 0 serial 2550 xwm: error 3: BadWindow (invalid Window parameter) request 20 minor 0 serial 2551 xwm: error 3: BadWindow (invalid Window parameter) request 20 minor 0 serial 2552 xwm: error 3: BadWindow (invalid Window parameter) request 20 minor 0 serial 2553 xwm: error 3: BadWindow (invalid Window parameter) request 20 minor 0 serial 2554 wlserver: [types/wlr_surface.c:741] New wlr_surface 0x556d2a49c270 (res 0x556d2a46c0f0) xwm: error 2: BadValue (integer parameter out of range for operation) request 137 minor 31 serial 2613 xwm: error 2: BadValue (integer parameter out of range for operation) request 137 minor 31 serial 2616 Error getting buffer xwm: error 139: 139 request 137 minor 32 serial 2636 xwm: error 139: 139 request 137 minor 32 serial 2639 xwm: error 3: BadWindow (invalid Window parameter) request 2 minor 0 serial 2646 xwm: error 3: BadWindow (invalid Window parameter) request 3 minor 0 serial 2838 wlserver: [types/wlr_surface.c:741] New wlr_surface 0x556d2a49d640 (res 0x556d2a46bd90) xwm: error 2: BadValue (integer parameter out of range for operation) request 137 minor 31 serial 2933 Error getting buffer xwm: error 139: 139 request 137 minor 32 serial 2955 xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_ABOVE xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_MAXIMIZED_VERT xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_MAXIMIZED_HORZ xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_ABOVE xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_MAXIMIZED_VERT xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_MAXIMIZED_HORZ xwm: error 2: BadValue (integer parameter out of range for operation) request 137 minor 31 serial 3023 xwm: error 139: 139 request 137 minor 32 serial 3041 xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_ABOVE xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_MAXIMIZED_VERT xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_MAXIMIZED_HORZ xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_ABOVE xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_MAXIMIZED_VERT xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_MAXIMIZED_HORZ xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_ABOVE xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_MAXIMIZED_VERT xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_MAXIMIZED_HORZ Setting random seed: -1479647106 Traceback (most recent call last): File "/app/share/steam/compatibilitytools.d/Proton/proton", line 1413, in <module> rc = g_session.run() File "/app/share/steam/compatibilitytools.d/Proton/proton", line 1374, in run rc = self.run_proc([g_proton.wine64_bin, "c:\\windows\\system32\\steam.exe"] + sys.argv[2:] + self.cmdlineappend) File "/app/share/steam/compatibilitytools.d/Proton/proton", line 1352, in run_proc return subprocess.call(args, env=local_env, stderr=self.log_file, stdout=self.log_file) File "/usr/lib/python3.9/subprocess.py", line 351, in call return p.wait(timeout=timeout) File "/usr/lib/python3.9/subprocess.py", line 1189, in wait return self._wait(timeout=timeout) File "/usr/lib/python3.9/subprocess.py", line 1917, in _wait (pid, sts) = self._try_wait(0) File "/usr/lib/python3.9/subprocess.py", line 1875, in _try_wait (pid, sts) = os.waitpid(self.pid, wait_flags) KeyboardInterrupt xwm: error 3: BadWindow (invalid Window parameter) request 18 minor 0 serial 7301 xwm: error 3: BadWindow (invalid Window parameter) request 42 minor 0 serial 7302 xwm: error 3: BadWindow (invalid Window parameter) request 41 minor 0 serial 7314 xwm: error 3: BadWindow (invalid Window parameter) request 12 minor 0 serial 7315 xwm: error 3: BadWindow (invalid Window parameter) request 15 minor 0 serial 7316 (EE) failed to read Wayland events: Broken pipe Game process removed: AppID 881100 "gamescope -- /home/dh/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=881100 -- '/app/share/steam/compatibilitytools.d/Proton'/proton waitforexitandrun '/home/dh/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Noita/noita.exe'", ProcID 1140 ThreadGetProcessExitCode: no such process 1140 ThreadGetProcessExitCode: no such process 1065 ThreadGetProcessExitCode: no such process 1056 ThreadGetProcessExitCode: no such process 1055 Game 881100 created interface STEAMREMOTESTORAGE_INTERFACE_VERSION014 / Game 881100 created interface STEAMUGC_INTERFACE_VERSION013 / Game 881100 created interface STEAMUSERSTATS_INTERFACE_VERSION011 / Game 881100 created interface SteamController007 / Controller Game 881100 created interface SteamInput001 / Controller Game 881100 created interface SteamUser020 / Game 881100 created interface SteamUser020 / User Game 881100 created interface SteamUtils009 / Game 881100 created interface SteamUtils009 / Utils Game 881100 method call count for IClientUGC::GetSubscribedItems : 7 Game 881100 method call count for IClientUGC::GetNumSubscribedItems : 7 Game 881100 method call count for IClientRemoteStorage::IsCloudEnabledForApp : 1 Game 881100 method call count for IClientUserStats::RequestCurrentStats : 1 Game 881100 method call count for IClientUtils::RecordSteamInterfaceCreation : 10 Game 881100 method call count for IClientUtils::GetAppID : 13 Game 881100 method call count for IClientUser::GetSteamID : 1 Game 881100 method call count for IClientUser::BLoggedOn : 1 Uploaded AppInterfaceStats to Steam Could not connect to X session manager: None of the authentication protocols specified are supported Could not connect to X session manager: None of the authentication protocols specified are supported Could not connect to X session manager: None of the authentication protocols specified are supported Could not connect to X session manager: None of the authentication protocols specified are supported

Bold emphasis by me, as those two lines seem like the most likely problem?

Anyone have any idea how to get graphics with gamescope? Thanks :)
最近の変更はKhnxが行いました; 2022年8月16日 7時53分
< >
1-2 / 2 のコメントを表示
このスレッドの作成者がこの投稿を元のトピックへの回答と指定しました。
NRG-R9T 2022年8月20日 3時19分 
Your issue with a temporary solution is documented here, I guess:
https://github.com/flathub/com.valvesoftware.Steam.Utility.gamescope/issues/28
Khnx 2022年8月20日 5時45分 
AWESOME, that worked, thank you very much! :)

Solution for other people:

Launch steam with:
flatpak run --env=GBM_BACKENDS_PATH=/usr/lib/x86_64-linux-gnu/GL/nvidia-515-65-01/extra/gbm com.valvesoftware.Steam

Your Nvidia driver version my be different, check with:

flatpak run --command=ls com.valvesoftware.Steam /usr/lib/x86_64-linux-gnu/GL

If above command makes gamescope work, use:
flatpak override --env=GBM_BACKENDS_PATH=/usr/lib/x86_64-linux-gnu/GL/nvidia-515-65-01/extra/gbm com.valvesoftware.Steam
to permanently set the environment variable (needs to be updated with every driver update, as the version number will change).
< >
1-2 / 2 のコメントを表示
ページ毎: 1530 50

投稿日: 2022年8月16日 7時51分
投稿数: 2