You are not logged in.
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
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
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