I recently installed Fedora 36 on my XPS 9520. It has RTX 3050 and I installed all the required drivers from rpm fusion repository(akmod-nvidia:510). However, Wayland chooses Intel gpu as primary gpu. I know that Fedora 36 came with Wayland+Nvidia by default but I can’t say same thing for my setup. How can I set primary gpu to Nvidia for wayland?
We need a starting point to answer that.
Does the nvidia driver work for you with wayland?
Is the only issue the desire to set nvidia as the primary GPU?
Is there something else that is of concern?
What version of the nvidia drivers are installed? (that can be answered by posting the output of dnf list installed '*nvidia*' using the Preformatted text tags </> above.)
I’m currently on Fedora 37, Gnome using Wayland with my Nvidia MX150+Intel with proprietary drivers 525 from RPMFusion. I’ll try to post as much information as I can. On Xorg I’ve always run the GPU as my primary and on Xorg the option to do that in Fedora is straight forward enough I was able to figure it out according to the Fedora Docs here. As far as I can tell, I’m using my Intel graphics for like +90% of my Wayland usage, all apps except for maybe Minecraft launcher, open with my Intel integrated graphics. I was just hoping/seeing if there was a simple way to at the very least test how using only the Nvidia GPU on Wayland would fare in comparison. It’s mostly for testing purposes. The link you posted, I also did that for my xorg.conf file btw, but I am now aware that doesn’t apply to Wayland.
X11.conf file doesn’t apply to Wayland. Currently, there is no option for setting Nvidia as the primary GPU. Wayland runs in hybrid mode. By saying that, you can launch apps with discrete GPU but not the gnome shell itself. I don’t know if recent updates brought an option for disabling hybrid mode.
You can switch to and back from Wayland and X11 either using GDM login manager or installing/removing ‘gnome-session-wayland-session’ or ‘gnome-session-xsession’ packages. Many apps are compiled with Wayland libraries. NetBSD uses exclusively X11R7 with some Wayland dependencies so at some point you might need to recompile an app …