Bug 466650 - Multimonitor-setup: after login on X11, primary DisplayPort monitor loses signal but still counts as enabled and a part of the desktop
Summary: Multimonitor-setup: after login on X11, primary DisplayPort monitor loses sig...
Status: RESOLVED FIXED
Alias: None
Product: KScreen
Classification: Plasma
Component: common (show other bugs)
Version: 5.27.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-01 11:38 UTC by Rune
Modified: 2024-04-18 17:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rune 2023-03-01 11:38:51 UTC
SUMMARY
When I log into the X11-Session, my primary monitor (which is detected by sddm-git) goes black. It is connected via DisplayPort, the secondary monitor that is always detected is connect via HDMI. If I turn the monitor off and on again it is then detected properly and works fine.


STEPS TO REPRODUCE
1. Log in to Plasma(X11) while using multiple monitors. One of them might have to be connected via DisplayPort.
2. Wait for the splash screen to disappear.
3. The secondary monitor shows the plasma desktop, while the primary monitor goes black.

OBSERVED RESULT
The secondary monitor shows the plasma desktop, while the primary monitor goes black.

EXPECTED RESULT
Both monitors show the plasma desktop.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux 6.2.1-arch1-1 (64-bit)
(available in About System)
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2023-03-01 22:16:58 UTC
When the DP screen goes black, can you move the cursor onto it or does it stop at the shared screen edge? If you can, does the cursor remain visible when moving onto the black screen? If it is, when you right-click on the black background, what happens?
Comment 2 Rune 2023-03-01 22:25:09 UTC
(In reply to Nate Graham from comment #1)
> When the DP screen goes black, can you move the cursor onto it or does it
> stop at the shared screen edge? If you can, does the cursor remain visible
> when moving onto the black screen? If it is, when you right-click on the
> black background, what happens?

I have not been clear here, the screen actually goes into power saving/no signal mode. I can move my cursor there (it is not visible of course) and even click things - I had a firefox window restored there from the previous session and was able to start a video there without seeing anything.
Comment 3 Nate Graham 2023-03-01 22:47:53 UTC
Thanks. When it's in this state, can you paste the output of `kscreen-doctor -o`?
Comment 4 Rune 2023-03-04 13:12:13 UTC
Output: 68 DP-1 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 69 DP-2 enabled connected priority 1 DisplayPort Modes: 73:3840x2160@60*! 74:3840x2160@60 75:3840x2160@30 76:3200x1800@60 77:3200x1800@60 78:2880x1620@60 79:2880x1620@60 80:2560x1600@60 81:2560x1600@60 82:2560x1440@60 83:2560x1440@60 84:2560x1440@60 85:2048x1536@60 86:1920x1440@60 87:1856x1392@60 88:1792x1344@60 89:2048x1152@60 90:2048x1152@60 91:2048x1152@60 92:2048x1152@60 93:1920x1200@60 94:1920x1200@60 95:1920x1200@60 96:1920x1080@60 97:1920x1080@60 98:1920x1080@60 99:1920x1080@60 100:1920x1080@60 101:1920x1080@60 102:1600x1200@60 103:1600x1200@60 104:1680x1050@60 105:1680x1050@60 106:1680x1050@60 107:1400x1050@60 108:1600x900@60 109:1600x900@60 110:1600x900@60 111:1600x900@60 112:1600x900@60 113:1280x1024@60 114:1440x900@60 115:1400x900@60 116:1400x900@60 117:1280x960@60 118:1440x810@60 119:1440x810@60 120:1368x768@60 121:1368x768@60 122:1280x800@60 123:1280x800@60 124:1280x800@60 125:1280x800@60 126:1152x864@60 127:1280x720@60 128:1280x720@60 129:1280x720@60 130:1280x720@60 131:1280x720@60 132:1280x720@60 133:1024x768@60 134:1024x768@60 135:960x720@60 136:928x696@60 137:896x672@60 138:1024x576@60 139:1024x576@60 140:1024x576@60 141:1024x576@60 142:960x600@60 143:960x600@60 144:960x540@60 145:960x540@60 146:960x540@60 147:960x540@60 148:800x600@60 149:800x600@60 150:800x600@56 151:840x525@60 152:840x525@60 153:864x486@60 154:864x486@60 155:700x525@60 156:800x450@60 157:800x450@60 158:720x480@60 159:720x480@60 160:640x512@60 161:700x450@60 162:700x450@60 163:640x480@60 164:640x480@60 165:640x480@60 166:720x405@60 167:720x405@59 168:684x384@60 169:684x384@60 170:640x400@60 171:640x400@60 172:640x360@60 173:640x360@60 174:640x360@60 175:640x360@59 176:512x384@60 177:512x288@60 178:512x288@60 179:480x270@60 180:480x270@60 181:400x300@60 182:400x300@56 183:432x243@60 184:432x243@60 185:320x240@60 186:360x202@60 187:360x202@59 188:320x180@60 189:320x180@59 Geometry: 0,0 3840x2160 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 70 DP-3 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 71 HDMI-1 enabled connected priority 2 HDMI Modes: 156:800x450@60 157:800x450@60 161:700x450@60 162:700x450@60 163:640x480@60 165:640x480@60 166:720x405@60 167:720x405@59 168:684x384@60 169:684x384@60 170:640x400@60 171:640x400@60 172:640x360@60 173:640x360@60 174:640x360@60 175:640x360@59 176:512x384@60 177:512x288@60 178:512x288@60 179:480x270@60 180:480x270@60 181:400x300@60 182:400x300@56 183:432x243@60 184:432x243@60 185:320x240@60 186:360x202@60 187:360x202@59 188:320x180@60 189:320x180@59 190:800x480@66*! 191:640x480@66 Geometry: 3840,1680 800x480 Scale: 1 Rotation: 4 Overscan: 0 Vrr: incapable RgbRange: unknown
Comment 5 Rune 2023-03-05 09:14:58 UTC
I now most of the time get a window saying that Plasma crashed and that I can report a bug. Sadly, this window closes before I can actually report it properly.
Comment 6 Rune 2023-03-06 10:19:34 UTC
I have to add: the HDMI monitor (secondary) has a different refresh rate (66Hz) than the primary one (60Hz).
Comment 7 Nate Graham 2023-03-06 15:33:44 UTC
Thanks.

Output: 68 DP-1 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown

This should say "enabled connected priority 1"; moving to KScreen.
Comment 8 Rune 2023-03-06 19:03:48 UTC
Additional info: The problem only occurs on the first login after booting. If I log out and in again, everything works as intended.
Comment 9 Rune 2023-03-06 19:05:02 UTC
(In reply to Rune from comment #8)
> Additional info: The problem only occurs on the first login after booting.
> If I log out and in again, everything works as intended.

That is, if I log into the wayland session (where the monitor is detected properly) and log back out and then into the X11 session.
Comment 10 Nate Graham 2023-03-07 15:28:59 UTC
So if you log into the Wayland session, log out, and log back into the Wayland session, it works?
Comment 11 Rune 2023-03-07 15:31:17 UTC
(In reply to Nate Graham from comment #10)
> So if you log into the Wayland session, log out, and log back into the
> Wayland session, it works?

No, if I logged into the wayland session before logging into the X11 session, it works. The error never occurs in the wayland session.
Comment 12 Nate Graham 2023-03-08 17:41:40 UTC
Thanks for the info.
Comment 13 Rune 2024-04-18 17:58:53 UTC
Fixed in Plasma 6.04 (or earlier)