从双屏转换为双显示器

从双屏转换为双显示器

我有一个类似于 Raspberry Pi 的无名 SBC,连接有 2 个物理显示器(一个通过 HDMI,一个通过 SPI)。下面是我的 xorg 配置,它给了我 2 个独立的 X 屏幕: :0.0 和 :0.1

### HDMI

Section "Device"
    Identifier  "device0"
    Driver      "fbdev"
    Option      "fbdev" "/dev/fb0"
EndSection

Section "Monitor"
    Identifier  "monitor0"
    Option      "Rotate" "normal"
    Modeline    "1920x1080_60.00"       172.80  1920  2040   2248  2576   1080   1081   1084  1118   -HSync +Vsync
EndSection

Section "Screen"
    Identifier  "screen0"
    Device      "device0"
    Monitor     "monitor0"
    DefaultDepth 24
    SubSection "Display"
        Depth 24
        Modes "1920x1080_60.00"
    EndSubSection
EndSection

### SPI

Section "Device"
    Identifier  "device1"
    Driver      "fbdev"
    Option      "fbdev" "/dev/fb1"
    Option      "SwapbuffersWait" "true"
EndSection

Section "Monitor"
    Identifier  "monitor1"
    Option      "Primary" "False"
EndSection

Section "Screen"
    Identifier "screen1"
    Monitor "monitor1"
    Device "device1"
    Subsection "Display"
        Depth 16
        Modes "320x240"
    EndSubSection
EndSection

### Layouts

Section "ServerLayout"
    Identifier "multihead"
    Screen  0 "screen0"
    Screen  1 "screen1" rightof "screen0"
EndSection

Section "ServerFlags"
    Option "DefaultServerLayout" "multihead"
EndSection

为了实现 2 个独立的显示:0 和 :1,而不是单独的屏幕,需要进行哪些更改(如果可能)?可以制作一个由显示器而不是屏幕组成的 ServerLayout 吗?

相关内容