AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 718787
Accepted
Sam Van den Eynde
Sam Van den Eynde
Asked: 2016-01-09 14:26:28 +0800 CST2016-01-09 14:26:28 +0800 CST 2016-01-09 14:26:28 +0800 CST

在台式机系统上使用带有 1 个显示器的 Intel GPU + NVidia

  • 772

我计划在一台显示器上运行带有 2 个 GPU 的桌面系统:我是否正确地认为 GPU 切换在这种情况下不可用?所以我必须使用英特尔 GPU 启动(但我将能够使用 NVidia 进行 CUDA 内容/渲染或 VGA 传递到 VM)或使用 NVidia GPU(用于 Steam)?

或者 Optimus/Bumblebee 是否也可以在桌面上使用,使用一根电缆驱动显示器,并且卡“自动”地相互感知?

你的设置/经验是什么?

nvidia-optimus
  • 1 1 个回答
  • 478 Views

1 个回答

  • Voted
  1. Best Answer
    Sam Van den Eynde
    2016-12-01T02:17:59+08:002016-12-01T02:17:59+08:00

    我只想通过添加最后发生的事情来结束这个问题。

    我使用附加驱动程序配置选项安装了 nvidia 驱动程序,以确保完成任何可能正在做的巫术。然后我安装了 bumblebee 和 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 游戏中并且运行良好从那以后对我来说。

    • 0

相关问题

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve