How i can install vga drivers

1-disable secureboot (if UEFI).

2-install last kernel with last kernel-devel.

sudo dnf install kernel kernel-devel kernel-headers

3-reboot and boot from last kernel.

4-check nvidia driver version compatible with your card (This Link only to check version compatible )

To Get All VGA Names On Your System Run.

lspci |grep VGA;lspci |grep 3D

5-install compatible driver version (to list all versions available).

sudo dnf repoquery xorg-x11-drv-nvidia*

Example :

sudo dnf install xorg-x11-drv-nvidia-390xx-390.116

6-recommend check if akmods service enabled or enabled it.

sudo systemctl status akmods.service
sudo systemctl enable akmods.service


WARNING (Only for optimus(intel/nvidia VGA) to Fix black screen problem)
Before reboot if you have optimus(intel/nvidia VGA) and you dont use fedora workstation (gdm gnome display manager ) .

For LightDM (mate xfce).

For sddm (kde).
add this lines to /etc/sddm/Xsetup.
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
sorry for my english.