无法识别第二个 GPU

无法识别第二个 GPU

我只是坚持使用另一个 GPU 来运行两个屏幕。

$ lspci | grep VGA
02:00.0 VGA compatible controller: NVIDIA Corporation G86 [GeForce 8500 GT] (rev a1)
03:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2)

但运行 xrandr 我只看到第一个:

$ xrandr
Screen 0: minimum 8 x 8, current 1920 x 1200, maximum 8192 x 8192
DVI-I-0 disconnected (normal left inverted right x axis y axis)
VGA-0 disconnected (normal left inverted right x axis y axis)
TV-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
   1920x1200      60.0*+
   1680x1050      60.0  
   1600x1200      60.0  
   1440x900       75.0     59.9  
   1280x1024      75.0     60.0  
   1280x800       74.9     59.8  
   1024x768       75.0     60.0  
   800x600        75.0     60.3  
   640x480        75.0     59.9  

运行 gksudo nvidia-settings 时我只看到一个 GPU。

我在 nvidia 驱动程序中发现了一些关于启用两个 GPU 的信息,因此我尝试了这个:

$ sudo nvidia-xconfig -a

Using X configuration file: "/etc/X11/xorg.conf".
NVIDIA: could not open the device file /dev/nvidia1 (Input/output error).

WARNING: Unable to use the nvidia-cfg library to query NVIDIA hardware.


ERROR: Unable to determine number of GPUs in system; cannot honor '--enable-all-gpus' option.

Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup'
New X configuration file written to '/etc/X11/xorg.conf'

非常感谢您的帮助!

答案1

您应该使用修改后的 xorg.conf,在其中将两个 GPU 插入为“设备部分”,然后通过“监视器部分”和“屏幕部分”将显示器绑定到不同的 GPU。有关更多信息,我推荐这篇文章(https://wiki.archlinux.org/index.php/xorg_multiseat) 也适用于 Ubuntu,您只需更改“输入”部分,这样您就不会获得“真正的”多席位。我会使用类似以下内容来代替提供的“ServerFlags”部分:

“服务器布局”部分

    Identifier      "MainDisplay"
    Screen          "screen0"       0                   0 for your first display, depending on how you named the section
    Screen          "screen1"       0                   1 #for your second display, depending on how you named the section
    InputDevice     "mouse0"        "CorePointer" #change it to your mouse identifier
    InputDevice     "keyboard0"     "CoreKeyboard" #change it to your keyboard identifier
    Option "Clone" "off"        

结束部分

您应该编辑自动生成的 xorg.conf,而不是创建新的 xorg.conf。

相关内容