如何在基于 Debian 的发行版上正确安装 GK107M GeForce GT 750M 卡(与独立 Intel 结合)的驱动程序?

如何在基于 Debian 的发行版上正确安装 GK107M GeForce GT 750M 卡(与独立 Intel 结合)的驱动程序?

每当我在笔记本电脑上启用 Nvidia 驱动器 (Nvidia-331) 时,重新启动并登录后屏幕就会变黑。然后我尝试运行purge nvidia-*并恢复到英特尔,但屏幕仍然是黑色的,所以我最终重新安装了操作系统。

我尝试使用 Mint 附加驱动程序 GUI 启用 nvidia 驱动程序,并且我还尝试使用ppa:xorg-edgers/ppa.我也已添加nomodeset到我的 grub 文件中。一切都会导致黑屏。

90% 的时间我都将笔记本电脑插入插座,因此我不关心电源效率和开关,我只想要 Nvidia 工作。

一些可能有用的信息:

$ lspci -vnn | grep -i vga
00:02.0 VGA compatible controller [0300]: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller [8086:0416] (rev 06) (prog-if 00 [VGA controller])


$ lshw -C video
  *-display               
       description: 3D controller
       product: GK107M [GeForce GT 750M]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: bus_master cap_list rom
       configuration: driver=nouveau latency=0
       resources: irq:45 memory:f6000000-f6ffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:f7000000-f707ffff
  *-display
       description: VGA compatible controller
       product: 4th Gen Core Processor Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 06
       width: 64 bits
       clock: 33MHz
       capabilities: vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:46 memory:f7400000-f77fffff memory:d0000000-dfffffff ioport:f000(size=64)

$ grep -i chipset /var/log/Xorg.0.log 
[     6.085] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
[     6.086] (II) NOUVEAU driver for NVIDIA chipset families :
[     6.086] (II) VESA: driver for VESA chipsets: vesa
[     6.095] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 4600
[     6.095] (--) NOUVEAU(G0): Chipset: "NVIDIA NVE7"

$ dpkg -l | grep nvidia
$ uname -a
Linux gulch 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/X11/xorg.conf
cat: /etc/X11/xorg.conf: No such file or directory

由于这是全新安装,因此日志文件中没有错误。我会再试一次并发布我从手机中发现的任何错误。

好的,有一些进展。我没有意识到sudo update-grub添加nomodeset到 grub 文件后必须运行。现在我可以登录,但 Cinnamon 立即崩溃。我已经运行了以下命令:

sudo apt-get update
sudo apt-get upgrade
sudo update-initramfs -u

但 Cinnamon 仍然崩溃。

$ cat /var/log/Xorg.0.log | grep nvidia -i
[     4.664] (II) Module glx: vendor="NVIDIA Corporation"
[     4.664] (II) NVIDIA GLX Module  331.113  Mon Dec  1 20:24:35 PST 2014
[     4.665] (==) Matched nvidia as autoconfigured driver 0
[     4.665] (II) LoadModule: "nvidia"
[     4.665] (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so
[     4.672] (II) Module nvidia: vendor="NVIDIA Corporation"
[     4.680] (II) NVIDIA dlloader X Driver  331.113  Mon Dec  1 20:01:51 PST 2014
[     4.680] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[     4.680] (II) NOUVEAU driver for NVIDIA chipset families :
[     4.746] (II) UnloadModule: "nvidia"
[     4.746] (II) Unloading nvidia
[     4.833] (EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)

为什么提到新派呢?应该将其列入黑名单。

$ cat /etc/modprobe.d/nvidia-graphics-drivers.conf 
# This file was installed by nvidia-331
# Do not edit this file manually

blacklist nouveau
blacklist lbm-nouveau
blacklist nvidia-173
blacklist nvidia-96
blacklist nvidia-current-updates
blacklist nvidia-173-updates
blacklist nvidia-96-updates
blacklist nvidia-331-updates
alias nvidia nvidia_331
alias nvidia-uvm nvidia_331-uvm
alias nouveau off
alias lbm-nouveau off

我想我正在缩小问题范围。

$ cat /var/log/Xorg.0.log | grep EE
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     4.579] Initializing built-in extension MIT-SCREEN-SAVER
[     4.684] (EE) [drm] KMS not enabled
[     4.684] (EE) [drm] KMS not enabled
[     4.686] (EE) open /dev/fb0: No such file or directory
[     4.686] (EE) open /dev/fb0: No such file or directory
[     4.686] (EE) Screen 0 deleted because of no matching config section.
[     4.686] (EE) Screen 0 deleted because of no matching config section.
[     4.833] (EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)


$ glxinfo 
name of display: :0
Xlib:  extension "GLX" missing on display ":0".
Xlib:  extension "GLX" missing on display ":0".
Xlib:  extension "GLX" missing on display ":0".
Xlib:  extension "GLX" missing on display ":0".
Xlib:  extension "GLX" missing on display ":0".
Error: couldn't find RGB GLX visual or fbconfig
Xlib:  extension "GLX" missing on display ":0".
Xlib:  extension "GLX" missing on display ":0".
Xlib:  extension "GLX" missing on display ":0".
Xlib:  extension "GLX" missing on display ":0".
Error: couldn't find RGB GLX visual or fbconfig

Xlib:  extension "GLX" missing on display ":0".
Xlib:  extension "GLX" missing on display ":0".
Xlib:  extension "GLX" missing on display ":0".
Xlib:  extension "GLX" missing on display ":0".
Xlib:  extension "GLX" missing on display ":0".


$ cat /etc/X11/xorg.conf.04052015 
Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0@0:2:0"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1@0:0:0"
    Option "ConstrainCursor" "off"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" "CRT"
EndSection

那么Screen0没有配置,但是在xorg.conf中提到了?我走在正确的轨道上吗?

$ inxi -G
Graphics:  Card: Intel 4th Gen Core Processor Integrated Graphics Controller 
           X.Org: 1.15.1 drivers: fbdev,vesa,intel,nouveau (unloaded: nvidia) Resolution: [email protected] 
           GLX Renderer: N/A GLX Version: N/A

为什么应该将 nouveau 列入黑名单却说正在使用它?我很困惑,非常感谢这里的一些指导。

因此,我将 nvidia-331 创建的 /etc/X11/xorg.conf.04052015 文件复制到 xorg.conf 中,因为没有现有的 xorg.conf 文件。重启后,什么也没有出现,只是黑屏。

我只有一台显示器,但过去曾有一台额外的显示器插入这台笔记本电脑(通过 VGA 端口)。

$ dpkg -l | grep nvidia现在给出

ii  nvidia-331                                  331.113-0ubuntu0.0.4                                amd64        NVIDIA binary driver - version 331.113
ii  nvidia-331-uvm                              331.113-0ubuntu0.0.4                                amd64        NVIDIA Unified Memory kernel module
ii  nvidia-libopencl1-331                       331.113-0ubuntu0.0.4                                amd64        NVIDIA OpenCL Driver and ICD Loader library
ii  nvidia-opencl-icd-331                       331.113-0ubuntu0.0.4                                amd64        NVIDIA OpenCL ICD
ii  nvidia-prime                                0.6.2linuxmint1                                     amd64        Tools to enable NVIDIA's Prime
ii  nvidia-settings                             331.20-0ubuntu8                                     amd64        Tool for configuring the NVIDIA graphics driver

另外,这里还有$ lsmod | grep nvidia

nvidia              10744943  0 
drm                   303102  3 i915,drm_kms_helper,nvidia

我现在正在寻找所需的 glx 扩展。

$ dpkg -S nvidia.ko
dpkg-query: no path found matching pattern *nvidia.ko*

$ dpkg -S nvidia.
nvidia-331: /usr/lib32/nvidia-331/vdpau/libvdpau_nvidia.so.331.113
nvidia-331: /usr/lib/nvidia-331/vdpau/libvdpau_nvidia.so
nvidia-331: /usr/lib/nvidia-331/vdpau/libvdpau_nvidia.so.1
nvidia-opencl-icd-331: /etc/OpenCL/vendors/nvidia.icd
linux-headers-3.13.0-37-generic: /usr/src/linux-headers-3.13.0-37-generic/include/config/fb/nvidia.h
nvidia-331: /usr/lib32/nvidia-331/vdpau/libvdpau_nvidia.so
nvidia-331: /usr/lib/nvidia-331/vdpau/libvdpau_nvidia.so.331.113
nvidia-331: /usr/lib32/nvidia-331/vdpau/libvdpau_nvidia.so.1
nvidia-prime: /usr/share/lightdm/lightdm.conf.d/90-nvidia.conf
libdirectfb-1.2-9:amd64: /usr/lib/x86_64-linux-gnu/directfb-1.2-9/gfxdrivers/libdirectfb_nvidia.so
mintdrivers: /usr/share/linuxmint/mintDrivers/icons/nvidia.png
linux-headers-3.13.0-37-generic: /usr/src/linux-headers-3.13.0-37-generic/include/config/net/vendor/nvidia.h

我想我已经有 libglx 了?

 $ dpkg -S libglx
nvidia-331: /usr/lib/nvidia-331/xorg/libglx.so
xserver-xorg-core: /usr/lib/xorg/modules/extensions/libglx.so
vlc: /usr/lib/vlc/plugins/video_output/libglx_plugin.so
nvidia-331: /usr/lib/nvidia-331/xorg/libglx.so.331.113

另外,我仍然没有 xorg.conf,我应该使用nvidia-xconfig它还是有更好的方法?

$ dpkg -S nvidia 

输出:http://pastebin.com/XGt9BXmS

$ ls /lib/modules/3.13.0-37-generic/kernel/drivers/video/nvidia
nvidiafb.ko

编辑 7:我忘了提及,每次重新安装 Mint 时,我都会保留 /home 目录。不确定其中是否有任何文件可能会造成混乱?

答案1

根据英伟达网站,您的显卡 GK107M [GeForce GT 750M] 需要版本 352 的专有驱动程序。

目前,该驱动程序仅在 Debian 实验版中可用。我在 jessie 上构建了软件包,但无法解析要安装的依赖项。

获得图形的最佳选择是按照 Debian Bumblebee 官方页面上的说明进行操作,并安装软件包bumblebee不是大黄蜂-nvidia。

相关内容