You are not logged in.

#1 2023-12-10 20:35:24

bouloumag
Member
Registered: 2009-12-24
Posts: 10

[SOLVED] KDE: run the app with the dedicated graphics card not present

My computer has been configured to use Nvidia PRIME render offload :

# glxinfo | grep "OpenGL renderer"
OpenGL renderer string: Mesa Intel(R) Graphics (RPL-S)
# prime-run glxinfo | grep "OpenGL renderer"
OpenGL renderer string: NVIDIA GeForce RTX 4060 Laptop GPU/PCIe/SSE2

Kubuntu has this very nice feature when right-clicking on any app: if you go to advanced options you can find "run with dedicated gpu" and I was able to select which programs to run using my Nvidia dedicated graphic card on the fly.

This is described here:
https://userbase.kde.org/Plasma/Tips#la … screte-gpu

Is there a way to make KDE/Plasma behave the same on Arch?

plasma version 5.27

pacman -Q | grep -i nvidia
nvidia-dkms 545.29.06-1
nvidia-prime 1.0-4
nvidia-settings 545.29.06-1
nvidia-utils 545.29.06-1
opencl-nvidia 545.29.06-1

Intel is using mesa 1:23.2.1-2.

Last edited by bouloumag (2023-12-11 23:30:02)

Offline

#2 2023-12-10 23:34:01

linuxsimpleton43
Member
Registered: 2022-03-24
Posts: 33

Re: [SOLVED] KDE: run the app with the dedicated graphics card not present

In the environment variables section put

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia

This is what

prime-run

does and on testing, it has the same effect as running the program with prime-run.

Offline

#3 Yesterday 14:00:12

AlexTMjugador
Member
Registered: Yesterday
Posts: 1

Re: [SOLVED] KDE: run the app with the dedicated graphics card not present

What worked for me to get that control to show was installing the

switcheroo-control

package and ensuring its service is enabled and started.

The Arch Linux wiki documents it as being required for GNOME integration, but it's also required for KDE integration. You can read more about the KDE desktop entry device selection logic on this random Steam for Linux GitHub issue comment.

Offline

Board footer

Powered by FluxBB