双 GPU xorg.conf 忽略一个 GPU 上的 XScreen 并使用 xrandr

双 GPU xorg.conf 忽略一个 GPU 上的 XScreen 并使用 xrandr

双 GPU X11 使用 xorg 来分离工作负载和屏幕。 2 个 GPU 3 个屏幕/监视器。基本上

GPU 0 => XScreen 0.0 => 监视器 0(左)

GPU 1 => XScreen 0.1 => 监视器 1(中心)

GPU 0 => XScreen 0.2 => 监视器 2(右)

当我设置此系统时,系统仅承认 2 个 XScreen(每个 GPU 一个),然后将侧翼屏幕集中在一起,从而破坏了布局。

任何关于为什么会发生这种情况的意见都将受到赞赏。

Section "ServerLayout"
    Identifier     "PootSlap"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
    Screen      2  "Screen2" RightOf "Screen1"
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
    Option “Xinerama” “0”
EndSection

Section "Module"
    Load  "glx"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol" "auto"
    Option      "Device" "/dev/input/mice"
    Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "ACR"
    ModelName      "Acer G246HYL"
    HorizSync       31.0 - 75.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "ACR"
    ModelName      "Acer SA270"
    HorizSync       31.0 - 84.0
    VertRefresh     48.0 - 76.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor2"
    VendorName     "ACR"
    ModelName      "Acer G247HYL"
    HorizSync       31.0 - 75.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier  "Card0"
    Driver      "amdgpu"
    BusID       "PCI:48:0:0"
EndSection

Section "Device"
    Identifier  "Card1"
    Driver      "nvidia"
    BusID       "PCI:16:0:0"
EndSection

Section "Device"
    Identifier  "Card2"
    Driver      "amdgpu"
    BusID       "PCI:48:0:1"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
        Option     "metamodes" "DisplayPort-0: 1920x1080_60 +0+0"
    SubSection "Display"
        Depth     24
    EndSubSection
EndSection

Section "Screen"
    Identifier "Screen1"
    Device     "Card1"
    Monitor    "Monitor1"
        Option     "metamodes" "DFP-3: 1920x1080_75 +0+0"
    SubSection "Display"
        Depth     24
    EndSubSection
EndSection

Section "Screen"
    Identifier "Screen2"
    Device     "Card2"
    Monitor    "Monitor2"
        Option     "metamodes" "HDMI-A-0: 1920x1080_60 +0+0"
    SubSection "Display"
        Depth     24
    EndSubSection
EndSection

答案1

尝试将屏幕设置添加到每个设备部分:

Section "Device"
    Identifier  "Card0"
    Driver      "amdgpu"
    BusID       "PCI:48:0:0"
    Screen      0
EndSection

Section "Device"
    Identifier  "Card1"
    Driver      "nvidia"
    BusID       "PCI:16:0:0"
    Screen      1
EndSection

Section "Device"
    Identifier  "Card2"
    Driver      "amdgpu"
    BusID       "PCI:48:0:1"
    Screen      2
EndSection

我有类似的设置,这是我能看到的唯一明显的区别。

相关内容