running gamescope via steam launch args means games wont launch
currently I'm only able to launch games via running the entire steam in gamescope, then opening a game inside this.
When setting the launch parameters to:
INTEL_DEBUG=norbc gamescope -w 1280 -W 3840 -h 720 -H 2160 -i -f -- %command%
While in a normal steam window, steam doesn't load the game. Instead the following is outputted:
GameAction [AppID 1451940, ActionID 2] : LaunchApp changed task to ProcessingInstallScript with ""
GameAction [AppID 1451940, ActionID 2] : LaunchApp changed task to SiteLicenseSeatCheckout with ""
GameAction [AppID 1451940, ActionID 2] : LaunchApp changed task to CreatingProcess with ""
GameAction [AppID 1451940, ActionID 2] : LaunchApp waiting for user response to CreatingProcess ""
GameAction [AppID 1451940, ActionID 2] : LaunchApp continues with user response "CreatingProcess"
/bin/sh\0-c\0INTEL_DEBUG=norbc gamescope -w 1280 -W 3840 -h 720 -H 2160 -i -f -- /home/patrickaldis/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=1451940 -- /home/patrickaldis/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/patrickaldis/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/home/patrickaldis/.local/share/Steam/steamapps/common/Proton - Experimental'/proton waitforexitandrun '/home/patrickaldis/.local/share/Steam/steamapps/common/NEEDY GIRL OVERDOSE/Windose.exe'\0
Game process added : AppID 1451940 "INTEL_DEBUG=norbc gamescope -w 1280 -W 3840 -h 720 -H 2160 -i -f -- /home/patrickaldis/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=1451940 -- /home/patrickaldis/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/patrickaldis/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/home/patrickaldis/.local/share/Steam/steamapps/common/Proton - Experimental'/proton waitforexitandrun '/home/patrickaldis/.local/share/Steam/steamapps/common/NEEDY GIRL OVERDOSE/Windose.exe'", ProcID 101488, IP 0.0.0.0:0
chdir /home/patrickaldis/.local/share/Steam/steamapps/common/NEEDY GIRL OVERDOSE
ERROR: ld.so: object '/home/patrickaldis/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
GameAction [AppID 1451940, ActionID 2] : LaunchApp changed task to WaitingGameWindow with ""
ERROR: ld.so: object '/home/patrickaldis/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
GameAction [AppID 1451940, ActionID 2] : LaunchApp changed task to Completed with ""
ERROR: ld.so: object '/home/patrickaldis/.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.
wlserver: [backend/headless/backend.c:82] Creating headless backend
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0
vulkan: selecting physical device 'Intel(R) HD Graphics 630 (KBL GT2)': queue family 0
vulkan: physical device supports DRM format modifiers
Fossilize INFO: Overriding serialization path: "/home/patrickaldis/.local/share/Steam/steamapps/shadercache/1451940/fozpipelinesv6/steamapprun_pipeline_cache".
vulkan: supported DRM formats for sampling usage:
vulkan: 0x34325241
vulkan: 0x34325258
vulkan: 0x3231564E
wlserver: Running compositor on wayland display 'gamescope-0'
wlserver: [backend/headless/backend.c:18] Starting headless backend
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:99] /tmp/.X11-unix not owned by root or us
wlserver: [xwayland/sockets.c:216] No display available in the first 33
Game process removed: AppID 1451940 "INTEL_DEBUG=norbc gamescope -w 1280 -W 3840 -h 720 -H 2160 -i -f -- /home/patrickaldis/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=1451940 -- /home/patrickaldis/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/patrickaldis/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/home/patrickaldis/.local/share/Steam/steamapps/common/Proton - Experimental'/proton waitforexitandrun '/home/patrickaldis/.local/share/Steam/steamapps/common/NEEDY GIRL OVERDOSE/Windose.exe'", ProcID 101488
Uploaded AppInterfaceStats to Steam
Note - the game launches fine when running entire steam client with {gamescopecommand} steam in terminal
Running nixos on gnome wayland
What happens if you also add the -e option?
I have this issue as well and when using the -e option the result is the same. One thing I will point out is that, at least on my machine, flatpak steam+gamescope does work correctly.
Found a workaround in this thread.
Include this in your configuration.nix
nixpkgs.config.packageOverrides = pkgs: {
steam = pkgs.steam.override {
extraPkgs = pkgs: with pkgs; [
xorg.libXcursor
xorg.libXi
xorg.libXinerama
xorg.libXScrnSaver
libpng
libpulseaudio
libvorbis
stdenv.cc.cc.lib
libkrb5
keyutils
];
};
};
Also, you have to manually chown the X folder
sudo chown <username> /tmp/.X11-unix
Then you can launch steam and gamescope should work.
You can add them like this, messy, but seems to work fine here
gamemoderun gamescope -i -w 3840 -h 2160 -W 2560 -H 1440 -f -- env DXVK_ASYNC=1 env RADV_PERFTEST=sam env RADV_PERFTEST=nggc env RADV_PERFTEST=rt env DXVK_FILTER_DEVICE_NAME="AMD Radeon RX 6950 XT" env VKD3D_CONFIG=dxr11 env VKD3D_FEATURE_LEVEL=12_1 %command%