Bug 513156 - Show resolution and rotation with device orientation taken into account
Summary: Show resolution and rotation with device orientation taken into account
Status: CONFIRMED
Alias: None
Product: KScreen
Classification: Plasma
Component: common (other bugs)
Version First Reported In: 6.5.3
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-10 05:12 UTC by howl
Modified: 2025-12-15 12:37 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 howl 2025-12-10 05:12:58 UTC
Just take a device with panel orientation quirks https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpu/drm/drm_panel_orientation_quirks.c?h=v6.18 and start KDE.

For example with a rightside_up device the display is rotated -90º.

If we rely in the accelerometer going to laptop mode the orientation is correct according to the accelerometer values we get and we are fine with auto-rotation but just when we return to laptop mode the display get rotated -90º.

If we set rotation manually the options are also bad, so -90º is indeed called normal.

Also the resolution values are swapped and we only get few possible resolutions to select and not all the ones we could use. For example a native resolution of 1920x1200 is shown as 1200x1920.

The resolution issue need to correct the resolutions swap, also filter out when a resolution is not one we should select, for example one that makes the panel to have black bands and to retrieve all the logical possible resolutions.

This issues were solved time ago in gnome, I don't know if a generic way to deal with this issues should be done because now we are going to have the same issues  to solve also with kmscon.

Forget to mention that I have done the orientation tests with Wayland but X11 should behave similar, perhaps the resolution values are not swapped, if I test I comment it but I think the effort only worth for Wayland.
Comment 1 howl 2025-12-10 06:33:59 UTC
I have tested X11, and there we just have the output -90º, but, we have all the resolutions listed the ones that should be with the x y swapped and the other ones that makes the black side bands and scaled down output also x and y swapped. About the resolution under wayland should appear all the normal ones and swap x and y.

For example 1920x1200 should be filtered out and 1200x1920 should be there but appear as 1920x1200, and same for all the other resolutions.