NVIDIA RTX 4050 Driver Issues After System Update (Fedora 40)

Hello,

I have an ASUS TUF Gaming A15 FA507NU laptop with Fedora 40 installed. After the latest system update, I encountered a problem: the laptop no longer recognizes the Nvidia RTX 4050 drivers. They were working before the update, and I have tried various solutions: reinstalling the drivers, downloading different drivers, changing the kernel version, updating the BIOS, and even reinstalling the system from scratch. However, nothing helps. The error occurs even when booting from a flash drive.

Most likely, due to the lack of functioning drivers, my brightness adjustment is also not working—it is always set to the minimum, and I cannot change it, even through the console. I also cannot change the screen refresh rate, and during critical system updates, I get an error saying “Update failure.”

Is there a way to resolve this issue?

We need more info about the hardware and the drivers.
Please post (as preformatted text – paste the text then highlight it and click the </> button) the output of lsmod | grep -E 'nouveau|nvidia', inxi -Fzxx, and dnf list installed '*nvidia*'

Here is more detailed information about the system and drivers.

user@linux:~$ lsmod | grep -E 'nouveau|nvidia'
nvidia_wmi_ec_backlight    12288  0
video                  81920  4 nvidia_wmi_ec_backlight,asus_wmi,amdgpu,asus_nb_wmi
wmi                    36864  4 video,nvidia_wmi_ec_backlight,asus_wmi,wmi_bmof
user@linux:~$ dnf list installed '*nvidia*'
akmod-nvidia.x86_64                                                                                                3:560.35.03-1.fc40                                                                         @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.10.11-200.fc40.x86_64.x86_64                                                                         3:560.35.03-1.fc40                                                                         @@commandline                   
kmod-nvidia-6.10.12-200.fc40.x86_64.x86_64                                                                         3:560.35.03-1.fc40                                                                         @@commandline                   
kmod-nvidia-6.11.3-200.fc40.x86_64.x86_64                                                                          3:560.35.03-1.fc40                                                                         @@commandline                   
nvidia-gpu-firmware.noarch                                                                                         20241017-1.fc40                                                                            @updates                        
nvidia-modprobe.x86_64                                                                                             3:560.35.03-1.fc40                                                                         @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                                                                                             3:560.35.03-1.fc40                                                                         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                                                                                         3:560.35.03-5.fc40                                                                         @rpmfusion-nonfree-updates      
xorg-x11-drv-nvidia-cuda-libs.x86_64                                                                               3:560.35.03-5.fc40                                                                         @rpmfusion-nonfree-updates      
xorg-x11-drv-nvidia-kmodsrc.x86_64                                                                                 3:560.35.03-5.fc40                                                                         @rpmfusion-nonfree-updates      
xorg-x11-drv-nvidia-libs.x86_64                                                                                    3:560.35.03-5.fc40                                                                         @rpmfusion-nonfree-updates      
xorg-x11-drv-nvidia-power.x86_64                                                                                   3:560.35.03-5.fc40                                                                         @rpmfusion-nonfree-updates      
xorg-x11-drv-nvidia-xorg-libs.x86_64                                                                               3:560.35.03-5.fc40                                                                         @rpmfusion-nonfree-updates
user@linux:~$ inxi -Fzxx
System:
  Kernel: 6.11.3-200.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-37.fc40
  Desktop: GNOME v: 46.5 tk: GTK v: 3.24.43 wm: gnome-shell dm: GDM
    Distro: Fedora Linux 40 (Workstation Edition)
Machine:
  Type: Laptop System: ASUSTeK product: ASUS TUF Gaming A15 FA507NU_FA507NU
    v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: FA507NU v: 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: FA507NU.313 date: 03/19/2024
Battery:
  ID-1: BAT1 charge: 86.5 Wh (100.0%) condition: 86.5/90.2 Wh (95.8%)
    volts: 17.1 min: 15.9 model: ASUS A32-K55 serial: N/A status: full
CPU:
  Info: 8-core model: AMD Ryzen 7 7735HS with Radeon Graphics bits: 64
    type: MT MCP arch: Zen 3+ rev: 1 cache: L1: 512 KiB L2: 4 MiB L3: 16 MiB
  Speed (MHz): avg: 400 min/max: 400/4829 boost: enabled cores: 1: 400
    2: 400 3: 400 4: 400 5: 400 6: 400 7: 400 8: 400 9: 400 10: 400 11: 400
    12: 400 13: 400 14: 400 15: 400 16: 400 bogomips: 102212
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Rembrandt [Radeon 680M]
    vendor: ASUSTeK driver: amdgpu v: kernel arch: RDNA-2 pcie: speed: 16 GT/s
    lanes: 16 ports: active: eDP-1 empty: DP-1, DP-2, DP-3, DP-4, DP-5, DP-6,
    DP-7, DP-8, Writeback-1 bus-ID: 36:00.0 chip-ID: 1002:1681 temp: 36.0 C
  Device-2: Sonix USB2.0 HD UVC WebCam driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 1-4:2 chip-ID: 2b7e:b685
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 24.1.3
    compositor: gnome-shell driver: gpu: amdgpu display-ID: 0
  Monitor-1: eDP-1 model: AU Optronics B156HAN15.H res: 1920x1080 dpi: 142
    diag: 394mm (15.5")
  API: OpenGL v: 4.6 vendor: amd mesa v: 24.1.7 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: AMD Radeon 680M (radeonsi rembrandt LLVM
    18.1.6 DRM 3.59 6.11.3-200.fc40.x86_64) device-ID: 1002:1681
    display-ID: :0.0
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: Advanced Micro Devices [AMD/ATI] Rembrandt Radeon High Definition
    Audio driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 36:00.1 chip-ID: 1002:1640
  Device-2: Advanced Micro Devices [AMD] ACP/ACP3X/ACP6x Audio Coprocessor
    vendor: ASUSTeK driver: snd_pci_acp6x v: kernel pcie: speed: 16 GT/s
    lanes: 16 bus-ID: 36:00.5 chip-ID: 1022:15e2
  Device-3: Advanced Micro Devices [AMD] Family 17h/19h HD Audio
    vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s
    lanes: 16 bus-ID: 36:00.6 chip-ID: 1022:15e3
  API: ALSA v: k6.11.3-200.fc40.x86_64 status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 1.0.8 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1
    port: e000 bus-ID: 03:00.0 chip-ID: 10ec:8168
  IF: eno1 state: up speed: 100 Mbps duplex: full mac: <filter>
  Device-2: Realtek RTL8852BE PCIe 802.11ax Wireless Network
    vendor: AzureWave driver: rtw89_8852be v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: d000 bus-ID: 04:00.0 chip-ID: 10ec:b852
  IF: wlp4s0 state: down mac: <filter>
Bluetooth:
  Device-1: IMC Networks Bluetooth Radio driver: btusb v: 0.8 type: USB
    rev: 1.0 speed: 12 Mb/s lanes: 1 bus-ID: 3-3:3 chip-ID: 13d3:3571
  Report: btmgmt ID: hci0 rfk-id: 4 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 5.2 lmp-v: 11
Drives:
  Local Storage: total: 715.41 GiB used: 16.43 GiB (2.3%)
  ID-1: /dev/nvme0n1 vendor: Apacer model: AS2280P4U 256GB size: 238.47 GiB
    speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 22.9 C
  ID-2: /dev/nvme1n1 vendor: Micron model: 2400 MTFDKBA512QFM
    size: 476.94 GiB speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 26.9 C
Partition:
  ID-1: / size: 475.35 GiB used: 11.84 GiB (2.5%) fs: btrfs
    dev: /dev/nvme1n1p3
  ID-2: /boot size: 973.4 MiB used: 361.3 MiB (37.1%) fs: ext4
    dev: /dev/nvme1n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 51 MiB (8.5%) fs: vfat
    dev: /dev/nvme1n1p1
  ID-4: /home size: 475.35 GiB used: 11.84 GiB (2.5%) fs: btrfs
    dev: /dev/nvme1n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 38.8 C mobo: 33.2 C gpu: amdgpu temp: 37.0 C
  Fan Speeds (rpm): cpu: 0
Info:
  Memory: total: 16 GiB note: est. available: 14.86 GiB used: 4.35 GiB (29.3%)
  Processes: 413 Power: uptime: 6h 6m wakeups: 3 Init: systemd v: 255
    target: graphical (5) default: graphical
  Packages: pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 24
    Compilers: gcc: 14.2.1 Shell: Bash v: 5.2.26 running-in: gnome-terminal
    inxi: 3.3.36

You have an nvidia RTX 4050 which seems to have problems with the 555 driver for some but it appears you have the 560 driver which for most just works for that GPU.

According to the lsmod info the nvidia drivers are not loaded.
The inxi output does not even show the nvidia GPU.

Please run sudo akmods --force --rebuild then reboot before providing the following.
Now please show us the result of cat /proc/cmdline, cat /etc/kernel/cmdline and sudo dmesg | grep -iE 'nvidia|nouveau|secure'.
Add the output of lspci -nnk | grep -A4 VGA

I rebuilt the kernel modules and rebooted the system.
Here is the output of the following commands:

user@linux:~$ cat /proc/cmdline
BOOT_IMAGE=(hd1,gpt2)/vmlinuz-6.11.3-200.fc40.x86_64 root=UUID=d07b9465-bb70-47f1-be0c-861af8f41aa8 ro rootflags=subvol=root rd.driver.blacklist=nouveau modprobe.blacklist=nouveau rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau
user@linux:~$ cat /etc/kernel/cmdline
root=UUID=d07b9465-bb70-47f1-be0c-861af8f41aa8 ro rootflags=subvol=root rd.driver.blacklist=nouveau modprobe.blacklist=nouveau rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau
user@linux:~$ sudo dmesg | grep -iE 'nvidia|nouveau|secure'
[    0.000000] Command line: BOOT_IMAGE=(hd1,gpt2)/vmlinuz-6.11.3-200.fc40.x86_64 root=UUID=d07b9465-bb70-47f1-be0c-861af8f41aa8 ro rootflags=subvol=root rd.driver.blacklist=nouveau modprobe.blacklist=nouveau rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau
[    0.000000] secureboot: Secure boot disabled
[    0.003354] secureboot: Secure boot disabled
[    0.027813] Kernel command line: BOOT_IMAGE=(hd1,gpt2)/vmlinuz-6.11.3-200.fc40.x86_64 root=UUID=d07b9465-bb70-47f1-be0c-861af8f41aa8 ro rootflags=subvol=root rd.driver.blacklist=nouveau modprobe.blacklist=nouveau rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau
[    6.152180] amdgpu 0000:36:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
user@linux:~$ lspci -nnk | grep -A4 VGA
pcilib: Error reading /sys/bus/pci/devices/0000:00:08.3/label: Operation not permitted
36:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] [1002:1681] (rev 0a)
	Subsystem: ASUSTeK Computer Inc. Device [1043:14c3]
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
36:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller [1002:1640]

For whatever reason the system appears to not even be seeing the nvidia GPU. It does not show with the inxi output and also did not appear with lspci. As a result the system cannot configure it and does not even attempt to load the drivers.

The lspci output may be an indicator with this line
pcilib: Error reading /sys/bus/pci/devices/0000:00:08.3/label: Operation not permitted
Try a couple more commands and if that fails then I would feel it is truly a hardware issue.
sudo fixfiles onboot, then reboot and wait for that to finish on the next boot.
Finally try lspci | grep -i nvidia

If this lspci command does not return anything then the system would seem to be unable to even see the nvidia GPU and it would be time for repair, either by warranty or otherwise.

I used this command «sudo fixfiles onboot» and rebooted the system.
The output of the following command returned nothing.

user@linux:~$ lspci | grep -i nvidia
user@linux:~$ 

The system still does not see the driver.
And most likely this is a hardware problem, in any case, thanks for the help!

lspci show the hardware detected, your hardware is missing (broken or disabled).

leigh@leigh-pc:~$ lspci | grep -ie vga -ie nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation TU117 [GeForce GTX 1650] (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 10fa (rev a1)
leigh@leigh-pc:~

Yes, I understand, in any case I will continue to solve this problem and try to return the laptop under warranty, or try to install Windows and see if the drivers will work there.

Although it’s quite strange, my drivers worked fine, then an update comes and the drivers no longer work.