I installed ollama and it downloaded and installed all of the nvidia drivers for me. (Yay!) However at reboot, I only get a black log-in screen. Moreover, in contrast to this problem:
I can type in my password and everything works fine. (nvidia-smi shows a very happy and healthly GPU.)
Interestingly enough, the lock screen works just fine. It’s only the log-in screen that seems affected.
I hope you noticed that the post you quoted is 2 years old and not correct for fedora today.
If you actually ran the indicated command then it broke kernel updates on your system going forward.
The correct command would have been sudo grub2-mkconfig -o /boot/grub2/grub.cfg
To repair the problem created by running the incorrect command you need to do the following.
sudo rm /boot/efi/EFI/fedora/grub.cfg /boot/grub2/grub.cfg
which will remove the now faulty files.
sudo dnf reinstall grub2-common
which should recreate both those files with the proper content.
Thank you for your concern, but I did not execute that command. I did however execute the recommended change from the second link (which is indeed the one you recommend), which was unsuccessful.
UPDATE: I think in my second link, I copied the wrong one. Doh. That’s what I get for looking at six related post simultaneouly. Anyhow, the link that doesn’t work is:
For anyone else that lands here via a web search, the solution for me was to edit the /etc/X11/xorg.conf.d/10-nvidia.conffile and set the Option "PrimaryGPU" "yes" to "no".
This is the first time I have heard about this type issue where using an optimus laptop and setting the nvidia gpu as primary does not work properly with X11.
The only way that file had that option in it (when xorg-x11-drv-nvidia was installed from rpmfusion) would have been if the user had first put that file into that location then edited it to add the option.
The default config of that file as distributed is this (copied from /usr/share/X11/xorg.conf.d/nvidia.conf into the /etc/X11/org.conf.d/ directory)
Making the nvidia gpu as primary involves adding the line Option "PrimaryGPU" "Yes" into the section “Output Class” . The copy to be edited is the copy in the /etc/X11/xorg.conf.d/ directory.