AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1467777
Accepted
Ivn Alfonso Pizarro Montenegro
Ivn Alfonso Pizarro Montenegro
Asked: 2023-05-13 23:50:13 +0800 CST2023-05-13 23:50:13 +0800 CST 2023-05-13 23:50:13 +0800 CST

Nvidia RTX 2060 Max Q - Ubuntu 22.04 LTS

  • 772

为 Nvidia RTX 2060 Max Q 安装专有驱动程序的正确方法是什么?

现在,我正在使用开源 nouveau 驱动程序。但在过去,当我从 GUI 尝试其他选项时,结果一团糟:滞后、第二个显示器的 hdmi 问题、无法启动会话等等。

问题的第二部分是,我应该吗?我会从安装专有驱动程序中受益,还是保留 nouveau 驱动程序就可以了?

谢谢

更新 1: @mikemikewhatever 我选择了第一个选项,安装了驱动程序,重新启动,然后出现黑屏。然后我不得不重新启动,进入恢复模式,清除 nvidia 中的所有内容,然后使用 nouveau 驱动程序再次重新启动。

这并不奇怪,因为这不是我第一次尝试这样做。唯一的区别是,我将在这篇文章中分享结果的屏幕截图。

谢谢你的建议。不幸的是,没有用。

在此处输入图像描述

在此处输入图像描述

更新 2:这次我在终端上尝试了 (sudo apt install nvidia-driver-530),它工作了(显然只在 xorg 会话上),但有一个警告。现在第二个显示器 (hdmi) 根本不起作用。但我想这是向前迈出的一步。

所以,下面的问题应该是在这一点上,如何让我的第二个显示器被识别?这是新事物,它不会发生在 nouveau 驱动程序上,只会发生在安装了专有驱动程序的情况下。

我愿意接受建议和可能的解决方案。谢谢。

在此处输入图像描述

在此处输入图像描述

更新 3:我禁用了安全启动 (UEFI/BIOS),现在检测到第二个显示器。之后,我只需要重新校准颜色。

为什么会发生这一切?不知道。但我会保留这篇文章,因为老实说我不确定一切是否 100% 工作,我可能需要再次检查一些东西,所以我会关注这篇文章。感谢大家。

drivers
  • 1 1 个回答
  • 42 Views

1 个回答

  • Voted
  1. Best Answer
    Rinzwind
    2023-05-15T03:44:13+08:002023-05-15T03:44:13+08:00

    为 Nvidia RTX 2060 Max Q 安装专有驱动程序的正确方法是什么?

    有几种方法,但没有一种是正确的方法。一切都是正确的,只是有些输入较少,有些信息更多,有些驱动程序或多或少不同。一般来说,如果驱动程序的版本号相同,则它们是相同的软件。

    首先禁用安全启动。安全启动阻碍寻址 BIOS。

    安装 nVidia 驱动程序的方法是删除旧安装的所有痕迹。

    sudo apt autoremove nvidia* --purge
    sudo /usr/bin/nvidia-uninstall
    sudo /usr/local/cuda-X.Y/bin/cuda-uninstall
    

    如果通过 apt 安装,第一个会删除所有以前的版本。如果使用运行文件安装,第二个会删除以前安装的所有痕迹。当通过 CUDA 工具包安装时,第三个删除所有痕迹。三选一。

    更新升级:

    sudo apt update
    sudo apt upgrade
    

    然后检查你的卡是什么

    lspci | grep -e VGA
    

    查看nvidia站点以获取对您的卡的支持。

    按优先顺序安装的可能方法。

    使用新工具(目前可能不在很多常见问题解答中,但它目前确实是适用于所有可能情况的最简单方法:桌面、服务器、来自 grub rescue):

    ubuntu-drivers devices
    

    它会列出一堆驱动程序。选择一个合适的。通常最接近的驱动程序(上版本或下版本)是最好的。这将选择系统认为最好的驱动程序:

    sudo ubuntu-drivers autoinstall
    

    这将安装您选择的特定一个:

    sudo apt install nvidia-driver-530
    sudo apt install nvidia-driver-525
    sudo apt install nvidia-headless-525
    

    3个例子。第三个是如果你想无头运行(所以没有显示器)。之后重启。

    选择:

    桌面方法:选择“其他驱动程序”应用程序。选择一个,然后重新启动。

    备选方案 2:

    使用 PPA

     sudo apt install software-properties-common -y
     sudo add-apt-repository ppa:graphics-drivers/ppa -y
    sudo apt update
    

    然后使用ubuntu-drivers devices第一个选项中的命令,它将包括 PPA 中的所有驱动程序。

    备选方案 3:

    CUDA 安装。这不是最友好的安装。

    依赖项:

    sudo apt install dirmngr ca-certificates software-properties-common apt-transport-https dkms curl -y
    

    在CUDA 存储库中找到正确的密钥这确实是 22.04(坚持使用 LTS :)):

    curl -fSsL https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/3bf863cc.pub | sudo gpg --dearmor | sudo tee /usr/share/keyrings/nvidia-drivers.gpg > /dev/null 2>&1
    

    添加回购:

    echo 'deb [signed-by=/usr/share/keyrings/nvidia-drivers.gpg] https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/ /' | sudo tee /etc/apt/sources.list.d/nvidia-drivers.list
    

    更新

    sudo apt update 
    

    这将列出所有添加的驱动程序。

    apt search nvidia-driver-*
    

    使用apt安装(这个也和之前说的一样(1例):

    sudo apt install nvidia-driver-525
    

    问题的第二部分是,我应该吗?我会从安装专有驱动程序中受益,还是保留 nouveau 驱动程序就可以了?

    Sort of. Yes the nVidia drivers are quicker but you will not notice it if all you do is use the desktop, play around the web, watch video (the generic stuff will all do).

    There are some tools where a graphics driver shine with a good driver. Blender but that is not for most of us. Games are but Ubuntu (/Linux) is still not really a gaming operating system. Yes, I play Demon's Souls on my Ubuntu but even the PS3 emulators are not 100%. Steam, Proton and the likes (but no I do not include wine in that though PoL is getting better and better) are very good attempts to gain traction but it will take some time before game content creators use Linux as the start and not Windows.

    I disabled secure boot (UEFI/BIOS) and now the 2nd display gets detected. Afterwards, I only had to recalibrate the colours.

    Why all of this happened?

    驱动程序解决您的硬件问题。安全启动是一种 Windows 工具,它可以锁定您的系统,使其无法寻址硬件,除非它具有被接受的密钥。

    这是Linus的官方立场。

    • 1

相关问题

  • Ubuntu 中的科胜讯调制解调器

  • 如何解决联想笔记本电脑上恢复/电源问题时禁用的蓝牙?

  • 如何为 LG X130 上网本安装 relink 无线驱动程序

  • 类似于 Eyefinity 的东西?

  • 在哪里可以找到 Brother HL-2170W 64 位打印机驱动程序?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve