Debian

擴展監視器 - 向右滾動以訪問左側螢幕

  • December 23, 2017

我正在執行 Crunchbang(基於 debian)並且我正在嘗試擴展我的桌面,我執行了以下命令:

xrandr --output DVI-I-2 --auto --output DVI-I-1 --primary --auto

這擴展了桌面,但我的第二台顯示器位於主顯示器的左側,但我必須將滑鼠移到右側才能訪問左側顯示器,我該如何解決這個問題?

的輸出xrandr -q

Screen 0: minimum 320 x 200, current 3360 x 1050, maximum 8192 x 8192
DVI-I-1 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 473mm x 296mm
  1680x1050      59.9*+
  1280x1024      75.0     60.0  
  1152x864       75.0  
  1024x768       75.1     60.0  
  800x600        75.0     60.3  
  640x480        75.0     60.0  
  720x400        70.1  
DVI-I-2 connected 1680x1050+1680+0 (normal left inverted right x axis y axis) 473mm x 296mm
  1680x1050      60.0*+
  1280x1024      75.0     60.0  
  1152x864       75.0  
  1024x768       75.1     60.0  
  800x600        75.0     60.3  
  640x480        75.0     60.0  
  720x400        70.1 

您可以使用以下命令明確設置哪個螢幕位於哪個螢幕的左側xrandr

xrandr --output DVI-I-1 --auto --primary --output DVI-I-2 --auto --left-of DVI-I-1

來自man xrandr

  --left-of, --right-of, --above, --below, --same-as another-output
         Use one of these options to position the output relative to  the
         position  of  another  output.  This allows convenient tiling of
         outputs within the screen.  The position is always computed rel‐
         ative  to  the  new  position  of the other output, so it is not
         valid to say --output a --left-of b --output b --left-of a.

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