Hello everyone. I am sorry for taking time out of your days to help my stupidity.
I have been having significant issues related to gaming on Fedora 44. When I play several different games I experience large amounts of lag to the point that things are unplayable. I have been trying to install the proper nvidia drivers for my laptop. I have tried download many different drivers all with the same result of booting to a completley black screen. The only way I can get a GUI back is if I go to my GRUB bootloader and set my current linux to nomodeset to be able to boot agian.
I have tried to install these drivers the following ways with the same result of a black screen:
Do you have secure boot enabled?
If it is then the only solution is
disable secure boot within the bios menu OR
Follow the instructions in the file /usr/share/doc/akmods/README.secureboot (which also is shown on the rpmfusion site)
Option 1 allows the nvidia drivers to load under all conditions.
Option 2 enrolls the signing key into bios so the kernel is able to load the signed driver while secure boot is enabled.
That tells me that secure boot is not the issue, so I must ask for the output of both dnf list --installed \*nvidia\* and inxi -Fzxx. This also could be an issue with the driver version vs the GPU version.
I know you said RTX 4050 but need it confirmed as well as the driver.
I have an update. I got the nvidia drivers to properly work know after 3 days straight of messing with them. I am still having trouble with them however because everytime I boot I still get the black screen of death and I have the gui popup for a millisecond as everything goes black and freezes. i have to manually go back and set it to nomodeset which ironcially when I check if nouveau is running it comes with a blank output but when I check if nvidia is running it shows in the output that it is indeed running. Still confused on how to fix this black screen though. Any thoughts? Thanks agian.
How did you install the nvidia driver that you now say somewhat works?
The normal installation is done by the user enabling the 3rd party repos during the initial setup stage on first boot after installation of fedora. The secondary way is to enable the rpmfusion-nonfree repo as you indicate was done in your opening post
Once the repo is enabled the command sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda should properly install the drivers. A short wait of 3 to 5 minutes after this command completes is necessary to allow time for the drivers to be built locally.
Your dnf output shows the nvidia drivers are not installed.
Your inxi output just above shows the nouveau driver is loaded which means that the nvidia driver is not loaded and we need to find out why. You said they are installed but we need an update to show that.
Please post the output of dnf list --installed \*nvidia\* and modinfo -l nvidia as well as sudo dmesg | grep -iE "nouveau|nvidia|secure"
So when I removed it with your command, I saw the decryption passphrase screen popup for a millisecond as the entire page freezes. I have to go back into GRUB and set it to nomodeset for it to boot into my normal operating system. Could this be a bug? Thanks agian.
I don’t think it is a bug, but something is off about the config that requires nomodeset as a kernel option.
The nvidia modules appear to be loading properly but nomodeset is interfering with operation and should not be required for booting.
Maybe someone else has an idea here.
Please run sudo lsinitrd | grep mode and post that output. I would be interested to find out if the option is embedded in the intramfs image. (I only get 7 lines of output with that command)
Well I just want to thank you all for your assistance. You guys have been a great help to me. After a long struggle I just decided to delete all my nvidia drivers and go back to using nouveau which worked perfectly fine. I have decided to quit gaming as a whole because I really need nvidia drivers and since they where causing such trouble I just removed them. Thank you all for your help and kindness!
Overall I think that Linus Torvalds said it best, Nvidia does truly suck.
@leigh123linux The amdgpu driver was the exact problem in my case, thanks for mentioning this. On a fresh Fedora 43 install I was getting a black screen upon reboot after installing fresh Nvidia drivers. Adding modprobe.blacklist=amdgpu to the boot instructions resolved the issue. It’s definitely worth a try
I know this is a closed issue but it hasn’t really been fixed and I propose a solution that worked for me, but for an older Nvidia GPU, so I can’t guarantee it will work for you as well.
My Nvidia drivers stopped working after the upgrade from Fedora 43 to 44 as well. I have GTX 1050, but I managed to find the solution for me, the older version 580 of the drivers is working for me.
One of the problems for me was that the card is too old and newer drivers are broken and don’t work with my card because it’s old and doesn’t have a gsp chip and the latest driver doesn’t detect that my card is old and doesn’t have the chip but the 580 version driver does and because of that the latest driver treats my card as the new ones with the chip and because it can’t find the chip because my card doesn’t have one the driver doesn’t load.
This is an issue for my card but maybe downgrading the driver could work for you as well.
Here are the steps:
I fixed it by deleting the latest ones by typing sudo dnf remove akmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-cuda into the terminal and then also removing all unused and unnecessary dependencies by sudo dnf autoremove. Then install the older ones with sudo dnf install akmod-nvidia-580xx xorg-x11-drv-nvidia-580xx xorg-x11-drv-nvidia-580xx-cuda.
Then you need to write these two commands sudo akmods --force you need to wait for this to finish it will write some numbers an “[OK]” at the end and then enter this command sudo dracut --force wait for it to finish and then reboot the pc. I don’t know if it will work for you but I hope it will.
@diaxen Please change "*nvidia*" to akmod-nvidia xorg-x11-drv-nvidia*
The wildcards will cause other users to erase the nvidia-gpu-firmware package which will cause issues if nouveau is loaded whenever the proprietary drive is missing