我在 i386 系统上使用带有 NVidia GT630 显卡的 Debian 10 (Buster)。
apt install nvidia-driver
安装 nvidia-legacy-390xx 驱动程序。不幸的是,内核模块没有加载(/var/log/Xorg.log 的输出):
[ 100.857] (II) LoadModule: "nvidia"
[ 100.858] (WW) Warning, couldn't open module nvidia
[ 100.858] (EE) Failed to load module "nvidia" (module does not exist, 0)
[ 100.858] (EE) No drivers available.
/lib/modules/4.19.0-12-686-pae/updates/dkms
包含三个 nvidia-legacy-390xx*.ko 文件。
dkms status
声称已安装 nvidia 模块。
modprobe nvidia
想要加载失败的 nvidia-current(见下面的日志)。不确定这是否不应该阅读 nvidia-legacy?
任何帮助将非常感激。
htpc:~# systemctl status nvidia-persistenced.service
● nvidia-persistenced.service - NVIDIA Persistence Daemon
Loaded: loaded (/lib/systemd/system/nvidia-persistenced.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2020-11-25 12:42:40 CET; 33s ago
Nov 25 12:42:40 htpc systemd[1]: Starting NVIDIA Persistence Daemon...
Nov 25 12:42:40 htpc nvidia-persistenced[7376]: nvidia-persistenced failed to initialize. Check syslog for more details.
Nov 25 12:42:40 htpc systemd[1]: nvidia-persistenced.service: Control process exited, code=exited, status=1/FAILURE
Nov 25 12:42:40 htpc systemd[1]: nvidia-persistenced.service: Failed with result 'exit-code'.
Nov 25 12:42:40 htpc systemd[1]: Failed to start NVIDIA Persistence Daemon.
htpc:~# modprobe nvidia
modprobe: FATAL: Module nvidia-current not found in directory /lib/modules/4.19.0-12-686-pae
modprobe: ERROR: ../libkmod/libkmod-module.c:979 command_do() Error running install command for nvidia
modprobe: ERROR: could not insert 'nvidia': Operation not permitted
htpc:~# dkms status
nvidia-legacy-390xx, 390.138, 4.19.0-12-686-pae, i686: installed
htpc:~# dkms install nvidia-legacy-390xx/390.138 -k $(uname -r)
Module nvidia-legacy-390xx/390.138 already installed on kernel 4.19.0-12-686-pae/i686
关于 nvidia-persistenced 的 syslog 输出
Nov 25 12:42:40 htpc nvidia-persistenced: Started (7377)
Nov 25 12:42:40 htpc nvidia-persistenced: Failed to open libnvidia-cfg.so.1: libnvidia-cfg.so.1: cannot open shared object file: No such file or directory
Nov 25 12:42:40 htpc nvidia-persistenced: Shutdown (7377)
指向 libnvidia-cfg.so.390.138 的 libnvidia-cfg.so.1 符号链接存在于/usr/lib/i386-linux-gnu/nvidia/legacy-390xx
. 没有这样的符号链接和文件/usr/lib/i386-linux-gnu/nvidia/current
。
我能够解决这个问题:无论出于何种原因
apt install nvidia-driver
,安装了 Nvidia 390.132 和 418.152 驱动程序的狂野混合物(可能与 418.152 所需的 nvidia-kernel-dkms 仅适用于 amd64 而不是 i386 的事实有关)。跑步
apt purge *nvidia* && apt install nvidia-legacy-390xx-driver
带回了我的 X 系统。