Bug 499910 - kscreen-doctor positioning is incorrect using display scaling above 100% on primary display
Summary: kscreen-doctor positioning is incorrect using display scaling above 100% on p...
Status: REPORTED
Alias: None
Product: KScreen
Classification: Plasma
Component: kscreen-doctor (other bugs)
Version First Reported In: 6.3.0
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords: multiscreen, regression
Depends on:
Blocks:
 
Reported: 2025-02-12 18:35 UTC by Makoto
Modified: 2025-03-05 21:06 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Result of kscreen-doctor command with 125% scaling (40.56 KB, image/jpeg)
2025-02-12 18:35 UTC, Makoto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Makoto 2025-02-12 18:35:45 UTC
Created attachment 178219 [details]
Result of kscreen-doctor command with 125% scaling

SUMMARY

After KDE Plasma 6.3 update on Fedora 41 KDE Spin:
kscreen-doctor behavior changed while setting multi monitor position, setting a display scaling (ex. 125%) on the primary screen, seems to alter the positioning of the secondary one, no problem with 100% scaling though.


STEPS TO REPRODUCE

Using the following kscreen-doctor command:

Primary monitor on DP-1
Secondary monitor on DP-3

kscreen-doctor output.DP-1.priority.1 output.DP-1.position.0,0 output.DP-3.priority.2 output.DP-3.position.3440,180


OBSERVED RESULT

No problem at 100% scaling on DP-1 monitor, the two monitors are contiguous.
At any scaling above 100%: This produces a gap between the two monitors, see attached screenshot.

EXPECTED RESULT

Should place the 2nd monitor on DP-3 right next to the 1st one on DP-1
No positioning discrepancy regardless of scaling used on the monitor.

SOFTWARE/OS VERSIONS

Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Kernel Version: 6.12.11-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Worked perfectly fine on KDE Plasma 6.2.x
Comment 1 Makoto 2025-02-12 18:38:09 UTC
Additional information:

Primary monitor on DP-1 - 3440x1440 - Scaling 125%
Secondary monitor on DP-3  - 1920x1080  - Scaling 100%
Comment 2 TraceyC 2025-02-25 19:13:23 UTC
I'm wondering if the screens / kscreen-doctor was changed and something differently than in 6.2x

Can I ask you for a bit of information?
Set the screens up the way they should be in Display Configuration
Then run this command:

kscreen-doctor -o | grep -E "Output|Geometry|Scale"

Then paste the output in this report. Thanks!

I tested this with Plasma 6.3.1. Using kscreen-doctor to set the primary and secondary display positions, using their current positions, worked. I didn't see a gap in Display Configuration
Comment 3 Makoto 2025-03-05 17:52:11 UTC
I retested it a reproduced it right away.
Here's the result of the command you asked, with the screens setup as they should be:

kscreen-doctor -o | grep -E "Output|Geometry|Scale"
Output: 1 DP-1
        Geometry: 0,0 2752x1152
        Scale: 1.25
Output: 2 DP-3
        Geometry: 2752,36 1920x1080
        Scale: 1
Output: 3 HDMI-A-1
        Geometry: 0,0 2560x1440
        Scale: 1


Out of curiosity, there's the result with the gap produced by the kscreen-doctor command:

kscreen-doctor -o | grep -E "Output|Geometry|Scale"
Output: 1 DP-1
        Geometry: 0,0 2752x1152
        Scale: 1.25
Output: 2 DP-3
        Geometry: 3440,180 1920x1080
        Scale: 1
Output: 3 HDMI-A-1
        Geometry: 0,0 2560x1440
        Scale: 1

And the same with 100% scaling on every monitors (no gap produced in that case):

kscreen-doctor -o | grep -E "Output|Geometry|Scale"
Output: 1 DP-1
        Geometry: 0,0 3440x1440
        Scale: 1
Output: 2 DP-3
        Geometry: 3440,180 1920x1080
        Scale: 1
Output: 3 HDMI-A-1
        Geometry: 0,0 2560x1440
        Scale: 1

I think something is off in the reported resolution of the DP-1 monitor that is 3440x1440 native and altered by setting more than 100% scaling.
Comment 4 TraceyC 2025-03-05 21:06:41 UTC
Thanks for the information