Bug 475135 - New external monitor has bad initial resolution/mode
Summary: New external monitor has bad initial resolution/mode
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (other bugs)
Version First Reported In: master
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: multiscreen, qt6, wayland-only
Depends on:
Blocks:
 
Reported: 2023-10-02 15:31 UTC by Nicolas Fella
Modified: 2024-01-24 21:51 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Fella 2023-10-02 15:31:08 UTC
STEPS TO REPRODUCE
1. Clear kscreen config
2. Plug in external monitor via HDMI

OBSERVED RESULT
Monitor works, but it's using 1024x768 resolution. This is not only way below what the monitor is capable (3840x2160) but also is 4:3 instead of the monitor's native 16:9. This results in a very poor and distorted image. 

EXPECTED RESULT
An appropriate resolution is chosen, i.e. the highest available or at least one that matches the monitor's aspect ratio

SOFTWARE/OS VERSIONS
KDE Plasma Version: master, kwin fdb75aeec80e8cad270f594b8424590d23b83f54
KDE Frameworks Version: master
Qt Version: 6.6

ADDITIONAL INFORMATION
Follow-up from https://bugs.kde.org/show_bug.cgi?id=474915
Comment 1 Zamundaaa 2023-10-04 18:08:29 UTC
Does this also happen if you disable KScreen? Because I ran your modelist through the algorithm used in KWin and the 2560x1440@59.95 mode gets chosen.
Comment 2 Nicolas Fella 2023-10-04 18:18:57 UTC
Same thing after disabling the kscreen kded module
Comment 3 Nate Graham 2023-12-15 05:34:04 UTC
Are you still able to reproduce this? I haven't been able to myself.
Comment 4 Zamundaaa 2024-01-24 21:35:25 UTC
ping
Comment 5 Nicolas Fella 2024-01-24 21:45:15 UTC
It seems to work as expected now. The highest resolution is picked