Help with Fedora 42 and 5090 drivers

I installed Fedora 42 on my new Lenovo Legion pro 7 with 5090. Now I’ve a problems with Nvidia’s drivers loading.

I’ve tried a lot of things including rebuild modules with akmods and dracut, login with Wayland or X11, but nothing works. So, any help will be appreciated.

nvidia-smi
No devices were found

sudo modinfo nvidia
filename: /lib/modules/6.14.9-300.fc42.x86_64/extra/nvidia/nvidia.ko
import_ns: DMA_BUF
alias: char-major-195-*
version: 575.57.08
supported: external
license: Dual MIT/GPL
firmware: nvidia/575.57.08/gsp_tu10x.bin
firmware: nvidia/575.57.08/gsp_ga10x.bin
srcversion: AA6B6D25AE218AFF04CB762
alias: pci:v000010DEdsvsdbc06sc80i00
alias: pci:v000010DEdsvsdbc03sc02i00
alias: pci:v000010DEdsvsdbc03sc00i00
alias: of:NTCnvidia,tegra234-displayC*
alias: of:NTCnvidia,tegra234-display
depends:
name: nvidia
retpoline: Y
vermagic: 6.14.9-300.fc42.x86_64 SMP preempt mod_unload

sudo dmesg | grep -i nvidia
[ 0.000000] Command line: BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.14.9-300.fc42.x86_64 root=/dev/mapper/fedora–01-root ro rd.lvm.lv=fedora-01/root rd.luks.uuid=luks-0b1c3a25-5c66-4f3a-9684-6d8b489ab123 rd.driver.blacklist=nouveau,nova_core modprobe.blacklist=nouveau,nova_core nvidia-drm.modeset=1
[ 0.069275] Kernel command line: BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.14.9-300.fc42.x86_64 root=/dev/mapper/fedora–01-root ro rd.lvm.lv=fedora-01/root rd.luks.uuid=luks-0b1c3a25-5c66-4f3a-9684-6d8b489ab123 rd.driver.blacklist=nouveau,nova_core modprobe.blacklist=nouveau,nova_core nvidia-drm.modeset=1
[ 143.185648] nvidia: loading out-of-tree module taints kernel.
[ 143.186860] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 143.303870] nvidia-nvlink: Nvlink Core is being initialized, major device number 509
[ 143.308540] nvidia 0000:02:00.0: enabling device (0000 → 0003)
[ 143.310456] nvidia 0000:02:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
[ 143.322404] NVRM: loading NVIDIA UNIX Open Kernel Module for x86_64 575.57.08 Release Build (dvs-builder@U22-I3-H04-01-5) Sat May 24 07:03:13 UTC 2025
[ 143.468644] nvidia-modeset: Loading NVIDIA UNIX Open Kernel Mode Setting Driver for x86_64 575.57.08 Release Build (dvs-builder@U22-I3-H04-01-5) Sat May 24 06:53:21 UTC 2025
[ 143.471163] [drm] [nvidia-drm] [GPU ID 0x00000200] Loading driver
[ 144.206290] nvidia 0000:02:00.0: Enabling HDA controller
[ 144.233111] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:06.0/0000:02:00.1/sound/card0/input17
[ 144.233766] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:06.0/0000:02:00.1/sound/card0/input18
[ 146.500482] [drm:nv_drm_load [nvidia_drm]] ERROR [nvidia-drm] [GPU ID 0x00000200] Failed to allocate NvKmsKapiDevice
[ 146.501950] [drm:nv_drm_register_drm_device [nvidia_drm]] ERROR [nvidia-drm] [GPU ID 0x00000200] Failed to register device
[ 147.382461] nvidia 0000:02:00.0: Enabling HDA controller
[ 150.518403] nvidia 0000:02:00.0: Enabling HDA controller
[ 238.558273] nvidia 0000:02:00.0: Enabling HDA controller

What are you showing Nvidia X Server Settings? sudo nvidia-settings

nvidia-setting doesn’t works properly

sudo nvidia-settings

ERROR: A supplied argument is invalid

(nvidia-settings:17109): GLib-GObject-CRITICAL **: 17:31:54.189: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed

** (nvidia-settings:17109): CRITICAL **: 17:31:54.190: ctk_powermode_new: assertion ‘(ctrl_target != NULL) && (ctrl_target->h != NULL)’ failed

(nvidia-settings:17109): Gtk-CRITICAL **: 17:31:54.235: gtk_widget_get_preferred_width_for_height: assertion ‘height >= 0’ failed

(nvidia-settings:17109): Gtk-WARNING **: 17:31:54.235: gtk_widget_size_allocate(): attempt to allocate widget with width 17 and height -6

(nvidia-settings:17109): Gtk-WARNING **: 17:31:54.235: Negative content height -9 (allocation 1, extents 5x5) while allocating gadget (node scrollbar, owner GtkScrollbar)

(nvidia-settings:17109): Gtk-CRITICAL **: 17:31:54.235: gtk_widget_get_preferred_width_for_height: assertion ‘height >= 0’ failed

(nvidia-settings:17109): Gtk-WARNING **: 17:31:54.235: gtk_widget_size_allocate(): attempt to allocate widget with width 17 and height -6

(nvidia-settings:17109): Gtk-WARNING **: 17:31:54.235: Negative content height -9 (allocation 1, extents 5x5) while allocating gadget (node scrollbar, owner GtkScrollbar)

Late reply, sorry. It seems like either your install of drivers is bad or that you might have secure boot on which is preventing the driver from signing.

I disabled secure boot and reinstall drivers but it still doesn’t works.
I wondering whether 5090 is still new and drivers not baked enough. WDYT? any workarounds?

I can confirm a similar experience. I attempted a fresh install of Fedora 42 on a secondary drive in my machine with a 5070 Ti and couldn’t get a stable, working desktop. Interestingly, I’m running Bazzite on that exact same system without any issues. Your theory about the drivers not being fully “baked” for the 5070 Ti in the standard Fedora repositories seems plausible, considering Bazzite’s focus on providing a more out-of-the-box gaming experience, which often includes more recent or patched drivers.