Hybrid GPU Driver Configuration Seems to Cause Issues

On a computer with hybrid GPU setup (AMD integrated GPU + NVIDIA discrete GPU) running KDE desktop, if the hybrid driver is installed using CachyOS’s automatic installation tool (chwd -a), Electron32 with Wayland enabled via flags encounter the following error:

Error Log

It seems that the NVIDIA GPU is being inadvertently used. However, even when using prime-run, the same error persists.

The following methods can resolve the issue:

  1. Disabling the NVIDIA GPU entirely in the BIOS eliminates the error.
  2. Disabling hardware acceleration for Electron32 applications, e.g., --disable-gpu-compositing, resolves the issue.
  3. Uninstalling CachyOS’s automatically installed hybrid driver and installing only nvidia-dkms fixes the problem.

Related threads discussing similar issues:

Is the electron app running on Vulkan?

Launching electron32 with Vulkan or OpenGL backend fails.

use vulkan’s error log:

use opengl’s error log:

use vulkaninfo | grep -i device,full log:

I still don’t quite understand why this problem occurred, where is the problem?

I’m unsure. If it’s running on Vulkan, then yes it’ll pick your NVIDIA GPU because that’s the GPU0 (your iGPU is GPU1). Not sure why it would crash on OpenGL. IIRC obsidian is broken under wayland so make sure its running on xwyaldn