我按照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,它应该可以工作(您必须先重新启动,然后才能确定,因为它安装了新的内核模块)。
然后使用glxinfo
和glxgears
测试。
$ 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] 删除。
我来说两句