Bug 517409 - External (second) 4k Thunderbolt screen shows a login screen that is scaled by 2x vertically (only)
Summary: External (second) 4k Thunderbolt screen shows a login screen that is scaled b...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-11 07:07 UTC by Philipp Slusallek
Modified: 2026-03-16 18:44 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.5.6
Sentry Crash Report:


Attachments
Photo showing both screen the 4k being distorted (443.32 KB, image/jpeg)
2026-03-11 07:07 UTC, Philipp Slusallek
Details
Output from drm_info while login screen being shown (266.68 KB, text/plain)
2026-03-11 07:09 UTC, Philipp Slusallek
Details
Output from drm_info while after login with normal desktop (all is fine now) (266.69 KB, text/plain)
2026-03-11 07:10 UTC, Philipp Slusallek
Details
Output from drm_info during login session but while switched to VT (in case this might be helpful) (265.96 KB, text/plain)
2026-03-11 07:11 UTC, Philipp Slusallek
Details
Binary EDID output (256 bytes, application/octet-stream)
2026-03-11 12:32 UTC, Philipp Slusallek
Details
EDID output from KDE Info Center as text (7.08 KB, text/plain)
2026-03-11 12:34 UTC, Philipp Slusallek
Details
The old file (8.62 KB, text/plain)
2026-03-11 19:55 UTC, Philipp Slusallek
Details
The new kwinoutputconfig.json file after removal and reboot (3.78 KB, text/plain)
2026-03-11 19:56 UTC, Philipp Slusallek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Slusallek 2026-03-11 07:07:57 UTC
Created attachment 190546 [details]
Photo showing both screen the 4k being distorted

SUMMARY
My external (second) 4k Thunderbolt screen shows a login screen that is scaled by 2x vertically (only). After login everything is fine again, it happens only at login. I see this both with Ubuntu 16.04 (sddm) and KDE Linux (plasma-login). Nate pointed me here

STEPS TO REPRODUCE
Just let the machine boot to the GUI login and observe the second screen.

OBSERVED RESULT
While the login screen is correct on the built-in screen it is distorted on the external screen. Both with Ubuntu and KDE-Linux despite them using different login-managers.

EXPECTED RESULT
The screen on the external display not being distorted.


SOFTWARE/OS VERSIONS
Operating System: KDE Linux 2026-03-10
KDE Plasma Version: 6.6.80
KDE Frameworks Version: 6.25.0
Qt Version: 6.10.2
Kernel Version: 6.19.6-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × 13th Gen Intel® Core™ i7-1365U
Memory: 32 GiB of RAM (31.0 GiB usable)
Graphics Processor: Intel® Iris® Xe Graphics
Manufacturer: LENOVO
Product Name: 21HNS00100
System Version: ThinkPad X1 Carbon Gen 11

ADDITIONAL INFORMATION
Comment 1 Philipp Slusallek 2026-03-11 07:09:38 UTC
Created attachment 190547 [details]
Output from drm_info while login screen being shown
Comment 2 Philipp Slusallek 2026-03-11 07:10:17 UTC
Created attachment 190548 [details]
Output from drm_info while after login with normal desktop (all is fine now)
Comment 3 Philipp Slusallek 2026-03-11 07:11:02 UTC
Created attachment 190549 [details]
Output from drm_info during login session but while switched to VT (in case this might be helpful)
Comment 4 Zamundaaa 2026-03-11 12:15:25 UTC
Please attach the edid of the display. You can get it with
> cat /sys/class/drm/card1/card1-DP-1/edid > edid.bin
(the connector name might need adjusting)
Comment 5 Philipp Slusallek 2026-03-11 12:32:42 UTC
Created attachment 190568 [details]
Binary EDID output

As proposed here is the EDIT output. Its the only non-empty file among all cards available (other then the internal eDP connector). Hope its the right one.
Comment 6 Philipp Slusallek 2026-03-11 12:34:26 UTC
Created attachment 190569 [details]
EDID output from KDE Info Center as text
Comment 7 Philipp Slusallek 2026-03-11 12:35:35 UTC
Just provided the requested binary output but also the Text output from the KDE Info Center app. Hope this helps finding the issue.
Comment 8 Zamundaaa 2026-03-11 13:27:22 UTC
Hmm, our autotest passes with that, it chooses 2160p by default.
From a tty, please do
> sudo systemctl stop plasmalogin
(this will stop any existing sessions), move
> /var/lib/plasmalogin/.config/kwinoutputconfig.json
somewhere else, and reboot. Is the resolution still wrong after that?
Comment 9 Philipp Slusallek 2026-03-11 19:55:14 UTC
Created attachment 190590 [details]
The old file
Comment 10 Philipp Slusallek 2026-03-11 19:56:13 UTC
Created attachment 190591 [details]
The new kwinoutputconfig.json file after removal and reboot
Comment 11 Philipp Slusallek 2026-03-11 20:01:49 UTC
Thanks a lot, this did the trick! I have included the old and new files as attachments in case this might be useful. And indeed the old one had the 4kx1080 listed.

Now the question is, how on earth did it come up with this. And maybe more important, can we avoid this happening again to me or others. Can such cases be detected and ignored?

Does sddm have a similar file that I should delete? Because I see the same problem there under Kubuntu 26.04.
Comment 12 Philipp Slusallek 2026-03-12 07:29:18 UTC
Just got the change to test it and the problem is also gone on Kubuntu 26.04 (shared home dir).
Comment 13 Zamundaaa 2026-03-16 15:17:34 UTC
> Now the question is, how on earth did it come up with this. And maybe more important, can we avoid this happening again to me or others.
There was a bug in the default mode selection, but it was already fixed and backported to 6.5.6 and 6.6.0. Presumably your system simply chose and saved the default mode before it was fixed.

> Can such cases be detected and ignored?
We unfortunately don't have a flag for whether or not the mode was selected automatically or by you. I (intentionally) set up the output configuration stuff so that we never change your settings automatically, because output settings are a bit dangerous.

In the long run, our goal is to automatically sync the user display settings to plasma login, so it will be papered over then.

> Does sddm have a similar file that I should delete? Because I see the same problem there under Kubuntu 26.04.
Yeah, it should be at /var/lib/sddm/.config/kwinoutputconfig.json
Comment 14 Philipp Slusallek 2026-03-16 18:44:24 UTC
Thanks a lot for the support. It s much appreciated!