Force Gamescope to use NVIDIA graphics card on hybrid system

Hello. Does anyone use Gamescope successfully? I have nixos unstable pkgs, running Hyprland and when I try to run gamescope, it crashes with:

[gamescope] [Info]  console: gamescope version undefined
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
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] [Info]  vulkan: selecting physical device 'Intel(R) Graphics (RPL-S)': queue family 0 (general queue family 0)
[gamescope] [Info]  vulkan: physical device supports DRM format modifiers
[gamescope] [Info]  wlserver: [backend/headless/backend.c:67] Creating headless backend
[gamescope] [Info]  xdg_backend: Seat name: Hyprland
[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:   AR30 (0x30335241)
[gamescope] [Info]  vulkan:   XR30 (0x30335258)
gamescope: ../src/rendervulkan.cpp:2118: 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.empty()' failed.
fish: Job 1, 'gamescope' terminated by signal SIGABRT (Abort)

Can I do something about it? Also, is there a way how to force it to use my NVIDIA graphics card? Maybe that is the problem. I have nvidia-drm.modeset=1 set in boot parameters as sugested by gamescope page, running NVIDIA in sync mode (hardware.nvidia.prime.sync.enable = true;). I also tried offload mode (hardware.nvidia.prime.offload = { enable = true; enableOffloadCmd = true;}), but result was always the same.

Additional info: I am able to run Gamescope fine when in BIOS I switch to discrete graphics (from dynamic graphics). But still, is there a way to be using dynamic graphics (I don’t want NVIDIA card to do all the work since on my last laptop that was the part that broke forcing me to buy a new one) and force only Gamescope to use NVIDIA card? If I play for example games using steam, system uses my NIVIDIA card, so maybe there is a way as well?

Enabling the hardware.nvidia.prime.offload.enableOffloadCmd option will add the nvidia-offload command which will force the Nvidia GPU to be used.

Then, you can run nvidia-offload gamescope and it should use your dGPU only for that command.

1 Like

No way in sync mode?

Don’t know whether it works or not with sync, but you can install it manually and try:

{ config, pkgs, ... }:
let
  nvidia-offload = pkgs.writeShellScriptBin "nvidia-offload" ''
    export __NV_PRIME_RENDER_OFFLOAD=1
    export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
    export __GLX_VENDOR_LIBRARY_NAME=nvidia
    export __VK_LAYER_NV_optimus=NVIDIA_only
    exec "$@"
  '';
in
{
  environment.systemPackages = [ nvidia-offload ];
}

If that doesn’t work, you can make another command to specify which vulkan driver should be used, which might be enough in this case:

{ config, lib, pkgs, ... }:
let
  vulkanDriverFiles = [
    "${config.hardware.nvidia.package}/share/vulkan/icd.d/nvidia_icd.x86_64.json"
    "${config.hardware.nvidia.package.lib32}/share/vulkan/icd.d/nvidia_icd.i686.json"
  ];
  nvidia-vulkan = pkgs.writeShellScriptBin "nvidia-vulkan" ''
    export VK_DRIVER_FILES="${lib.concatStringsSep ":" vulkanDriverFiles}"
    exec "$@"
  '';
in
{
  environment.systemPackages = [ nvidia-vulkan ];
}
1 Like

Default offload or custom command offload does not help, I will test vulkan driver next

[gamescope] [Info]  console: gamescope version undefined
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
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] [Info]  vulkan: selecting physical device 'Intel(R) Graphics (RPL-S)': queue family 0 (general queue family 0)
[gamescope] [Info]  vulkan: physical device supports DRM format modifiers
[gamescope] [Info]  wlserver: [backend/headless/backend.c:67] Creating headless backend
[gamescope] [Info]  xdg_backend: Seat name: Hyprland
[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:   AR30 (0x30335241)
[gamescope] [Info]  vulkan:   XR30 (0x30335258)
gamescope: ../src/rendervulkan.cpp:2118: 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.empty()' failed.
fish: Job 1, 'nvidia-offload gamescope' terminated by signal SIGABRT (Abort)

With nvidia-vulkan, it prints out correct gpu, but result is the same

[gamescope] [Info]  console: gamescope version undefined
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
[gamescope] [Info]  vulkan: selecting physical device 'NVIDIA GeForce RTX 4070 Laptop GPU': queue family 2 (general queue family 0)
[gamescope] [Info]  vulkan: physical device supports DRM format modifiers
[gamescope] [Info]  wlserver: [backend/headless/backend.c:67] Creating headless backend
[gamescope] [Info]  xdg_backend: Seat name: Hyprland
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344241 (VkResult: 0)
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344258 (VkResult: 0)
[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:   AB30 (0x30334241)
[gamescope] [Info]  vulkan:   AR30 (0x30335241)
[gamescope] [Info]  vulkan:   XR30 (0x30335258)
gamescope: ../src/rendervulkan.cpp:2118: 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.empty()' failed.
fish: Job 1, 'nvidia-vulkan gamescope' terminated by signal SIGABRT (Abort)

This is apparently an issue with gamescope 3.15.0 and above as reported in Assertion '!modifiers.empty()' when running gamescope in embedded mode · Issue #1215 · ValveSoftware/gamescope · GitHub

The easiest workaround is to backport the version to 3.14.29 until this is fixed:

  nixpkgs.overlays = [
    (_: prev: {
      gamescope = prev.gamescope.overrideAttrs (_: rec {
        version = "3.14.29";
        src = prev.fetchFromGitHub {
          owner = "ValveSoftware";
          repo = "gamescope";
          rev = "refs/tags/${version}";
          fetchSubmodules = true;
          hash = "sha256-q3HEbFqUeNczKYUlou+quxawCTjpM5JNLrML84tZVYE=";
        };
      });
    })
  ];

You should probably do this as an overlay to override this for all launchers that might use the derivation.

1 Like

Yes, you are right, with this version, it at least does something, Im on configuration Dynamic graphics in BIOS, sync mode, nvidia-vulkan command:

[gamescope] [Info]  console: gamescope version undefined
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
[gamescope] [Info]  vulkan: selecting physical device 'NVIDIA GeForce RTX 4070 Laptop GPU': queue family 2 (general queue family 0)
[gamescope] [Info]  vulkan: physical device supports DRM format modifiers
[gamescope] [Info]  wlserver: [backend/headless/backend.c:67] Creating headless backend
[gamescope] [Info]  xdg_backend: Seat name: Hyprland
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344241 (VkResult: 0)
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344258 (VkResult: 0)
[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:   AB30 (0x30334241)
[gamescope] [Info]  vulkan:   AR30 (0x30335241)
[gamescope] [Info]  vulkan:   XR30 (0x30335258)
[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
[gamescope] [Info]  pipewire: stream state changed: connecting
[gamescope] [Info]  pipewire: stream state changed: paused
[gamescope] [Info]  pipewire: stream available on node ID: 72
[gamescope] [Info]  xwm: Embedded, no cursor set. Using left_ptr by default.
[gamescope] [Info]  vblank: Using timerfd.
[gamescope] [Info]  edid: Patching res 800x1280 -> 2560x1440
(EE) glamor0: GL error: GL_INVALID_OPERATION error generated. <image> and <target> are incompatible
(EE)
(EE) Backtrace:
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 0: /nix/store/hgffx5f6lzd2ii7vvdjfzb3kl6npcfr5-nvidia-x11-560.35.03-6.10.7/lib/libnvidia-eglcore.so.560.35.03 (?+0x0) [0x7dc4c3533605]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 1: /nix/store/hgffx5f6lzd2ii7vvdjfzb3kl6npcfr5-nvidia-x11-560.35.03-6.10.7/lib/libnvidia-eglcore.so.560.35.03 (?+0x0) [0x7dc4c3037c77]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 2: /nix/store/hgffx5f6lzd2ii7vvdjfzb3kl6npcfr5-nvidia-x11-560.35.03-6.10.7/lib/libnvidia-eglcore.so.560.35.03 (?+0x0) [0x7dc4c304a800]
(EE) 3: Xwayland (xwl_glamor_gbm_create_pixmap_for_bo+0x1cd) [0x43764d]
(EE) 4: Xwayland (glamor_pixmap_from_fds+0x24b) [0x437f3b]
(EE) 5: Xwayland (dri3_pixmap_from_fds+0x8d) [0x58c52d]
(EE) 6: Xwayland (proc_dri3_pixmap_from_buffers+0x259) [0x58b279]
(EE) 7: Xwayland (Dispatch+0x374) [0x49ffc4]
(EE) 8: Xwayland (dix_main+0x376) [0x4a42d6]
(EE) 9: /nix/store/wlffq5p6mxxgfap10sav3ij936jzqm59-glibc-2.39-52/lib/libc.so.6 (__libc_start_call_main+0x7e) [0x7dc4d1a3314e]
(EE) 10: /nix/store/wlffq5p6mxxgfap10sav3ij936jzqm59-glibc-2.39-52/lib/libc.so.6 (__libc_start_main+0x89) [0x7dc4d1a33209]
(EE) 11: Xwayland (_start+0x25) [0x41e145]
(EE)
XXX fail to create fbo.
(EE) glamor0: GL error: GL_INVALID_OPERATION error generated. <image> and <target> are incompatible
(EE)
(EE) Backtrace:
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 0: /nix/store/hgffx5f6lzd2ii7vvdjfzb3kl6npcfr5-nvidia-x11-560.35.03-6.10.7/lib/libnvidia-eglcore.so.560.35.03 (?+0x0) [0x7dc4c3533605]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 1: /nix/store/hgffx5f6lzd2ii7vvdjfzb3kl6npcfr5-nvidia-x11-560.35.03-6.10.7/lib/libnvidia-eglcore.so.560.35.03 (?+0x0) [0x7dc4c3037c77]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 2: /nix/store/hgffx5f6lzd2ii7vvdjfzb3kl6npcfr5-nvidia-x11-560.35.03-6.10.7/lib/libnvidia-eglcore.so.560.35.03 (?+0x0) [0x7dc4c304a800]
(EE) 3: Xwayland (xwl_glamor_gbm_create_pixmap_for_bo+0x1cd) [0x43764d]
(EE) 4: Xwayland (glamor_pixmap_from_fds+0x24b) [0x437f3b]
(EE) 5: Xwayland (dri3_pixmap_from_fds+0x8d) [0x58c52d]
(EE) 6: Xwayland (proc_dri3_pixmap_from_buffers+0x259) [0x58b279]
(EE) 7: Xwayland (Dispatch+0x374) [0x49ffc4]
(EE) 8: Xwayland (dix_main+0x376) [0x4a42d6]
(EE) 9: /nix/store/wlffq5p6mxxgfap10sav3ij936jzqm59-glibc-2.39-52/lib/libc.so.6 (__libc_start_call_main+0x7e) [0x7dc4d1a3314e]
(EE) 10: /nix/store/wlffq5p6mxxgfap10sav3ij936jzqm59-glibc-2.39-52/lib/libc.so.6 (__libc_start_main+0x89) [0x7dc4d1a33209]
(EE) 11: Xwayland (_start+0x25) [0x41e145]
(EE)
XXX fail to create fbo.
(EE) glamor0: GL error: GL_INVALID_OPERATION error generated. <image> and <target> are incompatible
(EE)
(EE) Backtrace:
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 0: /nix/store/hgffx5f6lzd2ii7vvdjfzb3kl6npcfr5-nvidia-x11-560.35.03-6.10.7/lib/libnvidia-eglcore.so.560.35.03 (?+0x0) [0x7dc4c3533605]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 1: /nix/store/hgffx5f6lzd2ii7vvdjfzb3kl6npcfr5-nvidia-x11-560.35.03-6.10.7/lib/libnvidia-eglcore.so.560.35.03 (?+0x0) [0x7dc4c3037c77]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 2: /nix/store/hgffx5f6lzd2ii7vvdjfzb3kl6npcfr5-nvidia-x11-560.35.03-6.10.7/lib/libnvidia-eglcore.so.560.35.03 (?+0x0) [0x7dc4c304a800]
(EE) 3: Xwayland (xwl_glamor_gbm_create_pixmap_for_bo+0x1cd) [0x43764d]
(EE) 4: Xwayland (glamor_pixmap_from_fds+0x24b) [0x437f3b]
(EE) 5: Xwayland (dri3_pixmap_from_fds+0x8d) [0x58c52d]
(EE) 6: Xwayland (proc_dri3_pixmap_from_buffers+0x259) [0x58b279]
(EE) 7: Xwayland (Dispatch+0x374) [0x49ffc4]
(EE) 8: Xwayland (dix_main+0x376) [0x4a42d6]
(EE) 9: /nix/store/wlffq5p6mxxgfap10sav3ij936jzqm59-glibc-2.39-52/lib/libc.so.6 (__libc_start_call_main+0x7e) [0x7dc4d1a3314e]
(EE) 10: /nix/store/wlffq5p6mxxgfap10sav3ij936jzqm59-glibc-2.39-52/lib/libc.so.6 (__libc_start_main+0x89) [0x7dc4d1a33209]
(EE) 11: Xwayland (_start+0x25) [0x41e145]
(EE)
XXX fail to create fbo.
(EE) glamor0: GL error: GL_INVALID_OPERATION error generated. <image> and <target> are incompatible
(EE)
(EE) Backtrace:
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 0: /nix/store/hgffx5f6lzd2ii7vvdjfzb3kl6npcfr5-nvidia-x11-560.35.03-6.10.7/lib/libnvidia-eglcore.so.560.35.03 (?+0x0) [0x7dc4c3533605]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 1: /nix/store/hgffx5f6lzd2ii7vvdjfzb3kl6npcfr5-nvidia-x11-560.35.03-6.10.7/lib/libnvidia-eglcore.so.560.35.03 (?+0x0) [0x7dc4c3037c77]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 2: /nix/store/hgffx5f6lzd2ii7vvdjfzb3kl6npcfr5-nvidia-x11-560.35.03-6.10.7/lib/libnvidia-eglcore.so.560.35.03 (?+0x0) [0x7dc4c304a800]
(EE) 3: Xwayland (xwl_glamor_gbm_create_pixmap_for_bo+0x1cd) [0x43764d]
(EE) 4: Xwayland (glamor_pixmap_from_fds+0x24b) [0x437f3b]
(EE) 5: Xwayland (dri3_pixmap_from_fds+0x8d) [0x58c52d]
(EE) 6: Xwayland (proc_dri3_pixmap_from_buffers+0x259) [0x58b279]
(EE) 7: Xwayland (Dispatch+0x374) [0x49ffc4]
(EE) 8: Xwayland (dix_main+0x376) [0x4a42d6]
(EE) 9: /nix/store/wlffq5p6mxxgfap10sav3ij936jzqm59-glibc-2.39-52/lib/libc.so.6 (__libc_start_call_main+0x7e) [0x7dc4d1a3314e]
(EE) 10: /nix/store/wlffq5p6mxxgfap10sav3ij936jzqm59-glibc-2.39-52/lib/libc.so.6 (__libc_start_main+0x89) [0x7dc4d1a33209]
(EE) 11: Xwayland (_start+0x25) [0x41e145]
(EE)
XXX fail to create fbo.
(EE) glamor0: GL error: GL_INVALID_OPERATION error generated. <image> and <target> are incompatible
(EE)
(EE) Backtrace:
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 0: /nix/store/hgffx5f6lzd2ii7vvdjfzb3kl6npcfr5-nvidia-x11-560.35.03-6.10.7/lib/libnvidia-eglcore.so.560.35.03 (?+0x0) [0x7dc4c3533605]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 1: /nix/store/hgffx5f6lzd2ii7vvdjfzb3kl6npcfr5-nvidia-x11-560.35.03-6.10.7/lib/libnvidia-eglcore.so.560.35.03 (?+0x0) [0x7dc4c3037c77]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 2: /nix/store/hgffx5f6lzd2ii7vvdjfzb3kl6npcfr5-nvidia-x11-560.35.03-6.10.7/lib/libnvidia-eglcore.so.560.35.03 (?+0x0) [0x7dc4c304a800]
(EE) 3: Xwayland (xwl_glamor_gbm_create_pixmap_for_bo+0x1cd) [0x43764d]
(EE) 4: Xwayland (glamor_pixmap_from_fds+0x24b) [0x437f3b]
(EE) 5: Xwayland (dri3_pixmap_from_fds+0x8d) [0x58c52d]
(EE) 6: Xwayland (proc_dri3_pixmap_from_buffers+0x259) [0x58b279]
(EE) 7: Xwayland (Dispatch+0x374) [0x49ffc4]
(EE) 8: Xwayland (dix_main+0x376) [0x4a42d6]
(EE) 9: /nix/store/wlffq5p6mxxgfap10sav3ij936jzqm59-glibc-2.39-52/lib/libc.so.6 (__libc_start_call_main+0x7e) [0x7dc4d1a3314e]
(EE) 10: /nix/store/wlffq5p6mxxgfap10sav3ij936jzqm59-glibc-2.39-52/lib/libc.so.6 (__libc_start_main+0x89) [0x7dc4d1a33209]
(EE) 11: Xwayland (_start+0x25) [0x41e145]
(EE)
XXX fail to create fbo.
(EE) glamor0: GL error: GL_INVALID_OPERATION error generated. <image> and <target> are incompatible
(EE)
(EE) Backtrace:
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 0: /nix/store/hgffx5f6lzd2ii7vvdjfzb3kl6npcfr5-nvidia-x11-560.35.03-6.10.7/lib/libnvidia-eglcore.so.560.35.03 (?+0x0) [0x7dc4c3533605]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 1: /nix/store/hgffx5f6lzd2ii7vvdjfzb3kl6npcfr5-nvidia-x11-560.35.03-6.10.7/lib/libnvidia-eglcore.so.560.35.03 (?+0x0) [0x7dc4c3037c77]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 2: /nix/store/hgffx5f6lzd2ii7vvdjfzb3kl6npcfr5-nvidia-x11-560.35.03-6.10.7/lib/libnvidia-eglcore.so.560.35.03 (?+0x0) [0x7dc4c304a800]
(EE) 3: Xwayland (xwl_glamor_gbm_create_pixmap_for_bo+0x1cd) [0x43764d]
(EE) 4: Xwayland (glamor_pixmap_from_fds+0x24b) [0x437f3b]
(EE) 5: Xwayland (dri3_pixmap_from_fds+0x8d) [0x58c52d]
(EE) 6: Xwayland (proc_dri3_pixmap_from_buffers+0x259) [0x58b279]
(EE) 7: Xwayland (Dispatch+0x374) [0x49ffc4]
(EE) 8: Xwayland (dix_main+0x376) [0x4a42d6]
(EE) 9: /nix/store/wlffq5p6mxxgfap10sav3ij936jzqm59-glibc-2.39-52/lib/libc.so.6 (__libc_start_call_main+0x7e) [0x7dc4d1a3314e]
(EE) 10: /nix/store/wlffq5p6mxxgfap10sav3ij936jzqm59-glibc-2.39-52/lib/libc.so.6 (__libc_start_main+0x89) [0x7dc4d1a33209]
(EE) 11: Xwayland (_start+0x25) [0x41e145]
(EE)
XXX fail to create fbo.
2024-09-10 13:35:58,318: Starting Lutris 0.5.17
ERROR: [Loader Message] Code 0 : vkCreateInstance: Found no drivers!
Cannot create Vulkan instance.
This problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does not support Vulkan.
ERROR at /build/source/vulkaninfo/./vulkaninfo.h:458:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER
2024-09-10 13:35:58,347: ['vulkaninfo', '--summary'] command failed: Command '['vulkaninfo', '--summary']' returned non-zero exit status 1.
2024-09-10 13:35:58,347:  (10de:2860 17aa:3cf3 nvidia) Driver 560.35.03
ERROR: [Loader Message] Code 0 : vkCreateInstance: Found no drivers!
Cannot create Vulkan instance.
This problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does not support Vulkan.
ERROR at /build/source/vulkaninfo/./vulkaninfo.h:458:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER
2024-09-10 13:35:58,373: ['vulkaninfo', '--summary'] command failed: Command '['vulkaninfo', '--summary']' returned non-zero exit status 1.
2024-09-10 13:35:58,373:  (8086:a788 17aa:3cf3 i915) Driver None

(lutris:16577): Gtk-WARNING **: 13:35:58.663: Creating a portal monitor failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Inhibit” on object at path /org/freedesktop/portal/desktop
Error getting buffer
2024-09-10 13:35:58,697: Error reading color-scheme: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop (19)
Traceback (most recent call last):
  File "/nix/store/f8ql8n2a075r3rzkd7j1l6m8gha33sgi-lutris-unwrapped-0.5.17/lib/python3.12/site-packages/lutris/style_manager.py", line 80, in _call_cb
    values = obj.call_finish(result)
             ^^^^^^^^^^^^^^^^^^^^^^^
gi.repository.GLib.GError: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop (19)

What happens if you use nvidia-offload nvidia-vulkan gamescope with sync mode and when you use the integrated GPU?

1 Like

Nice cascading. :slight_smile: But I think I don’t need to try that. In sync mode, when I just run pure gamescope, it says it selected integrated graphics (when I run Lutris for example) and gamescope works. But then when I start something in Lutris (tested on Wow) and run nvidia-smi, I see wow.exe in result. So maybe what is happening is that integrated graphics handles gamescope session but the actual game is run correctly on NVIDIA card. For me that is problem solved. :+1:

      nvidia-smi
Tue Sep 10 13:49:40 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.35.03              Driver Version: 560.35.03      CUDA Version: 12.6     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 4070 ...    Off |   00000000:01:00.0  On |                  N/A |
| N/A   47C    P0             37W /   55W |    1109MiB /   8188MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      2919      G   ...e/rstasta/.nix-profile/bin/Hyprland          2MiB |
|    0   N/A  N/A      5462    C+G   .../World of Warcraft/_retail_/WoW.exe        991MiB |
+-----------------------------------------------------------------------------------------+
1 Like

So the only real problem is error in gamescope itself. Thanks for identyfing that. You have been much help as always.

1 Like