Enabling Nvidia on Wayland or Xorg - Does it matter

Hey all,

I downloaded the Nvidia Drivers when I was using Gnome - Wayland. To install the drivers I have enabled the RPM free/non-free repos


sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

and used these codes


sudo dnf update -y # and reboot if you are not on the latest kernel

sudo dnf install akmod-nvidia # rhel/centos users can use kmod-nvidia instead

sudo dnf install xorg-x11-drv-nvidia-cuda #optional for cuda/nvdec/nvenc support

(I have GeForce 940MX)

On Wayland when I open a program with Discrete graphic card (Nvidia) it shows on the `nvidia-smi’ page.

Now, when I switch to Xorg and open a program there, it does not show on `nvidia-smi’ which is suggesting that my drivers are not working properly on the Xorg session.

It seems to me that since I loaded the drivers while I was using Wayland, now when I start Xorg it seems that the drivers are not loaded well.

Question:

  1. Is there a difference between loading Nvidia Drivers on Wayland or Xorg sessions?

  2. If there is a difference, then how can I load drivers to Xorg from the current configuration?

Cause I don’t want to delete everything and make a clean install …