ale*_*ter 5 nvidia graphics drivers
我的笔记本电脑配备 AMD CPU 和 Nvidia GPU,并使用 Ubuntu。这个配置给我带来了很多麻烦,因为AMD对Linux的支持显然不能很好地工作。但最近出现了一个新问题,步骤如下:
这就是我现在所在的地方。当我运行时,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.
Run Code Online (Sandbox Code Playgroud)
但是,当我打开“软件和更新”内的“其他驱动程序”面板时,我会将此显示为活动驱动程序:
o Using NVIDIA driver metapackage from nvidia-driver-535 (proprietary, tested)
Run Code Online (Sandbox Code Playgroud)
我也可以运行lspci | grep VGA这个输出:
01:00.0 VGA compatible controller: NVIDIA Corporation GA104 [Geforce RTX 3070 Ti Laptop GPU] (rev a1)
09:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] (rev c7)
Run Code Online (Sandbox Code Playgroud)
最后,我可以运行sudo apt search nvidia-driver-535此输出:
...
nvidia-driver-535/lunar-updates,lunar-security,lunar,now 535.54.03-0ubuntu0.23.04.2 amd64 [installed]
NVIDIA driver metapackage
...
xserver-xorg-video-nvidia-535/lunar-updates,lunar-security,lunar,now 535.54.03-0ubuntu0.23.04.2 amd64 [installed,automatic]
NVIDIA binary Xorg driver
...
Run Code Online (Sandbox Code Playgroud)
是的,我刚刚删除了(即sudo apt purge nvidia*)从 PC 上删除了驱动程序并重新安装了它。仍然存在同样的问题。而且我还通过编辑文件强制 gdm3 使用 X11 /etc/gdm3/custom.conf。因为它不适用于 Wayland。
我调试 Linux 内部的技能相当有限,但我确实从运行中得到了一些消息sudo journalctl -S -1h:
modprobe: FATAL: Module nvidia not found in directory /lib/modules/6.2.0-25-generic
[...]
systemd[1860]: Started app-gnome-nvidia\x2dsettings-7946.scope - Application launched by gnome-shell.
nvidia-settings.desktop[7946]: ERROR: NVIDIA driver is not loaded
nvidia-settings[7946]: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
nvidia-settings[7946]: ctk_powermode_new: assertion '(ctrl_target != NULL) && (ctrl_target->h != NULL)' failed
nvidia-settings.desktop[7946]: ERROR: nvidia-settings could not find the registry key file or the X server is not accessible. This file should have been installed along with this driver at /usr/share/nvidia/nvidia-application-profiles-key-documentation. The application profiles will continue to work, but values cannot be prepopulated or validated, and will not be listed in the help text. Please see the README for possible values and descriptions.
nvidia-settings[7946]: PRIME: No offloading required. Abort
nvidia-settings[7946]: PRIME: is it supported? no
Run Code Online (Sandbox Code Playgroud)
PC可以读取GPU。NVIDIA 驱动程序已正确安装。但不知何故,在重新启动时,驱动程序会随机被禁用。或者其他的东西。
怎么了?我完全不知道如何解决这个问题。
快速重新启动后,它似乎现在可以工作了 - 但我将保留这个问题,以防其他人遇到同样的问题,或者它以某种方式再次出现。“修复”是在启动时打开 BIOS,并禁用安全启动。不知道为什么 - 在某处看到它建议 - 现在nvidia-smi按预期运行。
由于某种奇怪的原因,我不得不:
sudo apt-get install nvidia-dkms-535
Run Code Online (Sandbox Code Playgroud)
我认为这是之前作为nvidia-driver-535...的依赖项安装的,因为它在我执行apt-get upgrade并重新启动之前确实有效。
不管怎样,驱动程序现在显示在我的/lib/modules/文件夹中所有已安装的内核版本。
| 归档时间: |
|
| 查看次数: |
5164 次 |
| 最近记录: |