无法在 Xenial 上安装 NVIDIA GPU 驱动程序

无法在 Xenial 上安装 NVIDIA GPU 驱动程序

我有一台华硕 K55VM,我一直试图在我的笔记本电脑上安装 NVDIA GPU 驱动程序,但不确定我做错了什么。

这些是我已经安装的软件包:

$:/usr/sbin# dpkg --get-selections | grep -v deinstall | grep bumb
bumblebee                       install
bumblebee-nvidia                install
$:/usr/sbin# dpkg --get-selections | grep -v deinstall | grep nvidia
bumblebee-nvidia                install
nvidia-304                      install
nvidia-current                  install
nvidia-opencl-icd-304           install
nvidia-settings                 install

这是我的显卡配置:

$ inxi -G
Graphics:  Card-1: Intel 3rd Gen Core processor Graphics Controller
           Card-2: NVIDIA GF108M [GeForce GT 630M]
           Display Server: X.org 1.18.3 drivers: vesa,intel (unloaded: fbdev)
           tty size: 168x43 Advanced Data: N/A for root

这是输出optirun

$:/usr/sbin# optirun -vvv glxgears
[ 4340.857497] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 4340.857876] [INFO]Configured driver: nvidia
[ 4340.858090] [DEBUG]optirun version 3.2.1 starting...
[ 4340.858118] [DEBUG]Active configuration:
[ 4340.858123] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 4340.858129] [DEBUG] X display: :8
[ 4340.858133] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-current:/usr/lib32/nvidia-current
[ 4340.858139] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 4340.858143] [DEBUG] Accel/display bridge: auto
[ 4340.858148] [DEBUG] VGL Compression: proxy
[ 4340.858168] [DEBUG] VGLrun extra options: 
[ 4340.858183] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[ 4340.858255] [DEBUG]Using auto-detected bridge primus
[ 4340.864799] [INFO]Response: No - error: [XORG] (EE) 

[ 4340.864836] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) 

[ 4340.864855] [DEBUG]Socket closed.
[ 4340.864896] [ERROR]Aborting because fallback start is disabled.
[ 4340.864908] [DEBUG]Killing all remaining processes.

以下是相关的bumblebee配置设置:

...
Driver=nvidia
...
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia_304
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-current:/usr/lib32/nvidia-current
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-current/xorg,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nvidia-current
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

答案1

您安装了错误的驱动程序。请删除旧版驱动程序并按以下方式安装正确的驱动程序:

sudo apt purge 'nvidia.*'
sudo apt install nvidia-361 nvidia-prime

重启。

相关内容