从 RPM 安装后,如何在 Fedora 35 上选择专有的 nvidia 驱动程序?

从 RPM 安装后,如何在 Fedora 35 上选择专有的 nvidia 驱动程序?

使用 Ubuntu 一段时间后,我正在尝试 Fedora。全新安装 Ubuntu 后,我将使用名为“附加驱动程序”的 GUI 应用程序选择 nvidia 驱动程序。我这样做是因为我的显示器支持 144 Hz 刷新率,这通常仅在我使用专有驱动程序时才有效。在 Fedora 上,开箱即用的安装不适合我。

对于 Fedora,我注意到没有附加驱动程序应用程序,并且我无法找到已安装的类似应用程序。我找到了我遵循的这个教程(https://www.linuxcapable.com/how-to-install-the-latest-nvidia-graphic-drivers-on-fedora-35-gnome-41/su)除了您运行以更改为 root 用户的部分。这对我不起作用,因为我没有 root 密码。 Fedora 安装过程从未提示我进行设置。我认为使用 sudo 从我的用户那里运行教程中的命令会很好。所以我最终运行了以下命令:

sudo dnf upgrade --refresh -y
sudo dnf install dnf-plugins-core -y
sudo dnf install \
  https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install \
  https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf update --refresh
sudo dnf install akmod-nvidia
sudo dnf install xorg-x11-drv-nvidia-cuda

然后我重新启动了系统,当我启动时,我运行了nvidia-smi,如教程所述,检查安装进行得如何。我没有在教程中获取显示有关驱动程序的信息的输出,而是得到:

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

所以看来我现在所处的位置是我现在需要选择驱动程序,因为我已经安装了它。我该怎么做呢?

有关我的系统的数据:

$ lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: Fedora
Description:    Fedora release 35 (Thirty Five)
Release:    35
Codename:   ThirtyFive

卡:3070 Ti

相关内容