Bug 447217 - [Nvidia] [Wayland] 4K Desktop Scaling Problems
Summary: [Nvidia] [Wayland] 4K Desktop Scaling Problems
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: egl (show other bugs)
Version: 5.23.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: usability, wayland
Depends on:
Blocks:
 
Reported: 2021-12-19 08:42 UTC by nekonexus
Modified: 2022-01-11 10:01 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 nekonexus 2021-12-19 08:42:51 UTC
SUMMARY

In Xorg, the screen can be scaled from 100%, at 4K, to 200% and this fixes scaling issues with everything being tiny; however, by default, the taskbar also becomes huge (and inadequately spaced) icons (for the icons-only task manager), makes all applications tiny, and the desktop grid gigantic...

One could re-scale it to 200% under Wayland, but now this causes everything that's now scaled to be blurry and the taskbar to become even more massive.
And trying to attempt to fix it by changing the compositor scaling method from "smooth" to "accurate" black-screens the system.


STEPS TO REPRODUCE
1. Start a Nvidia Wayland session on a 4K screen(with driver 470.86 and no specific environment variables set (I use a 49 inch TV)
2. Open the settings menu
3. Attempt to adjust the scale of the desktop and/or change the scaling method
(Try to do what an average user would to get the scaling of the system to behave with default components, and knowing little about Wayland.)

OBSERVED RESULT

Resolution scaling and contrast (respective to other UI elements such as the taskbar / task manager), applications, and the desktop are either unreasonably large or small and attempting to resolve it by normal means either makes it worse or straight-up black-screens Plasma.

EXPECTED RESULT

Resolution scaling, out of the box, should be predictable and manageable - both with how the taskbar behaves with this by default and how the settings menu attempts to assist the user in resolving extraneous scaling issues.

SOFTWARE/OS VERSIONS:
-------
OS: Arch Linux
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

I'm aware this is likely difficult considering that the driver is proprietary but, given that Nvidia is painfully difficult to contact and/or stay in communication with regarding their Linux driver, (in my experience - also reference their policies on how to report it to them):
https://us.download.nvidia.com/XFree86/Linux-x86_64/470.42.01/README/xwayland.html
https://us.download.nvidia.com/XFree86/Linux-x86_64/470.42.01/README/addtlresources.html

Nvidia expects us to report compositor-specific issues to the related projects instead of them...
(And they tend to not respond to my emails or send me to their developer forum where I either don't get answers or problems sort of get ignored for extended periods of time...)
Comment 1 Viorel-Cătălin Răpițeanu 2021-12-19 22:33:23 UTC
I can confirm that the same issue is occurring on my side as well.

Nvidia version: 495.46
EGL Wayland version: 1.1.9+r3+g582b2d3-1
OS: Arch Linux
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2
Comment 2 Vlad Zahorodnii 2022-01-11 10:01:42 UTC
> One could re-scale it to 200% under Wayland, but now this causes everything that's now scaled to be blurry and the taskbar to become even more massive.

If Xwayland apps become blurry, see bug 447467, we need changes in Xwayland to fix blurry X11 apps running on Wayland. Regarding scaling on wayland, the scale factor changes the logical size of output (it becomes smaller with higher scale factors) and apps try to maintain the same logical size, it will inevitably result in apps getting bigger with higher scale factors (otherwise text won't be readable with hidpi).

If there are other issues, please file new bug reports.