Black screen on boot after update

After updating i’ve in black screen on boot.
Tried different solutions from the forum and managed to get the system to boot with

  1. removing nvidia drivers using tty3(after removing i wasn’t able to get the LUKS password entrance window, so had to do step 2)
  2. settings nomodeset plymouth.enable=0 in grub

Tried to reinstall nvidia drivers afterwards, but ended up in same situation.
i’m on Fedora 40, kernel 6.10.5-200.fc40.x86_64, secure boot is ON

Where should i look for the issue first?

lspci | grep -E "VGA|3D"

0000:01:00.0 VGA compatible controller: NVIDIA Corporation GA104GLM [RTX A5000 Mobile] (rev a1)

dmesg | grep -iE "secure|nouveau|nvidia"

[    0.000000] Kernel is locked down from EFI Secure Boot mode; see man kernel_lockdown.7
[    0.013503] secureboot: Secure boot enabled
[    2.535931] sdhci: Secure Digital Host Controller Interface driver
[    4.419440] nvidia: loading out-of-tree module taints kernel.
[    4.419445] nvidia: module license 'NVIDIA' taints kernel.
[    4.419459] nvidia: module license taints kernel.
[    4.571168] nvidia-nvlink: Nvlink Core is being initialized, major device number 511
[    4.571853] nvidia 0000:01:00.0: enabling device (0006 -> 0007)
[    4.571912] nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
[    4.619226] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  555.58.02  Tue Jun 25 01:39:15 UTC 2024
[    4.677838] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
[    4.743154] nvidia-uvm: Loaded the UVM driver, major device number 509.
[    4.778354] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  555.58.02  Tue Jun 25 01:10:21 UTC 2024
[    4.782212] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[    5.501460] [drm:nv_drm_load [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NvKmsKapiDevice
[    5.501512] [drm:nv_drm_register_drm_device [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to register device
[   13.324010] Bluetooth: hci0: Secure boot is enabled
[   13.471677] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input10
[   13.471724] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input11
[   13.471763] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input12
[   13.471810] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input13

Was the system booting properly with the 6.10.4 kernel?
If so then boot with the 6.10.4 kernel and we can do some troubleshooting, maybe even remove the 6.10.5 kernel.

We need to see the kernel command line which should have been seen in the dmesg output and to know what nvidia packages are installed.

cat /proc/cmdline
dnf list installed \*nvidia\*
lsmod | grep nvidia

Those commands should give us a starting point.

Was the system booting properly with the 6.10.4 kernel?

Nope, all started with the 6.10.4 actually, don’t remember which kernel i had before(haven’t updated since may/june), but it also had issues with hibernate, sometimes i wasn’t able to wake the system from sleep, screens never showed anything and i had to reboot using power button.

cat /proc/cmdline

BOOT_IMAGE=(hd1,gpt6)/vmlinuz-6.10.5-200.fc40.x86_64 root=UUID=d5b9754a-293f-4b88-bdb2-10a3f4671f9d ro rootflags=subvol=root rd.luks.uuid=luks-0fafb902-db94-4a8e-ad50-6477df93786a rd.luks.uuid=luks-5529c265-28d3-46f0-b389-4f6403d26169 rhgb quiet nomodeset plymouth.enable=0

nomodeset plymouth.enable=0 - added manually through pressing E in grub

dnf list installed \*nvidia\*

Installed Packages
nvidia-gpu-firmware.noarch               20240811-2.fc40                @updates

lsmod | grep nvidia

nvidia_drm            135168  0
nvidia_modeset       1617920  1 nvidia_drm
nvidia_uvm           6815744  0
nvidia              61018112  2 nvidia_uvm,nvidia_modeset
video                  81920  3 thinkpad_acpi,nouveau,nvidia_modeset

It would appear that the nvidia driver may have been installed directly from the nvidia site (possibly the .run file) and not from the rpmfusion repo. (definitely not as an rpm)

I cannot assist with any nvidia problems installed that way except to suggest that you remove those drivers using the .run file with the --uninstall option, then reinstall them from rpmfusion repo with dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda.
Wait at least 5 minutes after installing the drivers before rebooting.

Actually i did install it from rpmfusion, not nvidia website, but let me try to download the .run file and uninstall

Yep, .run file with --uninstall said that driver isn’t installed

Since the rpm packages did not show that means it either was not installed from rpmfusion or that the installation failed to install anything (or possibly the packages were removed after booting). The only nvidia package shown was the firmware which comes from fedora.

However the driver was installed by some means since the lsmod command returned those nvidia modules.

What does modinfo nvidia give before rebooting.

modinfo: ERROR: Module nvidia not found.

That makes sense only if the driver was available when the system was booted but removed while running. lsmod gives a listing of loaded modules while modinfo looks at the module files that are used to load the modules.

Go ahead and install the drivers using the command I gave above.

I will be away for a while. Will check back when I return.

When properly installed the lsmod command should return a similar listing to what you already posted and the dnf list installed command should show something like this.

dnf list installed \*nvidia\*
Installed Packages
akmod-nvidia.x86_64                                             3:555.58.02-1.fc40                  @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.10.3-200.fc40.x86_64.x86_64                  3:555.58.02-1.fc40                  @@commandline                   
kmod-nvidia-6.10.4-200.fc40.x86_64.x86_64                  3:555.58.02-1.fc40                  @@commandline                   
kmod-nvidia-6.10.5-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-nvidia-driver
nvidia-persistenced.x86_64                                      3:555.58.02-1.fc40                  @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                                          3:555.58.02-1.fc40                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                                      3:555.58.02-1.fc40                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64                                 3:555.58.02-1.fc40                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.i686                              3:555.58.02-1.fc40                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64                            3:555.58.02-1.fc40                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64                              3:555.58.02-1.fc40                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686                                   3:555.58.02-1.fc40                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64                                 3:555.58.02-1.fc40                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64                                3:555.58.02-1.fc40                  @rpmfusion-nonfree-nvidia-driver

yeah, that’s how it was looking like before i uninstalled it, and for installation i used the same command, but for sure let me give it a try one more time

Thanks for helping!

After reboot and entering LUKS password screen is black, switched to tty3 which is in this state

Nvidia driver builds fail much too often, but there should a log with details mentioned in journalctl:

% journalctl --no-hostname -b -5 -g /var/cache/akmods.\*failed.log |cat
Aug 13 13:14:11 akmods[894]: Building rpms failed; see /var/cache/akmods/nvidia-470xx/470.256.02-1-for-6.10.3-200.fc40.x86_64.failed.log for details

You probably need -b -1.

No entries found

Try running sudo akmods --force --rebuild to rebuild and reinstall the actual modules. If that succeeds the next reboot should work properly. If it fails it should provide a message for you.

Built without issues, same black screen after reboot

The only thing related to nvidia i was able to find is a flatpak extension
org.freedesktop.Platform.GL.nvidia-555-58-02

It’s heavily used by almost all flatpak installed apps i have, not sure if it’s safe to remove it

For “Data Center GPU’s”: SOLVED - RmInitAdapter failed! .

The solution builds the driver using the Nvidia .run script to build the “open” kernel:

sudo ./NVIDIA-Linux-x86_64-525.116.04.run -m=kernel-open

For rpmfusion, see: Kernel Open.

Thanks, but what does “Data Center GPU” means?
i’m having an issues on a laptop

@computersavvy really sorry for tagging you, but you might have any other ideas for me to try