赞
踩
ubuntu-drivers devices
sudo ubuntu-drivers autoinstall
sudo apt install nvidia-xxx
第一:安装ppa的显卡驱动源
- sudo add-apt-repository ppa:graphics-drivers/ppa
- sudo apt update
第二:检查显卡和推荐驱动
ubuntu-drivers devices
现实如下结果:noi:~$ 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 builti
推荐的是430显卡。
第三:安装
- sudo apt install nvidia-driver-430
- 或
- sudo ubuntu-drivers autoinstall
第四:重启并检查:
nvidia-smi
如果输出:
第五:如果正常显示,则表示安装成功。
ffly@noi:~$ nvidia-smi Mon May 6 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. | |===============================+======================+======================| | 0 GeForce 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 | +-----------------------------------------------------------------------------
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。