我正在计划在一个显示器上运行带有2个GPU的桌面系统:我是否纠正了这种情况下GPU切换不可用的问题?因此,我将不得不使用Intel GPU(但我将能够使用NVidia进行CUDA填充/渲染或将VGA传递至VM)或使用NVidia GPU(用于Steam)引导?
还是在台式机上还可以使用Optimus / Bumblebee,用一根电缆驱动显示卡,使卡“自动地”彼此识别?
您的设置/经验是什么?
我只想通过添加最后发生的事情来结束这个问题。
我使用其他驱动程序配置选项安装了nvidia驱动程序,以确保完成可能正在执行的任何巫毒操作。然后我安装了大黄蜂和nvidia-prime。我最初在16.04上使用nvidia-361,但目前在16.10上使用nvidia-367。
需要在/ etc / bumblebee中手动修改配置文件。我为nvidia驱动程序使用了以下内容:
在bumblebee.conf中:
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia-367
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-367:/usr/lib32/nvidia-367
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-367/xorg,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia
xorg.conf.nvidia文件:
xorg.conf.nvidia
Section "ServerLayout"
Identifier "Layout0"
Option "AutoAddDevices" "false"
Option "AutoAddGPU" "false"
EndSection
Section "Device"
Identifier "DiscreteNvidia"
Driver "nvidia"
VendorName "NVIDIA Corporation"
# If the X server does not automatically detect your VGA device,
# you can manually set it here.
# To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
# as you see in the commented example.
# This Setting may be needed in some platforms with more than one
# nvidia card, which may confuse the proprietary driver (e.g.,
# trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
BusID "PCI:01:00:0"
# Setting ProbeAllGpus to false prevents the new proprietary driver
# instance spawned to try to control the integrated graphics card,
# which is already being managed outside bumblebee.
# This option doesn't hurt and it is required on platforms running
# more than one nvidia graphics card with the proprietary driver.
# (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
# If this option is not set, the new Xorg may blacken the screen and
# render it unusable (unless you have some way to run killall Xorg).
Option "ProbeAllGpus" "false"
Option "NoLogo" "true"
Option "UseEDID" "false"
Option "UseDisplayDevice" "none"
EndSection
您需要确保驱动程序版本与您的驱动程序版本匹配,并且BusID也很重要。
基本上,这使我可以使用nvidia设置应用程序切换GPU(需要注销并重新登录),或者使用“ optirun -b primus”在特定GPU上启动应用程序,我在启动设置中将其添加到Steam游戏中,并且运行良好从那以后对我来说。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句