Hello!
I know many articles and such have been made similar to this one but sadly none of the solutions shown there seem to help ![]()
The problem is just as the title says, gamescope refuses to work with steam regardless of what I try (different kernels, configurations, etc.). My best guess is that it might be due to my system using wayland and not x11.
Here is my specs (alongside the shown kernel I have also tried the latest and the cachyos-kernels from chaoticnyx)
Here is my current gaming.nix setup with suggestions from a friendly discord server.
{ config, inputs, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
protonup-qt
protontricks
cabextract # Needed for ^
dxvk
vkd3d
wineWowPackages.full
winetricks
faudio
# Performance tools
gamemode
gamescope
mangohud
];
environment.sessionVariables = {
# Default 64-bit Wine prefix for modern games
WINEPREFIX = "$HOME/.wine";
WINEARCH = "win64";
OBS_VKCAPTURE = "1";
RADV_TEX_ANISO = "16";
# Explicit Wine paths for Winetricks / Protontricks (avoids unknown arch)
WINE = "/run/current-system/sw/bin/wine";
WINESERVER = "/run/current-system/sw/bin/wineserver";
};
hardware.steam-hardware.enable = true;
users.users.silk.packages = with pkgs; [
heroic
lutris
dolphin-emu
mcpelauncher-ui-qt
melonDS
steam-rom-manager
srb2
prismlauncher
# Minecraft Java JRE's for all versions
temurin-jre-bin
temurin-jre-bin-17
temurin-jre-bin-8
];
programs = {
gamescope = {
enable = true;
capSysNice = true;
};
gamemode.enable = true;
steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
gamescopeSession.enable = true;
protontricks.enable = true;
extest.enable = true;
package = pkgs.steam.override {
extraEnv = {
OBS_VKCAPTURE = "1";
RADV_TEX_ANISO = "16";
};
extraPkgs = pkgs': with pkgs'; [
xorg.libXcursor
xorg.libXi
xorg.libXinerama
xorg.libXScrnSaver
libpng
libpulseaudio
libvorbis
stdenv.cc.cc.lib # Provides libstdc++.so.6
libkrb5
keyutils
# Add other libraries as needed
];
};
extraCompatPackages = [ pkgs.steamtinkerlaunch pkgs.proton-ge-bin pkgs.proton-cachyos ];
};
};
}
Though sadly it refuses to work still ![]()
I launched steam via console to try and see what might be the issue and got this:
System.Exception: x11 not available
at Xalia.Sdl.SplitOverlayBox.CreateWindows () [0x0005b] in <5b50cb9692864a58a57a8b9091dd6c44>:0
at Xalia.Sdl.SplitOverlayBox..ctor (Xalia.Sdl.WindowingSystem windowingSystem) [0x0002e] in <5b50cb9692864a58a57a8b9091dd6c44>:0
at Xalia.Sdl.WindowingSystem.CreateOverlayBox () [0x0001b] in <5b50cb9692864a58a57a8b9091dd6c44>:0
at Xalia.Ui.UiMain..ctor () [0x00039] in <5b50cb9692864a58a57a8b9091dd6c44>:0
at Xalia.MainClass.Init (Xalia.Gudl.GudlStatement[] config) [0x0001b] in <5b50cb9692864a58a57a8b9091dd6c44>:0
chdir "/home/silk/.local/share/Steam/steamapps/common/Deadlock"
ERROR: ld.so: object '/nix/store/5qy880i4vzp591hz5ac66hjdngii7kx2-extest-1.0.2/lib/libextest.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/silk/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
failed to inherit capabilities: Operation not permittedGame Recording - would start recording game 1422450, but recording for this game is disabled
Adding process 16368 for gameID 1422450
Game Recording - game stopped [gameid=1422450]
Removing process 16368 for gameID 1422450
And using a different backend like sdl leads to this:
pressure-vessel-wrap[19612]: W: Found more than one possible libdrm data directory from provider
pressure-vessel-wrap[19612]: W: "run/opengl-driver/share/drirc.d" is unlikely to appear in "/run/host"
pressure-vessel-wrap[19612]: W: "run/opengl-driver-32/share/drirc.d" is unlikely to appear in "/run/host"
pressure-vessel-wrap[19612]: W: Found more than one possible drirc.d data directory from provider
ERROR: ld.so: object '/nix/store/5qy880i4vzp591hz5ac66hjdngii7kx2-extest-1.0.2/lib/libextest.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Proton: Upgrading prefix from CachyOS-10.0-200 to GE-Proton10-19 (/home/silk/.local/share/Steam/steamapps/compatdata/0/)
Proton: Prefix has an invalid version?! You may want to back up user files and delete this prefix.
ProtonFixes[19849] WARN: Skipping fix execution. We are probably running an unit test.
ERROR: ld.so: object '/nix/store/5qy880i4vzp591hz5ac66hjdngii7kx2-extest-1.0.2/lib/libextest.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
fsync: up and running.
ERROR: ld.so: object '/nix/store/5qy880i4vzp591hz5ac66hjdngii7kx2-extest-1.0.2/lib/libextest.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
[obs-vkcapture] Init Vulkan 1.5.3 (64bit)
WARNING: radv is not a conformant Vulkan implementation, testing use only.
ERROR: ld.so: object '/nix/store/5qy880i4vzp591hz5ac66hjdngii7kx2-extest-1.0.2/lib/libextest.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
[obs-vkcapture] Init Vulkan 1.5.3 (64bit)
WARNING: radv is not a conformant Vulkan implementation, testing use only.
radv: Forcing anisotropy filter to 16x
Fossilize INFO: Overriding serialization path: "/home/silk/.local/share/Steam/shader_cache_temp_dir_d3d11_64/fozpipelinesv6/steamapprun_pipeline_cache".
ERROR: ld.so: object '/nix/store/5qy880i4vzp591hz5ac66hjdngii7kx2-extest-1.0.2/lib/libextest.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
pressure-vessel-wrap[19952]: W: Found more than one possible libdrm data directory from provider
pressure-vessel-wrap[19952]: W: "run/opengl-driver/share/drirc.d" is unlikely to appear in "/run/host"
pressure-vessel-wrap[19952]: W: "run/opengl-driver-32/share/drirc.d" is unlikely to appear in "/run/host"
pressure-vessel-wrap[19952]: W: Found more than one possible drirc.d data directory from provider
ERROR: ld.so: object '/nix/store/5qy880i4vzp591hz5ac66hjdngii7kx2-extest-1.0.2/lib/libextest.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ProtonFixes[20200] WARN: Skipping fix execution. We are probably running an unit test.
ERROR: ld.so: object '/nix/store/5qy880i4vzp591hz5ac66hjdngii7kx2-extest-1.0.2/lib/libextest.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
fsync: up and running.
ERROR: ld.so: object '/nix/store/5qy880i4vzp591hz5ac66hjdngii7kx2-extest-1.0.2/lib/libextest.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
[obs-vkcapture] Init Vulkan 1.5.3 (64bit)
WARNING: radv is not a conformant Vulkan implementation, testing use only.
ERROR: ld.so: object '/nix/store/5qy880i4vzp591hz5ac66hjdngii7kx2-extest-1.0.2/lib/libextest.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
[obs-vkcapture] Init Vulkan 1.5.3 (64bit)
WARNING: radv is not a conformant Vulkan implementation, testing use only.
WARNING: radv is not a conformant Vulkan implementation, testing use only.
radv: Forcing anisotropy filter to 16x
Fossilize INFO: Overriding serialization path: "/home/silk/.local/share/Steam/shader_cache_temp_dir_d3d12_64/fozpipelinesv6/steamapprun_pipeline_cache".
ERROR: ld.so: object '/nix/store/5qy880i4vzp591hz5ac66hjdngii7kx2-extest-1.0.2/lib/libextest.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
pressure-vessel-wrap[20309]: W: Found more than one possible libdrm data directory from provider
pressure-vessel-wrap[20309]: W: "run/opengl-driver/share/drirc.d" is unlikely to appear in "/run/host"
pressure-vessel-wrap[20309]: W: "run/opengl-driver-32/share/drirc.d" is unlikely to appear in "/run/host"
pressure-vessel-wrap[20309]: W: Found more than one possible drirc.d data directory from provider
ERROR: ld.so: object '/nix/store/5qy880i4vzp591hz5ac66hjdngii7kx2-extest-1.0.2/lib/libextest.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
fsync: up and running.
ERROR: ld.so: object '/nix/store/5qy880i4vzp591hz5ac66hjdngii7kx2-extest-1.0.2/lib/libextest.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
[obs-vkcapture] Init Vulkan 1.5.3 (64bit)
WARNING: radv is not a conformant Vulkan implementation, testing use only.
ERROR: ld.so: object '/nix/store/5qy880i4vzp591hz5ac66hjdngii7kx2-extest-1.0.2/lib/libextest.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
chdir "/home/silk/.local/share/Steam/steamapps/common/Deadlock"
ERROR: ld.so: object '/nix/store/5qy880i4vzp591hz5ac66hjdngii7kx2-extest-1.0.2/lib/libextest.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/silk/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
failed to inherit capabilities: Operation not permittedGame Recording - would start recording game 1422450, but recording for this game is disabled
Adding process 20632 for gameID 1422450
Game Recording - game stopped [gameid=1422450]
Removing process 20632 for gameID 1422450
(the ld.so error has been reduced here but it was a lot of those)
If anyone could help I would be super appreciative ![]()
