https://bugs.kde.org/show_bug.cgi?id=481584

            Bug ID: 481584
           Summary: Allow stretched scaling (horizontal ratio ≠ vertical
                    ratio) on Wayland
    Classification: Plasma
           Product: KScreen
           Version: master
          Platform: Manjaro
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: common
          Assignee: kscreen-bugs-n...@kde.org
          Reporter: kevin.kof...@chello.at
  Target Milestone: ---

Under X11, I can scale outputs (at X11 level) ignoring the aspect ratio. This
is essential to unify outputs with different aspect ratios, for presentations
and meetings. E.g., my notebook has a 1280×800 (8:5/16:10) display. Using
xrandr --scale-from, I can stretch this to 16:9, or even to 1024×768 4:3 which
is then stretched to 16:9 by the TV. So I see the same thing on the notebook's
built-in screen and on the TV, slightly distorted, but workable. (Yes, it is
blurry and/or some pixels are lost. But it does not look that bad in practice.)

Today, I tried to do this trick with my PinePhone (using the convergence dock
and HDMI output). Plasma Mobile forces Wayland on me. So I look at the options
of kscreen-doctor, which is purportedly the replacement of xrandr, and well,
that can only apply one scale factor, not different ones for horizontal and
vertical. So I cannot get truly unified outputs. Instead, one or the other
display ends up truncated and impossible to work with. (Also because, on
mirrored configurations, Plasma insists on filling the larger display and
truncating the smaller one instead of filling the smaller one and letterboxing
the larger one as it should, independently of which of the displays I set to be
primary.)

Ever since the introduction of the XRandR X11 extension, the one way to get my
use case working has always been to talk to XRandR directly over the CLI and
bypass Plasma entirely. Even fractional scaling on X11 is a non-issue if you
just let X11 do the scaling, so that neither Plasma nor the applications even
realize that their display is being scaled, let alone that it is being
fractionally scaled with a different fraction horizontally and vertically. They
just see a framebuffer of the size they want, and everything is scaled by
X11/XRandR behind their back. So it just works (with the aforementioned
blurriness / lost pixels, true). Unfortunately, this is not an option in
Wayland because there is no X server that can do the scaling behind Plasma's
back under Wayland. So for Wayland, I need KScreen to handle that stretching
mode.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to