Install NVIDIA Graphic Driver2019/10/09 |
If your Computer has NVIDIA Graphic cards, Install NVIDIA Graphic Driver to improve Graphics related performance.
|
|
[1] |
If you are using Desktop Environment, change to CUI login, refer to here.
It's OK to fall back to GUI login after finishing setting up Graphic Driver. |
[2] | Disable [nouveau] driver that is loaded by default as generic graphic driver. |
[root@dlp ~]# lsmod | grep nouveau nouveau 2187264 1 video 45056 1 nouveau mxm_wmi 16384 1 nouveau wmi 32768 2 mxm_wmi,nouveau i2c_algo_bit 16384 1 nouveau drm_kms_helper 200704 1 nouveau ttm 131072 1 nouveau drm 520192 4 drm_kms_helper,ttm,nouveau
[root@dlp ~]#
vi /etc/modprobe.d/blacklist-nouveau.conf # add to the end (create new if it does not exist)
blacklist nouveau
options nouveau modeset=0
[root@dlp ~]#
[root@dlp ~]# dracut --force
reboot
|
[3] | Install required packages. |
[root@dlp ~]# dnf -y install kernel-devel kernel-headers elfutils-libelf-devel zlib-devel gcc make
|
[4] | Download Graphic Driver for your Computer from NVIDIA site. ⇒ https://www.nvidia.com/Download/index.aspx?lang=en |
# confirm the cards on your computer [root@dlp ~]# lspci | grep VGA 05:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1070] (rev a1) # run the installer you downloaded [root@dlp ~]# bash NVIDIA-Linux-x86_64-430.50.run Verifying archive integrity... OK Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 430.50 WARNING: nvidia-installer was forced to guess the X library path '/usr/lib64' and X module path '/usr/lib64/xorg/modules'; these paths were not queryable from the system. If X fails to find the NVIDIA X driver module, please install the `pkg-config` utility and the X.Org SDK/development package for your distribution and reinstall the driver. ..... ..... Install NVIDIA's 32-bit compatibility libraries? # select [Yes] on here Yes No Would you like to run the nvidia-xconfig utility to automatically update your X configuration file so that the NVIDIA X driver will be used when you restart X? Any pre-existing X configuration file will be backed up. # select [No] on here Yes No Installation of the NVIDIA Accelerated Graphics Driver for Linux-x86_64 (version: 430.50) is now complete. Please update your xorg.conf file as appropriate; see the file /usr/share/doc/NVIDIA_GLX-1.0/README.txt for details. OK # verify installation to show Graphic cards status [root@dlp ~]# nvidia-smi Wed Oct 9 23:27:02 2019 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 430.50 Driver Version: 430.50 CUDA Version: 10.1 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 GeForce GTX 1070 Off | 00000000:05:00.0 Off | N/A | | 27% 37C P5 12W / 180W | 0MiB / 8119MiB | 2% Default | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | No running processes found | +-----------------------------------------------------------------------------+ |
Sponsored Link |
|