Gaming on Endeavour OS

And what is the output of pacman -Q | grep -A 0 -E "(nvidia|vulk|mesa)" ?

gamescope-nvidia 3.15.14-1
--
lib32-mesa 1:24.3.1-2
--
lib32-nvidia-utils 565.77-1
--
lib32-vulkan-icd-loader 1.4.303-1
lib32-vulkan-tools 1.3.295-1
--
mesa 1:24.3.1-2
mesa-demos 9.0.0-5
mesa-utils 9.0.0-5
--
nvidia-dkms 565.77-1
nvidia-hook 1.5.1-1
nvidia-inst 24.10.2-2
nvidia-prime 1.0-5
nvidia-settings 565.57.01-1
nvidia-utils 565.77-1
--
opencl-nvidia 565.77-1
--
vulkan-headers 1:1.4.303-1
vulkan-icd-loader 1.4.303-1
vulkan-tools 1.4.303-1

Looks good up so far.

prime-run glxinfo | grep "OpenGL renderer" should reveal if the prime render offloading is working properly and uses the dGPU instead of the iGPU.

prime-run vulkaninfo should tell if vulkan is adressing the dGPU properly.

Additionally, you don’t have the lib32-mesa-utils installed. Which is only an inconsistency I would change.

As an alternative to the prime render offloading, there is also the option to use the vulkan-mesa-layers I think.

1 Like

Last but not least, in case the prime-run commands are working, you should be able to enable it in lutris via these steps :

1. Edit the configuration (in lutris, for the game launcher, right click menu)
2. Switch to the system option tab
3. Enable  advanced options (toggle switch in the top right) 
4. "Enable NVIDIA prime refer offload" = on
5. Vulkan ICD loader = Nvidia proprietary
1 Like
OpenGL renderer string: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2

WARNING: [Loader Message] Code 0 : Layer VK_LAYER_MANGOHUD_overlay_x86_64 uses API version 1.3 which is older than the application specified API version of 1.4. May cause issues.
WARNING: [Loader Message] Code 0 : Layer VK_LAYER_MANGOHUD_overlay_x86 uses API version 1.3 which is older than the application specified API version of 1.4. May cause issues.
WARNING: [Loader Message] Code 0 : Layer VK_LAYER_NV_optimus uses API version 1.3 which is older than the application specified API version of 1.4. May cause issues.

the output is very big so I will use pastebin

I mostly game on Steam, either that or HGL, Lutris is for games that have Lutris installers and/or officially dead, like also RisingHub, games that have Lutris installers are like TauriWOW

You could ignore the warnings vulkan is generating.

With lutris and the changes to the configuration as I’ve written, it should run.
Than it should be a question which runner you’re using. But lutris or vulkandb should provide the required info.

1 Like

prime-run won’t affect vulkan applications, only opengl ones (out of the box at least, I reconfigured mine) when nvidia proprietary drivers are installed, all vulkan applications automatically run on the nvidia gpu.

Also warnings are generally safe to ignore, it’s errors you gotta keep an eye out for.

1 Like

Tauri … what ?! :wink:

For steam games, in the launch options it should be either primusrun %command% or the same prime-run %command%.

1 Like

Tauri WoW, a Hungarian Blizzlike private server for WoW (World of Warcraft)

hi,
since Steam shows a lot of trouble without a clear log, I tried with HGL, I used Proton-GE 8.3 & the game is AC Mirage, here’s the log (Pastebin even though that it’s not so long): https://pastebin.com/8CbQwc0t

What does vulkaninfo --summary show?

Try to launch it within steam with Proton-GE 8.3 in compatibility mode and the launch options prime-run DXVK_LOG_LEVEL=info PROTON_USE_WINED3D=0 PROTON_ENABLE_NVAPI=1 %command%

edit: forgot the prime-run part…

WARNING: [Loader Message] Code 0 : Layer VK_LAYER_MANGOHUD_overlay_x86_64 uses API version 1.3 which is older than the application specified API version of 1.4. May cause issues.
WARNING: [Loader Message] Code 0 : Layer VK_LAYER_MANGOHUD_overlay_x86 uses API version 1.3 which is older than the application specified API version of 1.4. May cause issues.
WARNING: [Loader Message] Code 0 : Layer VK_LAYER_MESA_device_select uses API version 1.3 which is older than the application specified API version of 1.4. May cause issues.
ERROR: [Loader Message] Code 0 : setup_loader_term_phys_devs:  Failed to detect any valid GPUs in the current config
ERROR: [Loader Message] Code 0 : setup_loader_term_phys_devs:  Failed to detect any valid GPUs in the current config
ERROR: [Loader Message] Code 0 : setup_loader_term_phys_devs:  Failed to detect any valid GPUs in the current config
ERROR: [Loader Message] Code 0 : setup_loader_term_phys_devs:  Failed to detect any valid GPUs in the current config
ERROR: [Loader Message] Code 0 : setup_loader_term_phys_devs:  Failed to detect any valid GPUs in the current config
ERROR at /usr/src/debug/vulkan-tools/Vulkan-Tools-1.4.303/vulkaninfo/./vulkaninfo.h:247:vkEnumeratePhysicalDevices failed with ERROR_INITIALIZATION_FAILED

What does pacman -Qs nvidia show?

it is currently with Proton-GE 8.3 with the prefix VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation PROTON_LOG=1 DXVK_ASYNC=1 PROTON_HIDE_NVIDIA_GPU=0 __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia DXVK_LOG_LEVEL=info PROTON_USE_WINED3D=0 PROTON_ENABLE_NVAPI=1 %command%

local/cuda 12.6.3-1
    NVIDIA's GPU programming toolkit
local/egl-gbm 1.1.2-1
    The GBM EGL external platform library
local/egl-wayland 4:1.1.17-1
    EGLStream-based Wayland external platform
local/envycontrol 3.5.1-1
    CLI tool for Nvidia Optimus graphics mode switching on Linux
local/gamescope-nvidia 3.15.15-1
    SteamOS session compositing window manager (NVIDIA patch)
local/lib32-libvdpau 1.5-3
    Nvidia VDPAU library
local/lib32-nvidia-utils 565.77-1
    NVIDIA drivers utilities (32-bit)
local/libvdpau 1.5-3
    Nvidia VDPAU library
local/libxnvctrl 565.57.01-1
    NVIDIA NV-CONTROL X extension
local/nvidia-dkms 565.77-1
    NVIDIA kernel modules - module sources
local/nvidia-hook 1.5.1-1
    pacman hook for nvidia
local/nvidia-inst 24.10.2-2
    Script to install/uninstall nvidia driver packages in EndeavourOS
local/nvidia-prime 1.0-5
    NVIDIA Prime Render Offload configuration and utilities
local/nvidia-settings 565.57.01-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 565.77-1
    NVIDIA drivers utilities
local/opencl-nvidia 565.77-1
    OpenCL implemention for NVIDIA
local/supergfxctl 5.2.4-1
    A utility for Linux graphics switching on Intel/AMD iGPU + nVidia dGPU laptops

Hmm… what about prime-run glxinfo -B?

And to that prime-run vulkaninfo --summary.