ubuntu 18.04安裝RTX 2060 顯卡驅動
阿新 • • 發佈:2019-05-06
gef party ora proc vendor update install compute dia
第一:安裝ppa的顯卡驅動源
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
第二:檢查顯卡和推薦驅動
ubuntu-drivers devices
現實如下結果:
[email protected]:~$ ubuntu-drivers devices == /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 == modalias : pci:v000010DEd00001F08sv000010DEsd000012FDbc03sc00i00 vendor : NVIDIA Corporation driver : nvidia-driver-415 - third-party free driver : nvidia-driver-418 - third-party free driver : nvidia-driver-430 - third-party free recommended driver : xserver-xorg-video-nouveau - distro free builtin
推薦的是430顯卡。
第三:安裝
sudo apt install nvidia-driver-430
第四:重啟並檢查:
nvidia-smi
如果輸出:
[email protected]:~$ nvidia-smi Mon May6 07:54:58 2019 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 430.09 Driver Version: 430.09 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. | |===============================+======================+======================| | 0GeForce RTX 2060 Off | 00000000:01:00.0 On | N/A | | 0% 46C P8 11W / 160W | 189MiB / 5931MiB | 2% Default | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | 0 1401 G /usr/lib/xorg/Xorg 108MiB | | 0 1569 G /usr/bin/gnome-shell 75MiB | | 0 2518 G /usr/lib/firefox/firefox 3MiB | +-----------------------------------------------------------------------------+
第五:如果正常顯示,則表示安裝成功。
ubuntu 18.04安裝RTX 2060 顯卡驅動