nvidia optimus,ubuntu 12.04,未检测到设备

nvidia optimus,ubuntu 12.04,未检测到设备

我有一台 Dell XPS。我按照本教程让 NVidia 正常工作:https://wiki.ubuntu.com/HardwareSupport/Machines/Laptops/Dell/XPS/15z

我尝试运行 glxspheres 但失败并显示以下消息:

optirun -vv -debug glxspheres
[   29.736785] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[   29.737854] [DEBUG]optirun version 3.2.1 starting...
[   29.737895] [DEBUG]Active configuration:
[   29.737906] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[   29.737916] [DEBUG] X display: ebug
[   29.737925] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-304:/usr/lib32/nvidia-304
[   29.737935] [DEBUG] Socket path: /var/run/bumblebee.socket
[   29.737944] [DEBUG] Accel/display bridge: auto
[   29.737953] [DEBUG] VGL Compression: proxy
[   29.737962] [DEBUG] VGLrun extra options: 
[   29.737972] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[   29.738223] [DEBUG]Using auto-detected bridge virtualgl
[   30.336829] [INFO]Response: No - error: [XORG] (EE) No devices detected.

[   30.336882] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) No devices detected.

[   30.336902] [DEBUG]Socket closed.
[   30.336945] [ERROR]Aborting because fallback start is disabled.
[   30.336964] [DEBUG]Killing all remaining processes.

答案1

关于大黄蜂,我建议你重新安装它,在规则中写入https://wiki.ubuntu.com/Bumblebee

答案2

我在使用 Pavilion 时也遇到了同样的问题,我通过手动设置 BusID 解决了这个问题(如https://wiki.ubuntu.com/Bumblebee)。

这些是您需要遵循的步骤:

  1. 使用以下方法查找正确的 BusID lspci | egrep 'VGA|3D'(示例输出):

    $ lspci | egrep 'VGA|3D'
    00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
    01:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M / GT 620M/625M/630M/720M] (rev ff)
    

    如你所见,这里正确的 BusID 是01:00.0

  2. 将正确的 BusID 添加到/etc/bumblebee/xorg.nvidia。您可能会发现已经有一行注释,只需取消注释并用正确的 BusID 替换即可。

    $ cat /etc/bumblebee/xorg.nvidia
    ...
    BusID "PCI:01:00:0"
    ...
    

    笔记:您需要将最后一个冒号替换为点,否则它将不起作用!

  3. 重启大黄蜂

    $ sudo service bumblebeed restart
    

重新启动 Bumblebee 就足够了。如果出现同样的错误,请重新启动您的机器,然后您就可以开始了。

相关内容