Thank you very much bro!
I just wanted to thank Jeff V for all the info this posting provided. I have an onboard intel GPU and an Nvidia GeForce 1650 card. I’d been using both gpu’s configured to mirror as my PC is used mostly as an HTC but I keep a 2nd monitor in another room as well. After a software update today, I could no longer use the onboard GPU and Wayland was no longer running. Following the posts here I was able to get Wayland back again and the mirroring between the two GPUs is working once more.
Thanks for all the tips here.
When using wayland can you try creating folder and file ~/.config/environment.d/90-nvidia.conf
with the content
__NV_PRIME_RENDER_OFFLOAD=1
__GLX_VENDOR_LIBRARY_NAME=nvidia
__VK_LAYER_NV_optimus=NVIDIA_only
Then reboot
you can remove VK if you dont support Vulkan
__NV_PRIME_RENDER_OFFLOAD=1
__GLX_VENDOR_LIBRARY_NAME=nvidia
For KDE (In order to use your Nvidia GPU as PRIMARY GPU in wayland session)
From KDE Doc : Plasma/Wayland/Nvidia - KDE Community Wiki
Fedora/Rpmfusion already cover that parts so make sure you installed nvidia driver as usual from rpmfusion.
Next part is
You can pass the environment variable KWIN_DRM_DEVICES=/dev/dri/card1:/dev/dri/card0
to KWin in order to manually choose the order it uses the devices in.
For GNOME
I hope that will help out.
For X11 you can modify your xorg.conf as usual (KDE,Gnome, etc)
Yes, a very useful topic my friend. Thanks to this smart guys that guide us through the entire configuration.
Thank you. it works for me.
Glad it work for you