I followed the Arch Wiki on Nvidia (using the nvidia-580xx-dkms driver), Wayland, KDE and this guide Plasma/Wayland/Nvidia - KDE Community Wiki , but “qdbus6 org.kde.KWin /KWin supportInformation” still shows my Intel GPU under Compositing.
By chance i noticed today that, for some reason (perhaps the update of the linux-firmware?), the Nvidia GPU was finally active for once. Unfortunately, this did not last long, because after a reboot, it reverted back to the Intel GPU without any further changes.
Now I know at least that it is possible and that all the requirements are actually met. Still puzzled why the Intel GPU is preferred over the Nvidia one.
Because as hybrid Graphics was “basically invented (but maybe I’m wrong here)” for Notebooks it is for battery saving reasons i would guess, or at least for that reason the less powerful / less powerhungry is usually prioritized until you explicitly demand the more powerful for a specific application.
Or is in your case the Intel GPU the more powerful and it should be the other way around?
KWIN_DRM_DEVICES set at /etc/environment Environment Variables · Wiki · Plasma / KWin · GitLab maybe.
I have used that to prioritize Nvidia, last time very very early Plasma 6 but not anymore, colon-separated the first was the prioritized one if I remember correctly.
But if it is an Intel iGPU and you don’t want to use it at all, I would rather suggest to deactivate in bios and set it to dedicated GPU (Nvidia) only there.
In that case don 't forget to install and enable switcheroo-control (assuming you are on Arch) otherwise the easier to manage “Run using dedicated graphics card” option will not be there.
Yes, the “Discrete/dedicated” GPU should in this case be Nvidia.
But I use prime-run too, for example for the steam game launcher command line prime-run %command% instead of the long one the archwiki suggests (works for me ).