Display issues on Fedora 40

I’ve been using Fedora for a long time, however not always as my main working machine. After a good few months of pause, I upgraded from f38 to f39 and everything seemed to be working fine. I use an Nvidia graphics card and I was always installing the drivers via:

    sudo dnf remove "*nvidia*" --noautoremove --exclude=nvidia-gpu-firmware && 
    sudo dnf install akmod-nvidia-470xx --disablerepo rpmfusion-nonfree-nvidia-driver --enablerepo rpmfusion-nonfree

This has always worked without any issue. It did the same under the newly upgraded fedora 39. All the extensions were working, etc…

Then I went on and upgraded to f40. The process ran smoothly and after it was done, I reinstalled the drivers just to be on the safe side.
And now, I have an issue. I enabled all the extensions and on the surface the desktop looks like it’s working fine. However, the Gnome applications don’t draw themselves properly. For example, ging into Settings I have to hover my mouse over each entry to get the text displayed. Same with the settings from Extensions.
Uninstalling the Nvidia drivers, rebooting resulted in me falling back to the nouveau drivers. Now everything works fine.
And also the display server is now Wayland. Previously, while running the Nvidia driver, I was still on X11. Logging in the system was only giving me 2 display choices: Gnome and Gnome classic. Now I have 4 options on login and the first one Gnome brings me to Wayland.

Since I also want to do some gaming, I expect the proprietary drivers should be better than nouveau ones. How do I properly install them from rpmfusion so that they are using Wayland, since, as far as I know, X11 is no longer the default windowing system of choice.

P.S. My video card is Nvidia GeForce 970.

Seems like I solved the problem on my own (hopefully).

I have changed the driver installation command to the default driver (not he 470 one):

sudo dnf install akmod-nvidia --disablerepo rpmfusion-nonfree-nvidia-driver --enablerepo rpmfusion-nonfree

And after 2 reboot in which I only saw black screen (thinking I screwed things up) I logged in just fine and everything works. I also have 4 options on the login for the display server.

You cannot.
The 470xx driver does not properly support wayland so as long as you have GPU hardware that requires the 470xx driver you will need to continue to use X11.

Even though the upgrade to f41 is intended to exclude X11 by default from new installs upgrades will continue as is and there should be an x11 package to add that feature back into even the new installations.

If we know which gpu is installed we might be able to add more advice. Your last post seems to indicate the GPU may be new enough to be supported by the latest drivers.

Please post the output of inxi -Fzxx as text you copy & paste using the preformatted text button </> on the toolbar of the text input window.

Thank you for your reply.
As I mentioned above, everything seems to be working fine (for now) under the new driver:

➜ dnf list installed | grep nvidia
akmod-nvidia.x86_64                                  3:555.58.02-1.fc40                     @rpmfusion-nonfree-updates
kmod-nvidia-6.10.6-200.fc40.x86_64.x86_64            3:555.58.02-1.fc40                     @@commandline             
nvidia-gpu-firmware.noarch                           20240811-2.fc40                        @updates                  
nvidia-modprobe.x86_64                               3:555.58.02-1.fc40                     @rpmfusion-nonfree-updates
nvidia-settings.x86_64                               3:555.58.02-1.fc40                     @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia.x86_64                           3:555.58.02-1.fc40                     @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda-libs.x86_64                 3:555.58.02-1.fc40                     @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-kmodsrc.x86_64                   3:555.58.02-1.fc40                     @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-libs.x86_64                      3:555.58.02-1.fc40                     @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-power.x86_64                     3:555.58.02-1.fc40                     @rpmfusion-nonfree-updates

I created my script to install/upgrade the nvidia driver way back in Fedora 36 or even before. I don’t remember why I considered that I have to install akmod-nvidia-470xx instead of akmod-nvidia. My video card is Nvidia GeForce 970.

At any rate, here is the output of the inxi -Fzxx command that you asked:

System:
  Kernel: 6.10.6-200.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-37.fc40
  Desktop: GNOME v: 46.4 tk: GTK v: 3.24.43 wm: gnome-shell dm: GDM
    Distro: Fedora Linux 40 (Workstation Edition)
Machine:
  Type: Desktop Mobo: MSI model: Z170A GAMING M5 (MS-7977) v: 1.0
    serial: <superuser required> UEFI: American Megatrends v: 1.80
    date: 02/22/2016
CPU:
  Info: quad core model: Intel Core i7-6700K bits: 64 type: MT MCP
    arch: Skylake-S rev: 3 cache: L1: 256 KiB L2: 1024 KiB L3: 8 MiB
  Speed (MHz): avg: 800 min/max: 800/4000 cores: 1: 800 2: 800 3: 800 4: 800
    5: 800 6: 800 7: 800 8: 800 bogomips: 63999
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: NVIDIA GM204 [GeForce GTX 970] vendor: Micro-Star MSI
    driver: nvidia v: 555.58.02 arch: Maxwell pcie: speed: 8 GT/s lanes: 16
    ports: active: none off: DVI-I-1,HDMI-A-1 empty: DP-1,DVI-D-1
    bus-ID: 01:00.0 chip-ID: 10de:13c2
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 24.1.2
    compositor: gnome-shell driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,nouveau,vesa alternate: nv
    gpu: nvidia,nvidia-nvswitch display-ID: 0
  Monitor-1: DVI-I-1 model: Dell U2412M res: 1920x1200 dpi: 94
    diag: 611mm (24.1")
  Monitor-2: HDMI-A-1 model: Idek Iiyama PL2792Q res: 2560x1440 dpi: 109
    diag: 685mm (27")
  API: OpenGL v: 4.6.0 vendor: nvidia v: 555.58.02 glx-v: 1.4
    direct-render: yes renderer: NVIDIA GeForce GTX 970/PCIe/SSE2
    display-ID: :0.0
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio
    vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus-ID: 00:1f.3
    chip-ID: 8086:a170
  Device-2: NVIDIA GM204 High Definition Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:0fbb
  Device-3: SteelSeries ApS Arctis Nova 7 Diablo 4 Edition
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 bus-ID: 1-6:2 chip-ID: 1038:223a
  API: ALSA v: k6.10.6-200.fc40.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.0.7 status: active (process) with:
    1: pipewire-pulse status: active 2: wireplumber status: active
    3: pipewire-alsa type: plugin 4: pw-jack type: plugin
Network:
  Device-1: Qualcomm Atheros Killer E2400 Gigabit Ethernet
    vendor: Micro-Star MSI driver: alx v: kernel pcie: speed: 2.5 GT/s lanes: 1
    port: d000 bus-ID: 03:00.0 chip-ID: 1969:e0a1
  IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: virbr0 state: down mac: <filter>
Drives:
  Local Storage: total: 8.87 TiB used: 5.75 TiB (64.8%)
  ID-1: /dev/sda vendor: Samsung model: SSD 850 EVO 250GB size: 232.89 GiB
    speed: 6.0 Gb/s serial: <filter>
  ID-2: /dev/sdb vendor: Western Digital model: WD40EZRZ-00GXCB0
    size: 3.64 TiB speed: 6.0 Gb/s serial: <filter>
  ID-3: /dev/sdc vendor: Samsung model: HD204UI size: 1.82 TiB
    speed: 3.0 Gb/s serial: <filter>
  ID-4: /dev/sdd vendor: Western Digital model: WD30EZRX-00D8PB0
    size: 2.73 TiB speed: 6.0 Gb/s serial: <filter>
  ID-5: /dev/sde vendor: Samsung model: SSD 860 EVO 500GB size: 465.76 GiB
    speed: 6.0 Gb/s serial: <filter>
Partition:
  ID-1: / size: 67.18 GiB used: 29.35 GiB (43.7%) fs: ext4 dev: /dev/dm-0
    mapped: fedora_localhost--live-root
  ID-2: /boot/efi size: 96 MiB used: 79.8 MiB (83.1%) fs: vfat
    dev: /dev/sda1
  ID-3: /home size: 27.33 GiB used: 17.91 GiB (65.5%) fs: ext4
    dev: /dev/dm-2 mapped: fedora_localhost--live-home
Swap:
  ID-1: swap-1 type: partition size: 7.87 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/dm-1 mapped: fedora_localhost--live-swap
  ID-2: swap-2 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 44.0 C pch: 44.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 16 GiB available: 15.57 GiB used: 4.59 GiB (29.5%)
  Processes: 353 Power: uptime: 50m wakeups: 0 Init: systemd v: 255
    target: graphical (5) default: graphical
  Packages: pm: flatpak pkgs: 2 Compilers: clang: 18.1.6 gcc: 14.2.1
    Shell: Zsh v: 5.9 running-in: gnome-terminal inxi: 3.3.34

Your nvidia GPU (GTX 970) is one of the oldest that is supported by the current nvidia drivers so you are lucky in that respect.
With that gpu and wayland things seem to be going well so have fun.

Just be aware that you will not be able to use the newer open source nvidia drivers when they are readily available since as I understand it they seem to only support the 3000 and 4000 series cards.

Thank you.

You mean that in the future installing the driver like this :

dnf install akmod-nvidia

will pull a newer version that won’t support my card? Won’t the current driver go into a some sort of legacy mode? Same as the 470xx one was?

P.S. At any rate next year I’ll probably anyway make some hardware upgrades, but hopefully the support won’t go away by then.

No, you misunderstood my comment.
You will not be able to switch to the newer open source drivers but instead must remain on the proprietary drivers as you are now.

On, you mean the nouveau ones. Ok, got it now.

Cheers.