我是靠谱客的博主 合适嚓茶,最近开发中收集的这篇文章主要介绍Ubuntu 18.04 安装 GeForce RTX 2080 Ti1,安装 RTX 2080 Ti2,安装驱动3,禁用 nouveau,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

Ubuntu 18.04 安装 GeForce RTX 2080 Ti

  • 1,安装 RTX 2080 Ti
  • 2,安装驱动
  • 3,禁用 nouveau

1,安装 RTX 2080 Ti

# cat /etc/issue
Ubuntu 18.04.5 LTS n l
# lspci | grep -i nvidia
21:00.0 VGA compatible controller: NVIDIA Corporation GV102 (rev a1)
21:00.1 Audio device: NVIDIA Corporation Device 10f7 (rev a1)
21:00.2 USB controller: NVIDIA Corporation Device 1ad6 (rev a1)
21:00.3 Serial bus controller [0c80]: NVIDIA Corporation Device 1ad7 (rev a1)
  • 更新PCI ID,显卡列表
  • 参考:Ubuntu 18.04安装NVIDIA(英伟达) RTX2080Ti显卡
# update-pciids
Downloaded daily snapshot dated 2020-09-22 03:15:01
cat /usr/share/misc/pci.ids | grep -i rtx
  • 查看显卡
# lspci | grep -i nvidia
21:00.0 VGA compatible controller: NVIDIA Corporation TU102 [GeForce RTX 2080 Ti Rev. A] (rev a1)
21:00.1 Audio device: NVIDIA Corporation TU102 High Definition Audio Controller (rev a1)
21:00.2 USB controller: NVIDIA Corporation TU102 USB 3.1 Host Controller (rev a1)
21:00.3 Serial bus controller [0c80]: NVIDIA Corporation TU102 USB Type-C UCSI Controller (rev a1)
lshw -numeric -C display

2,安装驱动

apt install ubuntu-drivers-common -y
ubuntu-drivers devices
vendor   : NVIDIA Corporation
driver   : nvidia-driver-440-server - distro non-free
driver   : nvidia-driver-435 - distro non-free
driver   : nvidia-driver-450-server - distro non-free recommended
driver   : nvidia-driver-418-server - distro non-free
driver   : nvidia-driver-450 - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin
  • 添加源
add-apt-repository ppa:graphics-drivers/ppa
sudo add-apt-repository ppa:graphics-drivers/ppa
apt update
# ubuntu-drivers devices
vendor   : NVIDIA Corporation
driver   : nvidia-driver-418-server - distro non-free
driver   : nvidia-driver-440-server - distro non-free
driver   : nvidia-driver-450-server - distro non-free recommended
driver   : nvidia-driver-410 - third-party free
driver   : nvidia-driver-415 - third-party free
driver   : nvidia-driver-450 - distro non-free
driver   : nvidia-driver-435 - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin
  • 查看TMPDIR目录是否报错
 echo $TMPDIR
apt install -y nvidia-driver-450-server

3,禁用 nouveau

# lsmod | grep nouveau
nouveau              1708032  0
mxm_wmi                16384  1 nouveau
video                  45056  1 nouveau
i2c_algo_bit           16384  1 nouveau
ttm                   106496  1 nouveau
drm_kms_helper        172032  1 nouveau
drm                   401408  3 drm_kms_helper,ttm,nouveau
wmi                    24576  3 wmi_bmof,mxm_wmi,nouveau
  • vim /etc/modprobe.d/blacklist.conf
  • 添加参数
blacklist nouveau
  • 更新
update-initramfs -u
reboot
# nvidia-smi
Thu Sep 24 15:29:21 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.51.06    Driver Version: 450.51.06    CUDA Version: 11.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  GeForce RTX 208...  Off  | 00000000:21:00.0 Off |                  N/A |
| 37%   56C    P0    51W / 300W |      0MiB / 11016MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

参考:

  1. Ubuntu 18.04安装NVIDIA(英伟达) RTX2080Ti显卡

最后

以上就是合适嚓茶为你收集整理的Ubuntu 18.04 安装 GeForce RTX 2080 Ti1,安装 RTX 2080 Ti2,安装驱动3,禁用 nouveau的全部内容,希望文章能够帮你解决Ubuntu 18.04 安装 GeForce RTX 2080 Ti1,安装 RTX 2080 Ti2,安装驱动3,禁用 nouveau所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(54)

评论列表共有 0 条评论

立即
投稿
返回
顶部