ThinkPad Yoga 14:Nvidia 驱动程序(来自 ppa)不起作用

ThinkPad Yoga 14:Nvidia 驱动程序(来自 ppa)不起作用

它曾经在以前的内核版本下工作,但现在 nvidia-smi 根本拒绝看到该卡:

akhavr@yoga14 ~ $ LD_LIBRARY_PATH=/usr/lib/nvidia-367 /usr/lib/nvidia-367/bin/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.

卡在那里并且模块将其拾取:

akhavr@yoga14 ~ $ sudo lspci -k | tail -4
04:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 840M] (rev a2)
    Subsystem: Lenovo GM108M [GeForce 840M]
    Kernel driver in use: nvidia
    Kernel modules: nvidiafb, nouveau, nvidia_367, nvidia_367_drm

这是来自 ubuntu 16.04 LTS 的最新内核:

akhavr@yoga14 ~ $ uname -a
Linux yoga14 4.4.0-36-generic #55-Ubuntu SMP Thu Aug 11 18:01:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

我正在使用ppa:graphics-drivers/ppa并尝试不同的模块版本,但没有一个对我有用。我会尝试删除这个 ppa 并安装通常的 repos 附带的版本,但我也不指望它能工作(我从这样的配置开始)

感觉我忽略了一些明显的东西,希望得到建议。

更新。从 www.nvidia.com 安装 vanilla 驱动程序失败,因为它的设计注定会失败:其预安装脚本包含以下内容:

#!/bin/sh

# Trigger an error exit status to prevent the installer from overwriting
# Ubuntu's nvidia packages.

exit 1

Upd2. 强制继续进行 vanilla 安装,但无法加载新nvidia-drm模块:

-> Searching for conflicting files:
-> done.
-> Installing 'NVIDIA Accelerated Graphics Driver for Linux-x86_64' (367.44):
executing: '/sbin/ldconfig'...
-> done.
-> Driver file installation is complete.
-> Installing DKMS kernel module:
-> done.
ERROR: Unable to load the 'nvidia-drm' kernel module.

Upd3。Vanilla nvidia 驱动程序导致无限登录循环。返回 ppa 版本。

Upd4. 删除所有 nvidia 模块的痕迹并从 ppa 重新安装后,nvidia-smi 突然看到了该卡:

akhavr@yoga14 ~ $ /usr/lib/nvidia-367/bin/nvidia-smi 
Tue Sep  6 22:56:16 2016       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 367.44                 Driver Version: 367.44                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce 840M        Off  | 0000:04:00.0     Off |                  N/A |
| N/A   49C    P8    N/A /  N/A |    389MiB /  2002MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|    0      3262    G   /usr/lib/xorg/Xorg                             165MiB |
|    0      4549    G   compiz                                          35MiB |
|    0      4918    G   ...ves-passed-by-fd --v8-snapshot-passed-by-    71MiB |
|    0      5799    G   java                                           115MiB |
|    0      6021    G   unity-control-center                             1MiB |
+-----------------------------------------------------------------------------+

不幸的是,它被 Xorg 选为主屏幕而不是内置英特尔卡,但我将留到另一天再讨论这个问题。

Upd5。切换到英特尔卡让我登录循环。真扫兴 :(

答案1

您是否尝试过使用 Nvidia.com 上发布的驱动程序?

http://us.download.nvidia.com/XFree86/Linux-x86_64/367.44/NVIDIA-Linux-x86_64-367.44.run

希望能帮助到你

相关内容