如何让Debian Jessie使用nvidia专有驱动程序?

联合编码器

我按照Debian Wiki中的说明通过反向端口在Debian Jessie上安装了nvidia专有的图形驱动程序。不幸的是,尽管我已尽力而为,但X服务器将不会使用新的驱动程序。

内核模块已正确构建和安装:

$ sudo lsmod | grep nvidia
nvidia               8487526  0 
drm                   249955  5 i915,drm_kms_helper,nvidia
i2c_core               46012  12 drm,i915,i2c_i801,snd_soc_rt5640,i2c_hid,i2c_designware_platform,regmap_i2c,drm_kms_helper,i2c_algo_bit,nvidia,v4l2_common,videodev

没有xorg.conf文件,X可以正常工作,但不使用nvidia驱动程序;nvidia-settings报告我“似乎没有使用NVIDIA X驱动程序”。

Xorg.log.0:http://pastebin.com/3Anr3FWU (这是放入的正确方法吗?希望如此)

使用以下xorg.conf:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 340.46  (buildd@brahms)  Tue Oct  7 08:00:32 UTC 2014

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

(其引用的版本低于我从Wiki预期的版本,即352.79与340.46,但可能什么都不是),X服务器根本无法启动(我得到黑屏,并且光标闪烁,但是tty1-6可用) 。如果我剪除“设备”部分以外的所有内容,则会得到相同的结果。

Xorg.log.0:http://pastebin.com/cYLSYiUV

这是一台具有nvidia 940M专用显卡(以及英特尔板载gfx)的MSI笔记本电脑。

$ lspci | egrep -i "vga|nvidia"
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 3D controller: NVIDIA Corporation Device 1347 (rev a2)

所以:我怎样才能启动X并使用nvidia驱动程序?

联合编码器

似乎可以工作!感谢@cas(请参阅问题评论)。我安装了bumblebee(从backports安装,因为按照wiki,我从那安装了nvidia-driver和从属):

$ sudo aptitude install -t jessie-backports bumblebee bumblebee-nvidia

然后重新启动以确保一切正常(您可能甚至不需要重新启动X服务器,但我感到很慈善)。注意:如果您尚未安装nvidia驱动程序,那么我相信这也会带来帮助吗?我还没有测试过。相反,它可能会吸引新手。如果运行时在primusrun glxinfo任何地方都看不到“ nvidia”,则可能是这种情况。在这种情况下,大概您可以按照wiki来安装debian,它应该可以工作(您必须先重新启动,然后才能确定,因为它安装了新的内核模块)。

然后使用glxinfoglxgears测试。

$ glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile 
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.3.2
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.3.2
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 10.3.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.0
OpenGL ES profile extensions:

请注意,运行glxinfo nude使用集成的intel图形(我认为mesa曾经表示软件opengl?我现在不知道这意味着什么。但是很明显,它不使用离散卡)。

$ primusrun glxinfo | grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 940M/PCIe/SSE2
OpenGL core profile version string: 4.4.0 NVIDIA 352.79
OpenGL core profile shading language version string: 4.40 NVIDIA via Cg compiler
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.5.0 NVIDIA 352.79
OpenGL shading language version string: 4.50 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:

成功!

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

使用专有的Nvidia驱动程序进行Debian升级

如何在Debian 9 Stretch上安装Nvidia专有驱动程序-RC3

如何在Debian 8上安装Bumblebee(nvidia专有驱动程序)-找不到软件包

如何从命令行(ssh)重新配置nvidia专有驱动程序?

如何在Fedora 23上安装nvidia专有驱动程序?

如何在Ubuntu 17.10上安装专有的Nvidia驱动程序?

如何在Debian / Ubuntu上使用专有驱动程序设置另一个桌面环境?

如何找到机器组件的专有驱动程序?

如何安装专有的wl Broadcom驱动程序?

如何删除专有的ATI驱动程序?

如何使用恢复模式关闭专有的ATI驱动程序?

如何使用命令行更改专有视频驱动程序?

如何使用专有的ATI驱动程序/ fglrx引导实时系统?

如何确定其他驱动程序安装的专有驱动程序的版本和来源?

如何使用wl.ko专有驱动程序使WPA2连接正常工作?

nVidia驱动程序有问题(如何应用补丁程序)?

如何删除使用 NVIDIA 安装程序安装的驱动程序?

如何使用Nvidia驱动程序克服带有多个GPU的紫屏死机?

Debian Jessie上无法使用的开放源ATI驱动程序

如何为CentOS 7构建Radeon专有驱动程序?

GeForce和Radeon:开源和专有驱动程序的现状如何?

如何强制专有驱动程序在启动时加载?

安装了专有图形驱动程序后如何更改登录屏幕分辨率?

如何处理专有旧版驱动程序中的错误?

如何安装AMD Catalyst 15.9专有Ubuntu图形驱动程序

Ubuntu 16.04“ Nvidia GPU驱动程序”不能使用专有驱动程序

如何使用Nvidia驱动程序消除视频中的撕裂?

如何在nvidia驱动程序中使用opengl?

使用 nvidia 驱动程序启动后如何修复黑屏?