StabilityMatrix icon indicating copy to clipboard operation
StabilityMatrix copied to clipboard

Stability Matrix Fails to Detect NVIDIA dGPU on CachyOS (Arch Linux)

Open boudywho opened this issue 1 year ago • 5 comments

What happened?

Bug Report: Stability Matrix Fails to Detect NVIDIA dGPU on CachyOS (Arch Linux)

Description: Stability Matrix is unable to detect or utilize the dedicated NVIDIA GPU on a CachyOS (Arch Linux) system with an Intel iGPU + NVIDIA dGPU (Optimus) setup. The application defaults to the Intel iGPU, and the NVIDIA dGPU is not listed as an option on the start page when attempting to switch. This issue persists even when launching Stability Matrix with prime-run. The NVIDIA dGPU is otherwise functional and detected by the OS, as evidenced by its use in gaming and other applications.

Environment:

  • Operating System: CachyOS (Arch Linux)
  • Stability Matrix Version: 2.14.2
  • Desktop Environment: KDE Plasma
  • Display Server: Wayland
  • CPU / iGPU: i5-11260H / Intel UHD Graphics [Integrated]
  • dGPU: NVIDIA GeForce RTX 2050 [Discrete]
  • NVIDIA Driver Version: NVIDIA-SMI 570.153.02
  • Kernel Version: 6.15.0-1-cachyos-bore-lto

Additional Information:

  • The NVIDIA dGPU is confirmed to be working correctly system-wide. It is detected by the OS (lspci -k | grep -A 2 -E "(VGA|3D)" shows both GPUs and their drivers).
  • nvidia-smi correctly reports the GPU status and driver version.
  • Games and other applications successfully utilize the NVIDIA dGPU automatically or when launched with prime-run or through other PRIME offloading mechanisms.
  • Please let me know if specific logs from Stability Matrix are needed and how to obtain them.

Steps to reproduce

Steps to Reproduce:

  1. Ensure an Optimus setup (Intel iGPU + NVIDIA dGPU) is configured on CachyOS with appropriate NVIDIA drivers installed and functional.
  2. Launch Stability Matrix.
  3. On the start page, attempt to choose the GPU.
  4. Observe that the NVIDIA dGPU is not listed as an available option.
  5. Close Stability Matrix.
  6. Attempt to launch Stability Matrix using prime-run StabilityMatrix.AppImage
  7. Repeat step 3 and 4.

Expected Result:

  • The NVIDIA dGPU should be listed as an available option for use within Stability Matrix.
  • It should be possible to select and utilize the NVIDIA dGPU.
  • Launching Stability Matrix with prime-run should ensure the application can detect and use the NVIDIA dGPU.

Actual Result:

  • Only the Intel iGPU is detected and available for selection within Stability Matrix.
  • The NVIDIA dGPU is not listed and cannot be selected.
  • Launching Stability Matrix with prime-run does not change this behavior; the NVIDIA dGPU remains undetected by the application.

Relevant logs


Version

2.14.2

What Operating System are you using?

Linux

boudywho avatar Jun 01 '25 17:06 boudywho

I also tried running A1111 forge and ComfyUI the official way, they both find my dGPU

boudywho avatar Jun 03 '25 12:06 boudywho

Throw everything but the kitchen sink at it -- maybe one of these variables in front of the executable will hit.

__GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only LIBVA_DRIVER_NAME=nvidia DRI_PRIME=pci-0000_03_00_0 StabilityMatrix.AppImage

Make DRI_PRIME match the pci bus:slot address of your nVidia (obtained via lspci)

Edit: Also try launching SM with the --debug command line switch. It makes the logs a little more verbose; perhaps enough to gain some visibility.

richardm1 avatar Jun 06 '25 22:06 richardm1

Throw everything but the kitchen sink at it -- maybe one of these variables in front of the executable will hit.

__GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only LIBVA_DRIVER_NAME=nvidia DRI_PRIME=pci-0000_03_00_0 StabilityMatrix.AppImage

Make DRI_PRIME match the pci bus:slot address of your nVidia (obtained via lspci)

Edit: Also try launching SM with the --debug command line switch. It makes the logs a little more verbose; perhaps enough to gain some visibility.

Image

Doesn't work, non-detectable

boudywho avatar Jun 19 '25 22:06 boudywho

This should be improved in v2.14.3. Thanks for the report!

mohnjiles avatar Jul 13 '25 00:07 mohnjiles

~This still has not been fixed. Tried installing it on Manjaro Linux and it couldn't find any CUDA GPU (v2.14.3.) Going into the options Default GPU is still empty.~

edit: Never ming restarted the PC and now it detects the GPU. But it really should work from the get go.

DiseaseG avatar Aug 04 '25 21:08 DiseaseG