Install NVIDIA driver on Fedora

This post is obsolete. Please check the new manual at this post

Install driver

Add negativo17’s repo

$ sudo dnf config-manager --add-repo=https://negativo17.org/repos/fedora-nvidia.repo

Install NVIDIA driver

$ sudo dnf install nvidia-driver nvidia-driver-libs.i686

Config DM

Create script file /usr/bin/xrandr-nvidia

#!/bin/sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

and add execute permission

$ sudo chmod +x /usr/bin/xrandr-nvidia

For SDDM, add the above script to /etc/sddm/Xsetup

#!/bin/sh
# Xsetup - run as root before the login dialog appears
/usr/bin/xrandr-nvidia

For LightDM, in /etc/lightdm/lightdm.conf find the section [Seat:*] and add the script

...
[Seat:*]
display-setup-script=/etc/lightdm/xrandr-nvidia
...

See also

comments powered by Disqus