Bug 488422 - Gap in screens when attaching external monitor
Summary: Gap in screens when attaching external monitor
Status: RESOLVED DUPLICATE of bug 479952
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_kscreen (show other bugs)
Version: 6.0.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-12 16:31 UTC by Sergio
Modified: 2024-12-10 20:26 UTC (History)
3 users (show)

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


Attachments
Screenshot of monitor setup (2.14 MB, image/png)
2024-06-12 16:31 UTC, Sergio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergio 2024-06-12 16:31:30 UTC
Created attachment 170424 [details]
Screenshot of monitor setup

SUMMARY

When attaching an external HDMI monitor (in fact via USB-C) the monitor is often mis-recognized, so that its actual resolution is not read and the resolution is set to 1024x768 even if the monitor is a 4k one.

Even worse than that, when this happens, the internal and the external screen get auto-layed-out with a huge gap in between, so that it is not even possible to pass the mouse cursor from one to the other.

STEPS TO REPRODUCE
1.  Attach external monitor
2. Configure it for the appropriate 4k resolution
3. Detach external monitor
4. Reattach it

OBSERVED RESULT

Occasionally the external monitor resolution gets set up in a wrong way (1024x768) and a gap is created between the screens.

EXPECTED RESULT

The external monitor resoution should be set up correctly and, most important, in the layout there should be no gaps.

Operating System: Manjaro Linux 
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1
Kernel Version: 6.9.3-3-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 9 6900HS with Radeon Graphics
Memory: 30.6 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ROG Zephyrus G14 GA402RK_GA402RK
System Version: 1.0
Comment 1 Nate Graham 2024-06-12 18:50:08 UTC
The huge gap is caused by the monitor changing resolution unexpectedly, and that not being handled properly; this is Bug 479952.

The resolution changing is a separate bug which we do expect to be fixed in Plasma 6.1.

*** This bug has been marked as a duplicate of bug 479952 ***
Comment 2 Sergio 2024-06-13 06:25:42 UTC
What is a bit weird is that in my case the scale factor of the laptop internal monitor was not touched at all. It is at 150% and it has always been so. Hence the ultimate reason for my problem is most likely not bug 479952 even if the cure might end up being similar. Another reason for saying that the issue might be different is that I do not see it happening every time but only occasionally (I would say between 10 and 20% of the times when I attach the external monitor).

I have a suspect. I think this may happen because of the time when I attach the external monitor. If I attach it while my laptop is getting out of sleep, then, occasionally, the issue. If this is the case, then there might be some sort of race.
Comment 3 Nate Graham 2024-06-13 14:48:37 UTC
Changing the scale and resolution of one of the monitors will both have the same effect of introducing a gap in monitors; it's got the same underlying root cause.
Comment 4 Sergio 2024-06-13 16:13:51 UTC
> Changing the scale and resolution of one of the monitors will both have the same effect of introducing a gap in monitors; it's got the same underlying root cause.

Understandable, so I guess the gap issue will be fixed also for me with plasma 6.1 thanks!

What remains weird is why the 4k external monitor is "transiently" seen as a 1024x768 one at connection. If I later go to the display settings, I see that its resolutions are actually read out correctly.