如何为 X11 配置具有不同刷新率的多个显示器?

如何为 X11 配置具有不同刷新率的多个显示器?

我正在使用kscreen已删除的 Kubuntu 19.04,目前我的xorg.conf文件如下:

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
    Option         "Xinerama" "0"
EndSection

Section "Files"
    ModulePath      "/usr/lib/xorg/modules"
    FontPath        "/usr/share/fonts/X11/misc"
    FontPath        "/usr/share/fonts/X11/cyrillic"
    FontPath        "/usr/share/fonts/X11/100dpi/:unscaled"
    FontPath        "/usr/share/fonts/X11/75dpi/:unscaled"
    FontPath        "/usr/share/fonts/X11/Type1"
    FontPath        "/usr/share/fonts/X11/100dpi"
    FontPath        "/usr/share/fonts/X11/75dpi"
    FontPath        "built-ins"
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     "Unknown"
    ModelName      "GBT AORUS AD27QD"
    HorizSync       222.0 - 222.0
    VertRefresh     48.0 - 144.0
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "Ancor Communications Inc ASUS PB278"
    HorizSync       24.0 - 99.0
    VertRefresh     24.0 - 144.0
EndSection

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

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

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-6"
    Option         "metamodes" "DP-4: 2560x1440_144 +0+0 {ForceCompositionPipeline=On, AllowGSYNCCompatible=On}, DP-2: 2560x1440_60 +2560+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

但是,这似乎并没有真正让我的主显示器达到 144Hz。在 Firefox 中滚动显然仍是 60Hz,操作系统的其余部分同样似乎不是 144Hz,即使xrandr报告 144Hz(我认为实际发生的情况是我的鼠标以 144Hz 运行,但其他一切都以 60Hz 运行):

Screen 0: minimum 8 x 8, current 5120 x 1440, maximum 32767 x 32767
[...]
DP-2 connected 2560x1440+2560+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440     59.95*+
[...]
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 609mm x 355mm
   2560x1440     59.95 + 143.97*  120.00  
[...]
DP-5 disconnected (normal left inverted right x axis y axis)

如果我从配置文件中删除第二台显示器(即 PB278),使其完全禁用,则我的主显示器将以 144Hz 运行。

我该如何配置我的xorg.conf文件以便可以同时使用两个显示器,以 144Hz 运行主显示器,以 60Hz 运行辅助显示器?

相关内容