Bug 448398 - Ability to switch between unsupported resolutions like on X11 / Windows
Summary: Ability to switch between unsupported resolutions like on X11 / Windows
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: platform-drm (show other bugs)
Version: 5.23.5
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 427586 444788 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-01-13 21:10 UTC by Caio Fratelli
Modified: 2022-07-13 21:22 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.25.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caio Fratelli 2022-01-13 21:10:57 UTC
SUMMARY
Today on wayland it is not possible to switch between resolutions that the display's manufacturer didn't report to the operating system (see bug #448091) however there are some setups of which this feature would be VERY interesting, like in the scenario of some XPS laptops by dell (including my model 9560) where the display reports only 3840x2160 as the resolution and all we can change is the scale.
However, as the iGPU for this machine is an Intel UHD Graphics 630 (same as 15" inch macbook pros of 2017 and 2018), they seem not capable enough to run smooth animations at that resolution. In macOS they "fixed" this by restricting the eDP resolution to 2,880x1,800, and only having vendor specific resolutions on external displays (which uses the dGPU connection instead of iGPU). 
Windows "fixed" this the same way X11 did, by creating dummy resolutions you can choose from. 
The only Desktop Protocol which seems not to have any fixes regarding this issue is Linux's Wayland. Today we can use X11 and be restricted to a lot of things, including poor touchscreen support and very bad implementations of HiDPI, but if we move on to Wayland with KDE, we are going to face a HUGE slowdown on some iGPUs like mine (you see, my laptop is not THAT old).
An implementation of dummy screen resolutions that could be triggered by a simple checkbox would totally fix it.
I know it will require some effort from you guys but I think it would definitely worth it.

STEPS TO REPRODUCE
1. Open System Settings
2. Open Display Configurations
3. Try to switch between resolutions from the Drop-Down menu

OBSERVED RESULT
There are no other options on the drop-down menu

EXPECTED RESULT
It should have some options to the drop-down menu (at least resolutions that would be considered HiDPI)

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 21.10
(available in About System)
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Installed via recommended Kubuntu backports.
Comment 1 Zamundaaa 2022-01-14 12:21:37 UTC
Only the modes that the display advertises are 'guaranteed' to work but as long as we don't use the generated modes by default I guess it would be fine - KScreen would automatically revert to the working resolution if needed.
We just need to use libxcv to generate the additional modes & do some bandwidth estimations for whether or not a given resolution + refresh rate could work with a reasonable likelyhood. Should be doable to include it in 5.25
Comment 2 Nate Graham 2022-02-14 15:07:32 UTC
*** Bug 444788 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2022-02-14 15:07:38 UTC
*** Bug 427586 has been marked as a duplicate of this bug. ***
Comment 4 Zamundaaa 2022-04-23 21:41:28 UTC
Git commit 9ed87a4e23dea212dadd86d4463e7fdfe6aafc84 by Xaver Hugl.
Committed on 23/04/2022 at 21:29.
Pushed by zamundaaa into branch 'master'.

backends/drm: support common display modes

M  +1    -1    src/backends/drm/CMakeLists.txt
M  +69   -0    src/backends/drm/drm_object_connector.cpp
M  +3    -0    src/backends/drm/drm_object_connector.h

https://invent.kde.org/plasma/kwin/commit/9ed87a4e23dea212dadd86d4463e7fdfe6aafc84
Comment 5 Sebastian Turzański 2022-04-29 07:16:09 UTC
Hi,
thanks a lot for this fix, 
does it mean that 5.25.1 is the version we will see the fix in?
Comment 6 Nate Graham 2022-04-29 13:18:29 UTC
As the "Version Fixed In:" field says, it'll be in Plasma 5.25. :)
Comment 7 Sebastian Turzański 2022-07-13 18:22:52 UTC
Are you sure this one is fixed? 
I'm using 5.25.2 , I can see all resolutions in the dropdown but Apply does nothing - not even screen blink. 
I tried the resolutions that work in X11
Comment 8 Zamundaaa 2022-07-13 19:57:11 UTC
Yes. What you're seeing is a bug that's fixed in 5.25.3