Multi-Monitor

多個顯示器之間有虛擬間隙

  • January 7, 2018

一段時間以來,我的系統出現問題。我遇到這個問題已經有一段時間了。我尋找與我有類似問題的人,但沒有找到。我在縱向模式下使用 3 台顯示器,每台 24 英寸(1920x1080;1920x1200;1920x1080)。

What I want                     What I have 
+------++--------++------+    +------+  +--------+  +------+
|      ||        ||      |    |      |  |        |  |      |
|      ||        ||      |    |      |  |        |  |      | 
|  1   ||    2   ||  3   |    |  1   |  |    2   |  |   3  | 
|      ||        ||      |    |      |  |        |  |      | 
|      ||        ||      |    |      |  |        |  |      |  
+------++--------++------+    +------+  +--------+  +------+ 

我不斷地在它們之間找到一個奇怪的虛擬間隙,我可能會失去圖示並在那裡打開視窗應用程序。我有一個用於 GPU 的 GTX1080Ti 和 My DE: MATE 1.18.2.. 我想讓間隙消失,就像顯示器彼此非常接近一樣,我希望這篇文章在兩個顯示器上拉伸視窗的反向操作,中間有“間隙”。我認為這裡可能會做一些事情,xrandr但我就是想不通,這是我的配置:

Screen 0: minimum 8 x 8, current 4920 x 1920, maximum 32767 x 32767
DVI-D-0 connected primary 1200x1920+1920+0 left (normal left inverted right x axis y axis) 519mm x 324mm
  1920x1200     59.95*+
  1680x1050     59.95  
  1600x1200     60.00  
  1280x1024     75.02    60.02  
  1152x864      75.00  
  1024x768      75.03    60.00  
  800x600       75.00    60.32  
  640x480       75.00    59.94  
HDMI-0 connected 1080x1920+0+0 left (normal left inverted right x axis y axis) 531mm x 299mm
  1920x1080     60.00*+
  1680x1050     59.95  
  1440x900      59.89  
  1280x1024     75.02    60.02  
  1280x960      60.00  
  1280x800      59.81  
  1280x720      60.00  
  1152x864      75.00  
  1024x768      75.03    70.07    60.00  
  800x600       75.00    72.19    60.32    56.25  
  640x480       75.00    72.81    59.94  
HDMI-1 connected 1080x1920+3840+0 right (normal left inverted right x axis y axis) 368mm x 207mm
  1920x1080     60.00*+
  1680x1050     59.95  
  1600x900      60.00  
  1400x1050     59.98  
  1280x1024     75.02    60.02  
  1280x960      60.00  
  1280x800      59.81  
  1280x720      60.00  
  1152x864      60.00  
  1024x768      75.03    70.07    60.00  
  800x600       75.00    72.19    60.32    56.25  
  640x480       75.00    72.81    59.94  
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)

1920是橫向模式下的寬度,因此成為縱向模式下的高度。您的配置從最後一個顯示器開始 1920 像素開始每個顯示器,因此它們之間有 700-900 像素的間隙:

+0        +1920       +3840
+------+  +--------+  +------+    total: 4920w x 1920h
|      |  |        |  |      |
|1080w |  |1200w   |  |1080w | 
|  1   |  |    2   |  |   3  | 
|      |  |        |  |      |  
+------+  +--------+  +------+ 
      |  |        |  |
       840  gaps   720

整體幾何圖形在xrandr輸出中。請注意,起始 X 位置是 1920 的倍數——您希望在橫向模式下如此,但在寬度較小的縱向模式下則不然:

Screen 0: minimum 8 x 8, current 4920 x 1920    [<== total]
DVI-D-0 connected primary 1200x1920+1920+0 left [<== WidthxHeight+StartX+StartY]
  ...
HDMI-0 connected 1080x1920+0+0 left        [<== WidthxHeight+StartX+StartY]
  ...
HDMI-1 connected 1080x1920+3840+0 right    [<== WidthxHeight+StartX+StartY]
  ...

你想要什麼:

+0      +1080     +2280
+------++--------++------+   total: 3360w x 1920h
|      ||        ||      |
|1080w ||1200w   ||1080w | 
|  1   ||    2   ||   3  | 
|      ||        ||      |  
+------++--------++------+ 

你沒有提供一個精確的 xrandr 命令來實現你所擁有的,但我認為這會得到你想要的(我不確定旋轉;它們來自你的xrandr輸出):

xrandr --output HDMI-0  --rotate left   --pos 0x0          \
      --output DVI-D-0 --rotate left   --right-of HDMI-0  \
      --output HDMI-1  --rotate right  --right-of DVI-D-0

引用自:https://unix.stackexchange.com/questions/414563