Hello, I have an old laptop that was handed to me. I’m trying to install Fedora on it and I’m coming into problems when it comes to using proprietary NVIDIA drivers. I mainly followed the instructions from RPM Fusion with some help from the Fedora Docs and the Arch Wiki but it seems I’m still coming up short. Every time I would log in the screen would just stay black. I’ve tried moving the mouse around but I don’t see a cursor.
This is the laptop’s VGA/3D:
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 3D controller: NVIDIA Corporation GF119M [GeForce GT 520MX] (rev a1)
I’ve installed the following packages trying to make this work:
- NVIDIA related packages
nvidia-gpu-firmware-20260110-1.fc42.noarch
xorg-x11-drv-nvidia-390xx-kmodsrc-390.157-7.fc42.x86_64
xorg-x11-drv-nvidia-390xx-libs-390.157-7.fc42.x86_64
nvidia-settings-390xx-390.157-5.fc42.x86_64
akmod-nvidia-390xx-390.157-22.fc42.x86_64
xorg-x11-drv-nvidia-390xx-390.157-7.fc42.x86_64
kmod-nvidia-390xx-6.18.7-100.fc42.x86_64-390.157-22.fc42.x86_64
nvidia-persistenced-580.119.02-1.fc42.x86_64
xorg-x11-drv-nvidia-390xx-cuda-libs-390.157-7.fc42.x86_64
xorg-x11-drv-nvidia-390xx-cuda-390.157-7.fc42.x86_64
I did the usual dnf update and installed the free and nonfree repos. I made sure to wait for the kmods to build. I’ve confirmed that it was finished with modinfo. I alse ran the commands sudo akmods --force and sudo dracut --force.
- X11 related packages:
plasma-workspace-x11
I’ve searched around and this seems to be the only package I need to enable X11 again in Fedora 42. kwin is also included in this package. If there are any packages missing that X11 needs in order to work properly I would love to know!
I added the kernel argument nvidia-drm.modeset=0 via the command sudo grubby --update-kernel=ALL --args='nvidia-drm.modeset=0'. It used to be nvidia-drm.modeset=1 after a fresh install but using that argument stops me from reaching the login screen when using X11 + proprietary Nvidia drivers. The RPM Fusion docs also recommended removing that argument. I’ve added xrandr commands on Xsetup for SDDM as mentioned by the Arch Wiki, but I wrote those commands in /etc/sddm/Xsetup instead. According to the Fedora Docs this is how it should be done.
This is my xorg config:
Section "ServerLayout"
Identifier "layout"
Option "AllowNVIDIAGPUScreens"
EndSection
Section "Files"
ModulePath "/usr/lib64/nvidia-390xx/xorg/"
ModulePath "/usr/lib64/xorg/modules"
FontPath "catalogue:/etc/X11/fontpath.d"
FontPath "built-ins"
EndSection
Section "Device"
Identifier "Card0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID "PCI:1:0:0"
Option "AllowEmptyInitialConfiguration"
EndSection
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
Option "PrimaryGPU" "yes"
Option "SLI" "Auto"
Option "BaseMosaic" "on"
ModulePath "/usr/lib64/nvidia-390xx/xorg"
EndSection
While I was troubleshooting I found that xorg was using its own glx module, I had to include an additional ModulePath that points to NVIDIA’s own glx module in order for xorg to use the that one. Apparently the order is important so I made sure the Nvidia path is listed first before the xorg one. The part of the config that is causing problems seems to be the Devices section. Without it Fedora boots fine, but running glxinfo gives the error:
name of display: :0
Error: couldn't find RGB GLX visual or fbconfig
I also can’t run nvidia-settings as well.
The OutputClass section is something I’ve seen in other examples online so I’ve included it, but I’m not sure if xorg is picking it up? With these settings (including the Devices section), resulted in this xorg log: https://pastebin.com/NTSuUw5Y
I believe the log ends at around the lines similar to systemd-logind: got pause for 13:75. Anything after lines like those is when I switched to a different tty and rebooted.
I believe that’s everything I’ve done to this point. Despite all this I still get a black screen after login, and looking at the logs I couldn’t figure it out. I’m not even sure if this is a xorg issue, maybe plasma-workspace-x11 is causing troubles maybe? I’ve tried looking online to see if others have similar problems but their solutions don’t work for me, or at least I don’t think it does. I would appreciate it if I get pointed at the right direction! This is my first time trying out fedora and I’m tinkering around on an old laptop before I finally give it a try on my main one!