The problem is, whenever I switch from my work computer to my home computer (running Gentoo) X thinks the maximum supported resolution of my monitor is 1920x1080 instead of its real native resolution of 2560x1440. As a result my second monitor only comes up at 1920x1080.
If I query XRandR I get:
Code: Select all
Screen 0: minimum 320 x 200, current 4480 x 1200, maximum 16384 x 16384
DisplayPort-0 connected primary 1920x1200+2560+0 (normal left inverted right x axis y axis) 550mm x 344mm
1920x1200 59.95*+
1920x1080 59.95
1600x1200 60.00
1680x1050 59.88
1400x1050 59.95
1280x1024 75.02 60.02
1440x900 59.90
1360x768 59.95
1280x800 59.95
1152x864 75.00
1280x720 60.00
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
640x480 75.00 72.81 66.67 59.94
720x400 70.08
DisplayPort-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
1920x1080 60.00 60.00* 50.00 59.94
1680x1050 59.95
1600x900 60.00
1280x1024 60.02
1440x900 59.89
1280x720 60.00 50.00 59.94
1024x768 60.00
800x600 60.32
720x576 50.00
720x480 60.00 59.94
640x480 60.00 59.94
720x400 70.08
DisplayPort-2 disconnected (normal left inverted right x axis y axis)
HDMI-A-0 disconnected (normal left inverted right x axis y axis)
The strange thing is, if I query the EDID information from the sysfs I get:
Code: Select all
/sys/class/drm/card0/card0-DP-2 $ cat edid | edid-decode
Block 0, Base EDID:
EDID Structure Version & Revision: 1.4
Vendor & Product Identification:
Manufacturer: LEN
Model: 26094
Serial Number: 12345678
Made in: week 2 of 2021
Basic Display Parameters & Features:
Digital display
Bits per primary color channel: 10
DisplayPort interface
Maximum image size: 60 cm x 34 cm
Gamma: 2.20
DPMS levels: Off
Supported color formats: RGB 4:4:4, YCrCb 4:4:4, YCrCb 4:2:2
First detailed timing includes the native pixel format and preferred refresh rate
Display is continuous frequency
Color Characteristics:
Red : 0.6611, 0.3320
Green: 0.3017, 0.6132
Blue : 0.1494, 0.0595
White: 0.3134, 0.3291
Established Timings I & II:
IBM : 720x400 70.082 Hz 9:5 31.467 kHz 28.320 MHz
DMT 0x04: 640x480 59.940 Hz 4:3 31.469 kHz 25.175 MHz
DMT 0x09: 800x600 60.317 Hz 4:3 37.879 kHz 40.000 MHz
DMT 0x10: 1024x768 60.004 Hz 4:3 48.363 kHz 65.000 MHz
Standard Timings:
DMT 0x23: 1280x1024 60.020 Hz 5:4 63.981 kHz 108.000 MHz
DMT 0x2f: 1440x900 59.887 Hz 16:10 55.935 kHz 106.500 MHz
DMT 0x53: 1600x900 60.000 Hz 16:9 60.000 kHz 108.000 MHz (RB)
DMT 0x3a: 1680x1050 59.954 Hz 16:10 65.290 kHz 146.250 MHz
DMT 0x52: 1920x1080 60.000 Hz 16:9 67.500 kHz 148.500 MHz
Detailed Timing Descriptors:
DTD 1: 2560x1440 143.999 Hz 16:9 222.191 kHz 604.360 MHz (597 mm x 336 mm)
Hfront 32 Hsync 48 Hback 80 Hpol P
Vfront 3 Vsync 5 Vback 95 Vpol N
DTD 2: 2560x1440 120.000 Hz 16:9 183.000 kHz 497.760 MHz (597 mm x 336 mm)
Hfront 48 Hsync 32 Hback 80 Hpol P
Vfront 3 Vsync 5 Vback 77 Vpol N
Display Range Limits:
Monitor ranges (Bare Limits): 48-165 Hz V, 258-258 kHz H, max dotclock 680 MHz
Display Product Name: 'LEN Y27q-20'
Extension blocks: 2
Checksum: 0xb4
----------------
Block 1, CTA-861 Extension Block:
Revision: 3
Underscans IT Video Formats by default
Basic audio support
Supports YCbCr 4:4:4
Supports YCbCr 4:2:2
Native detailed modes: 1
Video Data Block:
VIC 97: 3840x2160 60.000 Hz 16:9 135.000 kHz 594.000 MHz
VIC 96: 3840x2160 50.000 Hz 16:9 112.500 kHz 594.000 MHz
VIC 31: 1920x1080 50.000 Hz 16:9 56.250 kHz 148.500 MHz
VIC 16: 1920x1080 60.000 Hz 16:9 67.500 kHz 148.500 MHz (native)
VIC 20: 1920x1080i 50.000 Hz 16:9 28.125 kHz 74.250 MHz
VIC 1: 640x480 59.940 Hz 4:3 31.469 kHz 25.175 MHz
VIC 3: 720x480 59.940 Hz 16:9 31.469 kHz 27.000 MHz
VIC 4: 1280x720 60.000 Hz 16:9 45.000 kHz 74.250 MHz
VIC 18: 720x576 50.000 Hz 16:9 31.250 kHz 27.000 MHz
VIC 19: 1280x720 50.000 Hz 16:9 37.500 kHz 74.250 MHz
VIC 5: 1920x1080i 60.000 Hz 16:9 33.750 kHz 74.250 MHz
VIC 2: 720x480 59.940 Hz 4:3 31.469 kHz 27.000 MHz
VIC 63: 1920x1080 120.000 Hz 16:9 135.000 kHz 297.000 MHz
Audio Data Block:
Linear PCM:
Max channels: 2
Supported sample rates (kHz): 48 44.1 32
Supported sample sizes (bits): 24 20 16
Speaker Allocation Data Block:
FL/FR - Front Left/Right
Video Capability Data Block:
YCbCr quantization: Selectable (via AVI YQ)
RGB quantization: Selectable (via AVI Q)
PT scan behavior: Always Overscanned
IT scan behavior: Always Overscanned
CE scan behavior: Always Overscanned
Vendor-Specific Data Block (HDMI), OUI 00-0C-03:
Source physical address: 1.0.0.0
Vendor-Specific Data Block (AMD), OUI 00-00-1A:
01 01 30 a5 00 '..0..'
Colorimetry Data Block:
BT2020YCC
BT2020RGB
HDR Static Metadata Data Block:
Electro optical transfer functions:
Traditional gamma - SDR luminance range
Traditional gamma - HDR luminance range
SMPTE ST2084
Supported static metadata descriptors:
Static metadata type 1
Desired content max luminance: 97 (408.759 cd/m^2)
Desired content max frame-average luminance: 86 (322.098 cd/m^2)
Desired content min luminance: 28 (0.049 cd/m^2)
Detailed Timing Descriptors:
DTD 3: 2560x1440 59.951 Hz 16:9 88.787 kHz 241.500 MHz (597 mm x 336 mm)
Hfront 48 Hsync 32 Hback 80 Hpol P
Vfront 3 Vsync 5 Vback 33 Vpol P
DTD 4: 2560x1440 74.968 Hz 16:9 111.028 kHz 296.000 MHz (597 mm x 336 mm)
Hfront 8 Hsync 32 Hback 66 Hpol P
Vfront 3 Vsync 5 Vback 33 Vpol N
DTD 5: 2560x1440 100.000 Hz 16:9 151.000 kHz 410.720 MHz (597 mm x 336 mm)
Hfront 48 Hsync 32 Hback 80 Hpol P
Vfront 3 Vsync 5 Vback 62 Vpol P
Checksum: 0xf6
----------------
Block 2, DisplayID Extension Block:
Version: 1.2
Extension Count: 0
Display Product Type: Extension Section
Video Timing Modes Type 1 - Detailed Timings Data Block:
DTD: 2560x1440 165.000 Hz 0:0 257.235 kHz 679.100 MHz (aspect undefined, no 3D stereo, preferred)
Hfront 8 Hsync 32 Hback 40 Hpol N
Vfront 3 Vsync 5 Vback 111 Vpol N
Checksum: 0xe8
Checksum: 0x90
Now, if I turn the monitor off and back on again X appears to reload the EDID information and the 2560x1440 becomes available and I can switch the resolution back to the correct one. That said I am getting tired of having to constantly power cycle my monitor (and I'm sure it isn't good for it).
So I'm wondering is there a way to either:
1) Force/trigger Xorg to redetect/reload monitor information and update the support modelines
or
2) Manually trigger (from the command line) a monitor hotplug event (which I assume power cycling the monitor is doing).
For the record I am running KDE Plasma 5.21.5 and xorg-server 1.20.13-r1 if it matters.
Any suggestions would be appreciated. Thanks.

