Optirun 在装有 nvidia geforce 940MX 的 Ubuntu 17.10 上失败

Optirun 在装有 nvidia geforce 940MX 的 Ubuntu 17.10 上失败

我有一台配备专用 nVidia Geforce 940MX GPU 的笔记本电脑。我按照https://wiki.ubuntu.com/Bumblebee但每当我想运行optirun glxgears它就会失败并显示消息

[  663.222353] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[  663.222380] [ERROR]Aborting because fallback start is disabled.

我尝试按照说明/etc/bumblebee/xorg.conf.nvidia输入正确的 BusID,但给出lspci | egrep 'VGA|3D'的输出 00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02) 01:00.0 3D controller: NVIDIA Corporation Device 179c (rev a2) 与 xorg.conf.nvidia 文件中指定的 BusID 相同。我不知道如何解决这个问题。在 manjaro linux 中,它可以与专有驱动程序完美配合,但在 Ubuntu 中似乎不起作用。

如果有人感兴趣的话,这是我的 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

相关内容