To install NVidia drivers follow these steps;
NOTE:
It’s recommended to use akmod-nvidia driver from rpmfusion, however it may occur that it breaks down on a kernel update.
In this case you may try the nvidia official drivers.
1. DISABLING nouveau
Nvidia driver won’t work if the nouveau driver is enabled. (By default it is.)
THIS CHANGE IS REQUIRED REGARDLESS OF WHICH DRIVER IS USED.
To disable it, do the following:
- Update the following line in / etc/default/grub file:
GRUB_CMDLINE_LINUX=”(…)”
add the following parameters to the end:
GRUB_CMDLINE_LINUX=”(…) rdblacklist=nouveau nouveau.modeset=0“ - Run the following command:
grub2-mkconfig -o /boot/grub2/grub.cfg - Create a blacklist file to / etc/modprobe.d/disable-nouveau.conf
blacklist nouveau
options nouveau modeset=0
DONE!
At this point the nouveau driver is disabled.
You have to reboot.
2. USING akmod-nvidia
- yum install akmod-nvidia #this is the driver
- yum install nvidia* #this will install nvidia-settings
- yum install vdpauinfo libva-vdpau-driver libva-utils
- Reboot on success
3. USING THE NVidia OFFICIAL DRIVER
Prerequisites
– you have downloaded the official driver (NVIDIA-Linux-x86_64-???.??.run)
– you have the kernel-devel package for the used kernel.
Installing nvidia official driver
- Switch to konsole (Ctrl-Alt-F2)
- init 3
- run the NVIDIA Official driver script (NVIDIA-Linux(…).run)
- Follow the steps
- Reboot on success
4. TROUBLESHOOTING
Using version 325.15 with kernel 3.10 and above
The kernel version 3.10 requires 325.15 or newer driver.
The kernel version 3.11 and newer requires 325.15 with the following patch:
- Unpack the driver script
NVIDIA-Linux(…).run -extract-only - Apply the following patch in the extracted folder:
— a/kernel/nv-linux.h
+++ b/kernel/nv-linux.h
@@ -957,7 +957,11 @@ static inline int nv_execute_on_all_cpus
#endif
#if !defined(NV_VMWARE)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)
+#define NV_NUM_PHYSPAGES get_num_physpages()
+#else
#define NV_NUM_PHYSPAGES num_physpages
+#endif
#define NV_GET_CURRENT_PROCESS() current->tgid
#define NV_IN_ATOMIC() in_atomic()
#define NV_LOCAL_BH_DISABLE() local_bh_disable()
- After the patch you can run: nvidia-installer
Fixing bad DPI
If some text in X (even on the login screen) uses unreadably large fonts, you have to fix the DPI resolution of the screen.
You can fix this by inserting the following line to / etc/X11/xorg.conf to the Section “Monitor”:
Section “Monitor”
Identifier “Monitor0”
…
Option “DPI” “96 x 96”
EndSection