使用 xrandr 配置 3 个显示器位置

使用 xrandr 配置 3 个显示器位置

我目前正在尝试在 i3wm 设置上配置 3 台显示器,但由于某些原因,它不起作用。

这是我的配置:

  • 操作系统:Fedora Linux 35(三十五)x86_64
  • 核心:5.16.18-200.fc35.x86_64
  • 图形处理器:NVIDIA GeForce GTX 1660 超级
  • NVIDIA 驱动程序版本:510.60.02

这是我正在使用的命令:

xrandr --output DP-3 --mode 1920x1080 --pos 0x0 --rotate left --output DP-1 --pos 1080x840 --mode 1920x1080 --rotate normal --output HDMI-1 --pos 3000x840 --mode 1920x1080 --rotate normal

这是 xrandr 命令的结果

    $ xrandr
Screen 0: minimum 320 x 200, current 5760 x 1080, maximum 16384 x 16384
DP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
   1920x1080     60.00*+ 165.00   143.99   119.98    59.97    59.96    50.00    59.94    59.93  
   1680x1050     59.95    59.88  
   1400x1050     74.76    59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     85.02    75.02    60.02  
   1440x900      59.89  
   1400x900      59.96    59.88  
   1280x960      85.00    60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1280x800      59.99    59.97    59.81    59.91  
   1152x864      75.00  
   1280x720      60.00    59.99    59.86    60.00    50.00    59.94    59.74  
   1440x576      50.00  
   1024x768      85.00    75.05    60.04    85.00    75.03    70.07    60.00  
   1024x768i     86.96  
   960x720       85.00    75.00    60.00  
   1440x480      60.00    59.94  
   928x696       75.00    60.05  
   896x672       75.05    60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   832x624       74.55  
   960x540       59.96    59.99    59.63    59.82  
   800x600       85.00    75.00    70.00    65.00    60.00    85.14    72.19    75.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   720x576       50.00  
   700x525       74.76    59.98  
   800x450       59.95    59.82  
   720x480       60.00    59.94  
   640x512       85.02    75.02    60.02  
   700x450       59.96    59.88  
   640x480       85.09    60.00    85.01    75.00    72.81    75.00    66.67    60.00    59.94  
   720x405       59.51    58.99  
   720x400       85.04    70.08  
   684x384       59.88    59.85  
   640x400       59.88    59.98    85.08  
   576x432       75.00  
   640x360       59.86    59.83    59.84    59.32  
   640x350       85.08  
   512x384       85.00    75.03    70.07    60.00  
   512x384i      87.06  
   512x288       60.00    59.92  
   416x312       74.66  
   480x270       59.63    59.82  
   400x300       85.27    72.19    75.12    60.32    56.34  
   432x243       59.92    59.57  
   320x240       85.18    72.81    75.00    60.05  
   360x202       59.51    59.13  
   360x200       85.04  
   320x200       85.27  
   320x180       59.84    59.32  
   320x175       85.27  
HDMI-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 543mm x 302mm
   1920x1080     60.00*+ 143.99   119.98    59.97   109.95    99.93    59.96    50.00    59.94    59.93  
   1680x1050     59.95    59.88  
   1400x1050     74.76    59.98  
   1600x900      59.99    59.94    59.95    60.00    59.82  
   1280x1024     85.02    75.02    60.02  
   1440x900      59.90  
   1400x900      59.96    59.88  
   1280x960      85.00    60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1280x800      59.99    59.97    59.81    59.91  
   1152x864      75.00  
   1280x720      60.00    59.99    59.86    60.00    50.00    59.94    59.74  
   1024x768      85.00    75.05    60.04    85.00    75.03    70.07    60.00  
   1024x768i     86.96  
   960x720       85.00    75.00    60.00  
   928x696       75.00    60.05  
   896x672       75.05    60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   832x624       74.55  
   960x540       59.96    59.99    59.63    59.82  
   800x600       85.00    75.00    70.00    65.00    60.00    85.14    72.19    75.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   720x576       50.00  
   700x525       74.76    59.98  
   800x450       59.95    59.82  
   720x480       60.00    59.94  
   640x512       85.02    75.02    60.02  
   700x450       59.96    59.88  
   640x480       85.09    60.00    85.01    72.81    75.00    60.00    59.94  
   720x405       59.51    58.99  
   720x400       85.04    70.08  
   684x384       59.88    59.85  
   640x400       59.88    59.98    85.08  
   576x432       75.00  
   640x360       59.86    59.83    59.84    59.32  
   640x350       85.08  
   512x384       85.00    75.03    70.07    60.00  
   512x384i      87.06  
   512x288       60.00    59.92  
   416x312       74.66  
   480x270       59.63    59.82  
   400x300       85.27    72.19    75.12    60.32    56.34  
   432x243       59.92    59.57  
   320x240       85.18    72.81    75.00    60.05  
   360x202       59.51    59.13  
   360x200       85.04  
   320x200       85.27  
   320x180       59.84    59.32  
   320x175       85.27  
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 connected 1920x1080+3840+0 (normal left inverted right x axis y axis) 477mm x 268mm
   1920x1080     60.00*+  59.96    59.93  
   1920x1200     59.95  
   1600x1200     65.00    60.00  
   1680x1050     59.95    59.88  
   1400x1050     59.98  
   1600x900      59.95    59.82  
   1280x1024     60.02  
   1440x900      59.90  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      59.97  
   1368x768      59.88    59.85  
   1280x800      59.99    59.97    59.81    59.91  
   1280x720      60.00    59.99    59.86    60.00    59.74  
   1024x768      60.04    70.07    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       70.00    65.00    60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   720x400       70.08  
   684x384       59.88    59.85  
   640x400       59.88    59.98  
   640x360       59.86    59.83    59.84    59.32  
   512x384       70.07    60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32

这是我的显示器的实际位置:

显示器

编辑:添加更多关于什么不起作用以及我已经尝试过的细节。

当我登录时,这是我得到的配置: 默认显示

然后我运行这个命令

xrandr --output DP-3 --rotate left

我得到了这个(这几乎是完美的): 几近完美

所以最后要做的就是将 DP-3 放在 DP-1 的右侧。这就是一切变得混乱的地方。

要么它有效,配置良好,我可以将光标从左侧(DP-3)移动到右侧(HDMI-1),穿过中间(DP-1)当我在 DP-1 上打开窗口时,它会显示在 HDMI-1 上...

要么它不起作用,所有窗口都在错误的位置,从屏幕中间开始,有黑色空间......混乱。今晚我会添加一张照片。

答案1

我只需要安装 Nvidia 驱动程序...现在工作正常。

这是我的配置:

  • 操作系统:Fedora Linux 35(三十五)x86_64
  • 核心:5.16.18-200.fc35.x86_64
  • 图形处理器:NVIDIA GeForce GTX 1660 超级
  • NVIDIA 驱动程序版本:510.60.02

有用的链接:

相关内容