Solved Weird Bug with Xrandr Command

FreeBSD 13.1p2

I recently change monitors due to the fact that I upgraded GPU + new drivers for it... Old monitors had old DVI plug (Accell adapter stopped working with new GPU drivers)...

I change 2 monitors like 4 weeks ago and all was working as it should with command below with correct order but recently (1 week ago) I began having issues with xandr command:

Code:
xrandr --output DP-0 --mode 2560x1440 --left-of DVI-D-0 --output DVI-D-0 --auto --output DP-4 --mode 2560x1440 --right-of DVI-D-0 --output HDMI-0 --auto --right-of DP-4

=================================================
(1st GPU)
Code:
xrandr --listmonitors
Monitors: 4
 0: +*DVI-D-0 2560/597x1440/336+0+0  DVI-D-0
 1: +HDMI-0 1920/160x1080/90+2560+0  HDMI-0
 2: +DP-0 3840/600x2160/340+4480+0  DP-0
 3: +DP-4 3840/600x2160/340+8320+0  DP-4

(2nd GPU)
Code:
xrandr --listmonitors
Monitors: 1
 0: +HDMI-0 3840/620x2160/340+0+0  HDMI-0

(1st GPU)

Code:
 xrandr -q
Screen 0: minimum 8 x 8, current 12160 x 2160, maximum 32767 x 32767
DVI-D-0 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440     59.95*+
HDMI-0 connected 1920x1080+2560+0 (normal left inverted right x axis y axis) 160mm x 90mm
   1920x1080     60.00*+  59.99    59.94    29.97    23.98    60.05    60.00
   1360x768      60.02
   1280x1024     60.02
   1280x720      60.00    59.94
   1152x864      60.00
   1024x768      60.00
   800x600       60.32
   720x480       59.94
   640x480       59.95    59.94    59.93
DP-0 connected 3840x2160+4480+0 (normal left inverted right x axis y axis) 600mm x 340mm
   3840x2160     60.00*+  30.00
   2560x1440     59.95
   1920x1080     60.00    59.94
   1600x900      60.00
   1280x1024     60.02
   1280x800      59.81
   1280x720      60.00    59.94
   1152x864      59.96
   1024x768      60.00
   800x600       60.32
   720x480       59.94
   640x480       59.94    59.93
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)
DP-4 connected 3840x2160+8320+0 (normal left inverted right x axis y axis) 600mm x 340mm
   3840x2160     60.00*+  30.00
   2560x1440     59.95
   1920x1080     60.00    59.94
   1600x900      60.00
   1280x1024     60.02
   1280x800      59.81
   1280x720      60.00    59.94
   1152x864      59.96
   1024x768      60.00
   800x600       60.32
   720x480       59.94
   640x480       59.94    59.93
DP-5 disconnected (normal left inverted right x axis y axis)

(2nd GPU)
Code:
 xrandr -q
Screen 1: minimum 8 x 8, current 3840 x 2160, maximum 32767 x 32767
DP-0 disconnected primary (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 3840x2160+0+0 (normal left inverted right x axis y axis) 620mm x 340mm
   3840x2160     30.00*+  29.97    25.00    23.98
   2560x1600     59.97
   2560x1440     59.95
   1920x1080     60.00    59.94    50.00    29.97    23.98
   1680x1050     59.95
   1440x900      59.89
   1440x576      50.00
   1440x480      59.94
   1280x1024     75.02    60.02
   1280x960      60.00
   1280x720      60.00    59.94    50.00
   1152x864      75.00
   1024x768      75.03    70.07    60.00
   800x600       75.00    72.19    60.32    56.25
   720x576       50.00
   720x480       59.94
   640x480       75.00    72.81    59.94    59.93
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
USB-C-0 disconnected (normal left inverted right x axis y axis)

1st GPU
Code:
 echo $DISPLAY
:0
2nd GPU
Code:
 echo $DISPLAY
:0.1

=================================================

My current config:
I got 2 GPUs and 5 monitors connected. 1 GPU has 4 monitors and 1 GPU has 1 monitor.

Context:
When I run the
Code:
startx
all monitors are accessible and I can jump (drag my mouse) between them, main problem is they are not in correct order and the dimensions are not symmetrical.
When I first installed monitors (4 weeks ago) I was able to get all the monitors to work in correct order with command and was not getting stuck on monitor 5:
Code:
xrandr --output DP-0 --mode 2560x1440 --left-of DVI-D-0 --output DVI-D-0 --auto --output DP-4 --mode 2560x1440 --right-of DVI-D-0 --output HDMI-0 --auto --right-of DP-4

Problem:
After a recent restart on my computer (1 week ago) began having weird bug, when using the xrandr command above and I jump (to 5th monitor) into 2nd GPU my mouse gets stuck there (the 4 monitors in 1GPU has correct order and 2560 dimensions after above xrandr command :oops:) and I am not able to jump back to the 4 monitors in 1st GPU...

What might be the issue with the command above? (Is there an issue :what:)
 
Last edited:
Issue was using smaller --mode, the moment I didn't use the smaller size and kept --auto for all screen the mouse stopped getting stuck.
 
Back
Top