Goal:
Ubuntu Desktop (Extended mode) with both monitors automatically in 1920x1080 mode
I have been all over the internet trying to figure this out and an starting to think that it is a bug / lack of support for duplicate monitors on one card. That said I have a Neanderthal's grasp of the workings of the lightdm/X windows system(s) so I am asking for your help.
NOTE: When I can get the addmode to work I plan to create a.xprofile file with xrandr --newmode and --admode statements
The Hardware:
AOC 2436Vwh (#1)
- Resolution: 1920x1080@60Hz
- Available Connections: HDMI x 1, VGA x 1
- Connected with: AmazonBasics DisplayPort > HDMI Adapter
- lightdm/X
- default resolution: 1024x768
- max resolution: 1600x900
AOC 2436Vwh (#2)
- Resolution: 1920x1080@60Hz
- Available Connections: HDMI x 1, VGA x 1
- Connected with: Dell DisplayPort > VGA adapter
- lightdm/X
- default resolution: 1920x1080
- max resolution: 1920x1080
Gigabyte RTX 2060
- Connections: DisplayPort x 3, HDMI x 1
- Driver: nVidia 510.47.03
Config data:
xrandr output:
Screen 0: minimum 8 x 8, current 3520 x 1080, maximum 32767 x 32767
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 connected 1600x900+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.00 +
1600x900 59.82*
1400x900 59.88
1368x768 59.88 59.85
1360x768 59.96 59.80
1280x800 59.91 59.81
1280x720 59.86 59.74
1152x864 60.00
1024x576 59.90 59.82
960x540 59.82 59.63
864x486 59.92 59.57
800x600 72.19 60.32 56.25
800x450 59.82
700x450 59.88
684x384 59.88 59.85
680x384 59.96 59.80
640x480 59.94
640x400 59.98 59.88
640x360 59.86 59.83
576x432 60.06
512x384 60.00
512x288 60.00 59.92
480x270 59.82 59.63
432x243 59.92 59.57
400x300 72.19 60.32 56.34
320x240 60.05
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-4 connected primary 1920x1080+1600+0 (normal left inverted right x axis y axis) 521mm x 293mm
1920x1080 60.00*+
1680x1050 59.95
1440x900 59.89
1280x1024 75.02 60.02
1280x960 60.00
1280x720 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-5 disconnected (normal left inverted right x axis y axis)
get-edid output:
This is read-edid version 3.0.2. Prepare for some fun.
Attempting to use i2c interface
No EDID on bus 0
No EDID on bus 2
No EDID on bus 3
No EDID on bus 5
No EDID on bus 6
No EDID on bus 7
2 potential busses found: 1 4
Will scan through until the first EDID is found.
Pass a bus number as an option to this program to go only for that one.
Bus 1 doesn't really have an EDID...
256-byte EDID successfully retrieved from i2c bus 4
�������6$�
�4x*�ѥUH�&PT�����@����:�q8-@X,E %!�8KP
�2436
�CSEB6HA003219A�K# �e
�
Њ �->� %!rQ� n(U %!�
Њ �->� %!�
Looks like i2c was successful. Have a good day.
А @1
@U %!�
xorg.conf
(Auto generated)
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 470.57.01
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "AOC 2436"
HorizSync 30.0 - 80.0
VertRefresh 56.0 - 75.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "NVIDIA GeForce RTX 2060"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-5"
Option "metamodes" "DP-4: nvidia-auto-select +1600+0, DP-1: 1600x900 +0+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Steps taken:
cvt 1920 1080 60
- Works
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
- No Errors
xrandr --addmode "DP-1" "1920x1080_60.00"
- Fails (with or without quotes):
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 43
Current serial number in output stream: 44
- Manually setting the Option "PreferredMode" "1920x1080@60" in xorg.conf
- Move a monitor to a new X screen and try to add a custom resolution
- Several Times I have seen that there is only one "Monitor" section in the auto generated xorg.conf - added this section (copied from existing monitor section):
Section "Monitor"
# HorizSync source: xconfig, VertRefresh source: xconfig
Identifier "Monitor1"
VendorName "Unknown"
ModelName "DFP-1"
HorizSync 28.0 - 55.0
VertRefresh 43.0 - 72.0
Option "DPMS"
Option "PreferredMode" "1920x1080@60"
EndSection
Questions:
- Is there a way to manually report the EDID pulled from i2c bus 4 (aka DP-4) to xrandr for DP-1?
- Is there a way to use the values from xrandr's DP-4 to specify DP-1's abilities/requirements?
- (Bonus:) if you can tell me how I could split a third monitor into 4+ virtual monitors for ssh/terminal session monitoring
Side Note(s):
- For some reason no matter what changes are made in the NVIDIA X Server Settings window it warns me that steps aren't completed eg. If I apply and save to xorg.conf I am still warned that I have pending changes:
Pending Changes