是否有任何桌面环境(最好是 KDE)支持单独的 X 屏幕?

是否有任何桌面环境(最好是 KDE)支持单独的 X 屏幕?

我希望在多个 X 屏幕(:0.0、:0.1、:0.2 等)上运行 KDE Plasma 5。我当前的设置是 2 个带有 nvidia 驱动程序的独立 X 屏幕上的 2 个显示器,但是当等离子仅启动时:0.0 实际上有等离子/kwin 在其上运行。 :0.1 是黑屏,带有 X 代表光标。我已经在 KDE4 Plasma(在 RHEL7 上)上成功运行了此设置,并希望在 Plasma 5(在 RHEL 8 上)上继续这样做。我可以手动将 bash 中的 DISPLAY 设置为 :0.1 并将 X 窗口(例如 xterm)启动为 :0.1,但是与该窗口交互无法正常工作。

我想像这样运行我的显示设置有两个主要原因。首先也是最重要的,是能够在每个显示器的基础上切换虚拟桌面。其次,能够远程启动 X windows 到特定的显示器。

过去,我曾在运行 KDE 的 RHEL 5、运行 Gnome2 的 RHEL 6 以及运行 KDE4 的 RHEL 7 上设置过此显示设置。我现在在 RHEL 8 上尝试使用 KDE 5 Plasma,但没有成功,并且无法找到与在单独的 X 显示器上设置多头相关的任何好的资源。

在 KDE4 上,对于设置的每个屏幕,plasma-desktop 和 kwin 的每个屏幕都有一个 qdbus 对象。

以下是在运行 KDE4 的 RHEL7 上成功设置后的 qdbus 对象的样子

# qdbus | grep plasma-desktop
org.kde.plasma-desktop
org.kde.plasma-desktop-screen-1
org.kde.plasma-desktop-screen-2
org.kde.plasma-desktop-screen-3
# qdbus | grep kwin
org.kde.kwin
org.kde.kwin-screen-1
org.kde.kwin-screen-2
org.kde.kwin-screen-3

我希望在 Plasma KDE 5 中可以得到类似的设置。

这是我的 xorg.conf 文件:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 460.67

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "LG Electronics LG Ultra HD"
    HorizSync       30.0 - 135.0
    VertRefresh     56.0 - 61.0
    Option         "DPMS"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "Samsung C24FG70"
    HorizSync       30.0 - 168.0
    VertRefresh     50.0 - 144.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1070"
    BusID          "PCI:8:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1070"
    BusID          "PCI:8:0:0"
    Screen          1
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-5"
    Option         "metamodes" "DP-2: 1920x1080 +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-3"
    Option         "metamodes" "DP-0: nvidia-auto-select +0+0 {AllowGSYNC=Off}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

相关内容