我有一台带有混合显卡的笔记本电脑,但我的 nvidia 卡无法与专有驱动程序一起工作。
已安装的 nvidia 驱动程序:
sudo dpkg -l | grep nvidia
ii nvidia-361 367.57-0ubuntu3 amd64 Transitional package for nvidia-367
ii nvidia-367 367.57-0ubuntu3 amd64 NVIDIA binary driver - version 367.57
ii nvidia-opencl-icd-367 367.57-0ubuntu3 amd64 NVIDIA OpenCL ICD
ii nvidia-prime 0.8.4 amd64 Tools to enable NVIDIA's Prime
ii nvidia-settings 367.35-0ubuntu1 amd64 Tool for configuring the NVIDIA graphics driver
Xorg 错误:
cat /var/log/Xorg.0.log | grep EE
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 5.771] (EE) Failed to load module "nvidia" (module does not exist, 0)
[ 5.775] (EE) Failed to load module "nvidia" (module does not exist, 0)
[ 5.796] (EE) [drm] Failed to open DRM device for (null): -22
lspci 输出:
01:00.0 3D controller [0302]: NVIDIA Corporation GM107M [GeForce GTX 960M] [10de:139b] (rev a2)
Subsystem: Gigabyte Technology Co., Ltd GM107M [GeForce GTX 960M] [1458:b456]
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at de000000 (32-bit, non-prefetchable) [size=16M]
Memory at c0000000 (64-bit, prefetchable) [size=256M]
Memory at d0000000 (64-bit, prefetchable) [size=32M]
I/O ports at e000 [size=128]
Expansion ROM at df000000 [disabled] [size=512K]
Capabilities: <access denied>
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_367, nvidia_367_drm
/etc/modprobe.d/blacklist.conf:
[...]
blacklist nouveau
blacklist lbm-nouveau
alias nouveau off
alias lbm-nouveau off
alias nvidia nvidia_367
我还注意到我在启动时遇到了 nvidia-persistenced 问题:
[FAILED] Failed to start NVIDIA Persistence Daemon.
See 'systemctl status nvidia-persistenced.service' for details.
systemctl status nvidia-persistenced 没有给我更多信息,但我注意到在 journalctl -xl 中我在某些时候得到了以下行:
nvidia-persistenced.service: Failed at step EXEC spawning /usr/bin/nvidia-persistenced: No such file or directory
哦,另外,我猜 lsmod 的输出在这里可能有用:
lsmod | grep nvidia
nvidia_drm 16384 0
nvidia_modeset 765952 1 nvidia_drm
nvidia 11489280 1 nvidia_modeset
drm 368640 12 i915,nvidia_drm,drm_kms_helper
我正在运行 ubuntu 16.10
Linux cerberus 4.8.0-28-generic #30-Ubuntu SMP Fri Nov 11 14:03:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
我在 16.04 上遇到了同样的问题。使用默认安装,我的机器无法工作。我每次运行 lspci 命令时都会遇到 CPU 软锁定。为了解决 CPU 冻结问题,我不得不安装 nvidia 的专有驱动程序和 blacklist nouveau。(尽管最终没有加载专有驱动程序)。
我真的不知道这里的问题是什么……我真的希望你能帮助我,事实上,我拥有这台机器已经快一年了,并多次尝试解决这个问题,但没有成功……但没有时间深入研究这个问题。我真的需要做一些 cuda 编程,所以事情开始变得紧急,因此写了这篇文章 =)
期待您的答复!
答案1
你试过 Bumblebee 吗?英伟达要花很长时间才能在 Linux 平台上发布支持 Optimus 的驱动程序。在等待期间,建议使用熊蜂。