Bug 461427 - Native Wayland apps appear blurry after switching off and on a display with scaling enabled
Summary: Native Wayland apps appear blurry after switching off and on a display with s...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.26.2
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-04 15:38 UTC by someniatko
Modified: 2023-07-02 03:45 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
blurry-falkon.png (454.43 KB, image/png)
2023-03-15 12:58 UTC, Andreas Sturmlechner
Details
blurry-kmail.png (888.47 KB, image/png)
2023-03-15 15:00 UTC, Andreas Sturmlechner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description someniatko 2022-11-04 15:38:44 UTC
SUMMARY

After power-cycling my monitor, Wayland-native apps are blurry (rescaled from 100% up to 200% by simple stretch), and X11-compatible apps are reset to 100% scaling.

STEPS TO REPRODUCE
1. Log in using Wayland session.
2. If not yet, enable display scaling in KDE Settings: 200% in my case (I have a single 3840x2160 screen), then re-login.
3. Open a few Wayland-native apps, e.g. Konsole, Doplhin, Settings etc.
4. Turn off your display. Then turn it back on.

OBSERVED RESULT
Native Wayland apps are be blurry, and XWayland-ed apps reset their scaling to 100% instead of 200%.

EXPECTED RESULT
Nothing should change about the scaling.

SOFTWARE/OS VERSIONS
Linux: 5.15.76-1-MANJARO 64 bit
KDE Plasma Version:  5.26.2
KDE Frameworks Version: 5.99.0
Qt Version: 5.16.0

ADDITIONAL INFORMATION

AMD RX 5600XT
Using Display Port 1.4 to connect the LG-24UD58 display.
Comment 1 Nicolas Fella 2022-11-08 00:34:54 UTC
Have you seen this with a Wayland-native app that isn't using Qt? Qt in particular seems to have problems when the scale factor changes, which might explain this
Comment 2 Be 2022-11-18 03:23:54 UTC
I am also running into this issue on Fedora. It first started occurring a few weeks ago on Fedora 36 when I installed Plasma 5.26 from Fedora's updates-testing repo. I was hoping it would be fixed when updating to Fedora 37, but alas, it is still happening. This only happens with Qt applications; Firefox, Thunderbird, Electron (Signal Desktop), and GTK (GNOME Calculator) are unaffected. I have a 3840 x 2160 screen that I use with my desktop. My laptop also has a 3840 x 2160 screen but is unaffected, so I suspect there is some setting which is contributing to this.
Comment 3 Andreas Sturmlechner 2023-03-15 12:56:36 UTC
This bug comes closest to what I've just experienced after a monitor power cycle. Falkon, which usually crashes when I do that, instead is rendering fonts rather blurry all of a sudden, while dolphin, konversation, kmail (all had been running already) and systemsettings (new instance after monitor power-on) are fine.

150% scaling in my case.

Operating System: Gentoo 2.13
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.1.11-gentoo (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 3900X 12-Core Processor
Memory: 62,7 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Product Name: X570 Phantom Gaming-ITX/TB3
Comment 4 Andreas Sturmlechner 2023-03-15 12:58:18 UTC
Created attachment 157303 [details]
blurry-falkon.png

here's a screenshot of it. Falkon went back to normal after restart.
Comment 5 Andreas Sturmlechner 2023-03-15 15:00:03 UTC
Created attachment 157308 [details]
blurry-kmail.png

After a lot of power cycles, the same now happened to kmail. Everything below the title bar is blurry.
Comment 6 Iyán Méndez Veiga 2023-06-01 06:03:14 UTC
I can replicate this with a AMD GPU but not on my laptop with integrated Intel GPU. And it seems like all other reports also have AMD GPUs.
Comment 7 David Edmundson 2023-06-02 09:14:03 UTC
wayland clients being blurry is a client bug not a kwin bug. 
Qt 6.5 should fix things a lot there, we did some big fixes, but we need the clients to upgrade.

Can you clarify what the xwayland issue is? Can you attach output of xrandr -q along with your monitor resolution and expected scale.
Comment 8 Nate Graham 2023-06-02 17:27:14 UTC
FWIW this is fixed for me in Plasma 6 with all Qt apps I use, since they've been ported.
Comment 9 Bug Janitor Service 2023-06-17 03:45:02 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Bug Janitor Service 2023-07-02 03:45:07 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!