Black screen after fresh install of F39

Fresh install of Fedora 39 on a laptop with an Intel CPU and NVIDIA GPU. Encountering a black screen after selecting Fedora from GRUB.

Problem:

I installed Fedora 39 as a dual boot alongside Windows 11 on my laptop. After creating a partition for Fedora and installing the OS in the allocated space, I encountered an issue where, upon booting the laptop and selecting Fedora from the GRUB menu, it only displays a black screen. However, Windows 11 continues to function normally.

Notes:

  • I installed Windows 11 myself to avoid pre-installed software from MSI and solely installed it on the full SSD without using my 2TB SSD.
  • Yesterday, I installed Fedora 39 on my main SSD, maintaining dual boot with Windows. I shrank the partition in Windows and installed Fedora 39 there, without using the separate 2TB SSD.
  • I already tried using secure boot enabled and disabled. No luck.

Specifications:

•	Laptop: MSI GF65
•	CPU: Intel i7 11800
•	GPU: NVIDIA 3060
•	SSD: 512GB

Cause:

The root cause remains elusive at present.

A new install of fedora with secure boot enabled and an nvidia gpu is somewhat problematic since the nvidia gpu is often not properly supported by the default nouveau drivers, especially when the gpu is one of the newer ones.

You should be able to boot properly if you

  1. press the e key while the boot menu is displayed then on the line that begins with linux add the option nomodeset into that line. Once done then continue to boot and it should boot with basic graphics mode enabled.
    During the setup enable the 3rd party repos when asked.
  2. Install the nvidia drivers from the rpmfusion repo as follows.
    a. first install akmods with sudo dnf install akmods
    b. set up the signing key for the nvidia driver following the steps in the file /usr/share/doc/akmods/README.secureboot This will result in another reboot.
    c. Install the nvidia driver with sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda
    d. Wait 5 minutes then reboot. Now the nvidia drivers should load and function (with secure boot enabled or disabled). For most the ‘black screen’ issue has been solved by these steps.

From Proposed Common Issues to Ask Fedora