Wayland with Nvidia

Hi there, I have not tried fedora yet. I want to ask , if I switch displaty server from x11 to wayland, will nvidia drivers work anymore ? I heard that fedora team is bringing working wayland sessions with nvidia drivers in upcoming fedora 36 . Is this true ?

1 Like

Yes, it is true. I am currently using Fedora 36 on Wayland with the NVIDIA drivers.

wow i cant believe fedora team make that possible. can you please show me screenshot of about and nvidia powermize settings.

It’s not perfect either. In my case, both Zoom Meetings and Discord don’t work in a Wayland session. Those are not new bugs or specific to Fedora. It seems to be issues with Wayland sessions and some Electron apps (VSCode and Slack work fine, for example)

There are limitations.

It works but nvidia-settings is not compatible so you dont have as much / any driver controls.

It also depends on which Nvidia card you have. I have an old one and Nvidia dropped support for it in the newer drivers. So I am stuck with the 470 drivers and that was before Nvidia fixed some of the Wayland problems.

Correct.
Any nvidia card that requires the 470 driver or earlier will not work with wayland at all. Only the 495 and newer drivers work with wayland.

[original question deleted - have made most of it redundant with a bit of research].

I’m going to follow the instructions at Howto/NVIDIA - RPM Fusion for installing the kmod-nvidia package, and getting it working for my GTX 1050 Ti Mobile (with Secure Boot enabled) on Fedora 36 (w/ Gnome on Wayland).

I’m going to do a system backup first, but are there any other caveats I should be aware of before attempting this?

My only suggestion is that you follow the instructions exactly, and that means for 99+% of users that you install akmod-nvidia and not kmod-nvidia. All the other necessary packages should be pulled in as dependencies automatically.

The xorg-x11-drv-nvidia-cuda package is not automatically installed and is not needed unless your apps require cuda. It may be necessary to install that one as well.

Thanks. That all worked nicely. Even signing the driver and handing the public key to the firmware is nicely streamlined. I was half-expecting a nightmare.

How did you set up Wayland on Fedora 36? I tried to change it on /etc/gdm/custom.conf and it will not change from x11 - thanks for any help

Welcome to ask :fedora:

Wayland is the default DM on fedora 36 Workstation. Not necessarily true with other spins.

How do you know you are using xorg/X11?

Please post the output of inxi -Fzxx so we can tell what the system is running.

this is what my system shows:
sudo echo $XDG_SESSION_TYPE
x11

here you go:
inxi -Fzxx
System:
Kernel: 5.18.13-200.fc36.x86_64 arch: x86_64 bits: 64 compiler: gcc
v: 2.37-27.fc36 Desktop: GNOME v: 42.3.1 tk: GTK v: 3.24.34 wm: gnome-shell
dm: GDM Distro: Fedora release 36 (Thirty Six)
Machine:
Type: Desktop System: ASUSTeK product: P11C-I Series v: 3301
serial:
Mobo: ASUSTeK model: P11C-I Series v: Rev 1.xx
serial: UEFI-[Legacy]: American Megatrends v: 3301
date: 07/21/2020
CPU:
Info: quad core model: Intel Xeon E-2124G bits: 64 type: MCP
arch: Coffee Lake rev: A cache: L1: 256 KiB L2: 1024 KiB L3: 8 MiB
Speed (MHz): avg: 3148 high: 4075 min/max: 800/4500 cores: 1: 4075
2: 3639 3: 2811 4: 2069 bogomips: 27199
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
Device-1: NVIDIA GP107GL [Quadro P600] vendor: Dell driver: nouveau
v: kernel arch: Pascal pcie: speed: 2.5 GT/s lanes: 16 ports: active: DP-4
empty: DP-1,DP-2,DP-3 bus-ID: 01:00.0 chip-ID: 10de:1cb2
Device-2: ASPEED Graphics Family vendor: ASUSTeK driver: ast v: kernel
ports: active: none off: VGA-1 empty: none bus-ID: 05:00.0
chip-ID: 1a03:2000
Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 22.1.3
compositor: gnome-shell driver: X: loaded: modesetting unloaded: fbdev,vesa
gpu: ast,nouveau display-ID: :1 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96
Monitor-1: DP-4 res: 1920x1080 dpi: 102 diag: 547mm (21.54")
OpenGL: renderer: NV137 v: 4.3 Mesa 22.1.4 direct render: Yes
Audio:
Device-1: NVIDIA GP107GL High Definition Audio vendor: Dell
driver: snd_hda_intel v: kernel pcie: speed: 2.5 GT/s lanes: 16
bus-ID: 01:00.1 chip-ID: 10de:0fb9
Sound Server-1: ALSA v: k5.18.13-200.fc36.x86_64 running: yes
Sound Server-2: PulseAudio v: 15.0 running: no
Sound Server-3: PipeWire v: 0.3.56 running: yes
Network:
Device-1: Intel I210 Gigabit Network vendor: ASUSTeK driver: igb v: kernel
pcie: speed: 2.5 GT/s lanes: 1 port: 5000 bus-ID: 02:00.0
chip-ID: 8086:1533
IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac:
Device-2: Intel I210 Gigabit Network vendor: ASUSTeK driver: igb
v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: 4000 bus-ID: 03:00.0
chip-ID: 8086:1533
IF: enp3s0 state: down mac:
Drives:
Local Storage: total: 5.48 TiB used: 542.66 GiB (9.7%)
ID-1: /dev/nvme0n1 vendor: Sabrent model: Rocket nano size: 953.87 GiB
speed: 31.6 Gb/s lanes: 4 serial: temp: 27.9 C
ID-2: /dev/sda vendor: Samsung model: SSD 870 EVO 500GB size: 465.76 GiB
speed: 6.0 Gb/s serial:
ID-3: /dev/sdb vendor: Samsung model: SSD 870 EVO 500GB size: 465.76 GiB
speed: 6.0 Gb/s serial:
ID-4: /dev/sdc vendor: Samsung model: SSD 870 EVO 500GB size: 465.76 GiB
speed: 6.0 Gb/s serial:
ID-5: /dev/sdd vendor: Samsung model: SSD 870 EVO 500GB size: 465.76 GiB
speed: 6.0 Gb/s serial:
ID-6: /dev/sde vendor: Western Digital model: WD1001FALS-00E8B0
size: 931.51 GiB speed: 3.0 Gb/s serial:
ID-7: /dev/sdf type: USB vendor: Western Digital model: WD Elements 2620
size: 1.82 TiB serial:
Partition:
ID-1: / size: 952.87 GiB used: 166.02 GiB (17.4%) fs: btrfs
dev: /dev/nvme0n1p2
ID-2: /boot size: 973.4 MiB used: 285.3 MiB (29.3%) fs: ext4
dev: /dev/nvme0n1p1
ID-3: /home size: 952.87 GiB used: 166.02 GiB (17.4%) fs: btrfs
dev: /dev/nvme0n1p2
Swap:
ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 33.0 C pch: 59.0 C mobo: N/A gpu: nouveau
temp: 48.0 C
Fan Speeds (RPM): N/A gpu: nouveau fan: 1882
Info:
Processes: 444 Uptime: 3h 25m Memory: 31.22 GiB used: 2.25 GiB (7.2%)
Init: systemd v: 250 target: graphical (5) default: graphical Compilers:
gcc: 12.1.1 Packages: note: see --pkg flatpak: 3 Shell: Bash v: 5.1.16
running-in: gnome-terminal inxi: 3.3.19

this is what my system shows:
sudo echo $XDG_SESSION_TYPE
x11

here you go:
inxi -Fzxx
System:
Kernel: 5.18.13-200.fc36.x86_64 arch: x86_64 bits: 64 compiler: gcc
v: 2.37-27.fc36 Desktop: GNOME v: 42.3.1 tk: GTK v: 3.24.34 wm: gnome-shell
dm: GDM Distro: Fedora release 36 (Thirty Six)
Machine:
Type: Desktop System: ASUSTeK product: P11C-I Series v: 3301
serial:
Mobo: ASUSTeK model: P11C-I Series v: Rev 1.xx
serial: UEFI-[Legacy]: American Megatrends v: 3301
date: 07/21/2020
CPU:
Info: quad core model: Intel Xeon E-2124G bits: 64 type: MCP
arch: Coffee Lake rev: A cache: L1: 256 KiB L2: 1024 KiB L3: 8 MiB
Speed (MHz): avg: 3148 high: 4075 min/max: 800/4500 cores: 1: 4075
2: 3639 3: 2811 4: 2069 bogomips: 27199
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
Device-1: NVIDIA GP107GL [Quadro P600] vendor: Dell driver: nouveau
v: kernel arch: Pascal pcie: speed: 2.5 GT/s lanes: 16 ports: active: DP-4
empty: DP-1,DP-2,DP-3 bus-ID: 01:00.0 chip-ID: 10de:1cb2
Device-2: ASPEED Graphics Family vendor: ASUSTeK driver: ast v: kernel
ports: active: none off: VGA-1 empty: none bus-ID: 05:00.0
chip-ID: 1a03:2000
Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 22.1.3
compositor: gnome-shell driver: X: loaded: modesetting unloaded: fbdev,vesa
gpu: ast,nouveau display-ID: :1 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96
Monitor-1: DP-4 res: 1920x1080 dpi: 102 diag: 547mm (21.54")
OpenGL: renderer: NV137 v: 4.3 Mesa 22.1.4 direct render: Yes
Audio:
Device-1: NVIDIA GP107GL High Definition Audio vendor: Dell
driver: snd_hda_intel v: kernel pcie: speed: 2.5 GT/s lanes: 16
bus-ID: 01:00.1 chip-ID: 10de:0fb9
Sound Server-1: ALSA v: k5.18.13-200.fc36.x86_64 running: yes
Sound Server-2: PulseAudio v: 15.0 running: no
Sound Server-3: PipeWire v: 0.3.56 running: yes
Network:
Device-1: Intel I210 Gigabit Network vendor: ASUSTeK driver: igb v: kernel
pcie: speed: 2.5 GT/s lanes: 1 port: 5000 bus-ID: 02:00.0
chip-ID: 8086:1533
IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac:
Device-2: Intel I210 Gigabit Network vendor: ASUSTeK driver: igb
v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: 4000 bus-ID: 03:00.0
chip-ID: 8086:1533
IF: enp3s0 state: down mac:
Drives:
Local Storage: total: 5.48 TiB used: 542.66 GiB (9.7%)
ID-1: /dev/nvme0n1 vendor: Sabrent model: Rocket nano size: 953.87 GiB
speed: 31.6 Gb/s lanes: 4 serial: temp: 27.9 C
ID-2: /dev/sda vendor: Samsung model: SSD 870 EVO 500GB size: 465.76 GiB
speed: 6.0 Gb/s serial:
ID-3: /dev/sdb vendor: Samsung model: SSD 870 EVO 500GB size: 465.76 GiB
speed: 6.0 Gb/s serial:
ID-4: /dev/sdc vendor: Samsung model: SSD 870 EVO 500GB size: 465.76 GiB
speed: 6.0 Gb/s serial:
ID-5: /dev/sdd vendor: Samsung model: SSD 870 EVO 500GB size: 465.76 GiB
speed: 6.0 Gb/s serial:
ID-6: /dev/sde vendor: Western Digital model: WD1001FALS-00E8B0
size: 931.51 GiB speed: 3.0 Gb/s serial:
ID-7: /dev/sdf type: USB vendor: Western Digital model: WD Elements 2620
size: 1.82 TiB serial:
Partition:
ID-1: / size: 952.87 GiB used: 166.02 GiB (17.4%) fs: btrfs
dev: /dev/nvme0n1p2
ID-2: /boot size: 973.4 MiB used: 285.3 MiB (29.3%) fs: ext4
dev: /dev/nvme0n1p1
ID-3: /home size: 952.87 GiB used: 166.02 GiB (17.4%) fs: btrfs
dev: /dev/nvme0n1p2
Swap:
ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 33.0 C pch: 59.0 C mobo: N/A gpu: nouveau
temp: 48.0 C
Fan Speeds (RPM): N/A gpu: nouveau fan: 1882
Info:
Processes: 444 Uptime: 3h 25m Memory: 31.22 GiB used: 2.25 GiB (7.2%)
Init: systemd v: 250 target: graphical (5) default: graphical Compilers:
gcc: 12.1.1 Packages: note: see --pkg flatpak: 3 Shell: Bash v: 5.1.16
running-in: gnome-terminal inxi: 3.3.19