So, the problem has occurred a few times since my last post, and on previous occasions I’ve tried various things with and without KScreen2 enabled, changing things with xrandr and via the Display Settings, and generally not doing something repeatable or testable. Oops. But this time, with KScreen2 disabled since boot, I’m was in the state that:
- HDMI monitor is still at 2560x1440, but is blank except for the mouse cursor when I move it to that screen
- DP-1/DVI monitor is still 1920x1080, and working correctly, BUT when I looked in Display Settings, that thought it was 1280x1024. Except I just opened it again to take a screenshot, and it seems to have caught up with reality and is showing it as 1920x1080.
Output of xrandr --listproviders
:
Providers: number : 1
Provider 0: id: 0x48; cap: 0xf (Source Output, Sink Output, Source Offload, Sink Offload); crtcs: 4; outputs: 6; associated providers: 0; name: modesetting
output eDP-1
output HDMI-1
output DP-1
output DP-2
output DP-3
output DP-4
Output of xrandr --listmonitors
:
Monitors: 2
0: +*DP-1 1920/477x1080/268+2560+180 DP-1
1: +HDMI-1 2560/526x1440/296+0+0 HDMI-1
Output of xrandr
:
Screen 0: minimum 320 x 200, current 4480 x 1440, maximum 16384 x 16384
eDP-1 connected (normal left inverted right x axis y axis)
1920x1080 60.05 + 60.01 59.97 59.96 59.93
(various other lower resolutions listed)
HDMI-1 connected 2560x1440+0+0 (normal left inverted right x axis y axis) 526mm x 296mm
2560x1440 59.95*+
(various other lower resolutions listed)
DP-1 connected primary 1920x1080+2560+180 (normal left inverted right x axis y axis) 477mm x 268mm
1920x1080 60.00*+
(various other lower resolutions listed)
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)
Interestingly, when I did a Print Screen, the screenshot showed contents on the HDMI monitor, even though it was just showing black (apart from the mouse cursor).
Running xrandr --output DP-1 --auto
and xrandr --output HDMI-1 --auto
had no effect. I then tried xrandr --output HDMI-1 --mode 2560x1440 --pos 0x0
, which also had no effect.
Figuring that this might be due to it deciding to not do anything since I hadn’t actually changed anything, I tried xrandr --output HDMI-1 --mode 2560x1440 --pos 0x1
, at which point things went horribly wrong. The HDMI monitor stayed as it was (black except for mouse cursor), and the DVI monitor got disconnected, which meant I then had no output at all. I ran xrandr --output HDMI-1 --mode 2560x1440 --pos 0x0
again (by pressing Up, Up, Enter, assuming that the terminal still had focus), but that didn’t help. I then did Ctrl+Alt+F1 to switch to the terminal display, which showed up on all 3 monitors (HDMI, DVI, and laptop’s internal screen). I then immeditely did Ctrl+Alt+F7 to get back to the X display, at which point the HDMI display was working correctly, and the DVI display still disconnected. Running xrandr --output DP-1 --auto
then reconnected the DVI display, but only at 1280x1024. After all that:
Output of xrandr --listproviders
:
Providers: number : 1
Provider 0: id: 0x48; cap: 0xf (Source Output, Sink Output, Source Offload, Sink Offload); crtcs: 4; outputs: 6; associated providers: 0; name: modesetting
output eDP-1
output HDMI-1
output DP-1
output DP-2
output DP-3
output DP-4
Output of xrandr --listmonitors
:
Monitors: 2
0: +*DP-1 1280/477x1024/268+2560+179 DP-1
1: +HDMI-1 2560/526x1440/296+0+0 HDMI-1
Output of xrandr
:
Screen 0: minimum 320 x 200, current 3840 x 1440, maximum 16384 x 16384
eDP-1 connected (normal left inverted right x axis y axis)
1920x1080 60.05 + 60.01 59.97 59.96 59.93
(various other lower resolutions listed)
HDMI-1 connected 2560x1440+0+0 (normal left inverted right x axis y axis) 526mm x 296mm
2560x1440 59.95*+
(various other lower resolutions listed)
DP-1 connected primary 1280x1024+2560+179 (normal left inverted right x axis y axis) 477mm x 268mm
1280x1024 75.02* 60.02
(various other lower resolutions listed)
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)
After this, running
xrandr --addmode DP-1 1920x1080
xrandr --output DP-1 --mode 1920x1080 --pos 2560x180
restored the DVI monitor to its correct configuration.