Bug 446508 - X11: xrandr uses scaled down size (/ by 1.75) to position extended screen instead of full size
Summary: X11: xrandr uses scaled down size (/ by 1.75) to position extended screen ins...
Status: RESOLVED DUPLICATE of bug 441417
Alias: None
Product: kwin
Classification: Plasma
Component: xrandr (show other bugs)
Version: 5.23.3
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-05 11:04 UTC by Achim Bohnet
Modified: 2021-12-07 07:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
confused display configuration (3.48 MB, image/jpeg)
2021-12-05 11:04 UTC, Achim Bohnet
Details
buggy setup (3.48 MB, image/jpeg)
2021-12-05 11:05 UTC, Achim Bohnet
Details
during early login only left side is drawn (3.64 MB, image/jpeg)
2021-12-05 11:06 UTC, Achim Bohnet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Achim Bohnet 2021-12-05 11:04:49 UTC
Created attachment 144230 [details]
confused display configuration

SUMMARY

My Laptop monitor 14"  2560x1440 looks best at 175% scale
My external 4k 27" monitor looks best at 150%

For whatever reason 'Display Configuration'  remembers/shows 3840/1.75=2194 x 2160/1.75=1234 in the visualisation of the displays as well as for the relative positioning (see attachment buggy-setup.jpg).  Tested with 'extend to the right' and with 'extend to the top'.   Resolution is properly displayed as 4k.

I've created a new user and logged in and everything works as expected.  System settings show 4k in the visual represtation and positioning external monitor to right and on the top  results in properly aligned displays.

STEPS TO REPRODUCE
1.  open 'Display Configuration'
2. *check that/when* the size in the visualition is not the real resolution
3. create an 'extend to the right' setup, 'Apply'  

OBSERVED RESULT
only 2194 instead of 3860 pixel of the external monitor are used  (see also attachment buggy-layout.jpg):

EXPECTED RESULT
full 4k size of the external monitor is used

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.23
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.3
Kernel Version: 5.14.0-1008-oem (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-8565U CPU @ 1.80GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620

ADDITIONAL INFORMATION

1) Xrandr output of buggy-layout:
 ✘ ach@it01lt  ~  xrandr | grep -C2 '^[a-Z]'
Screen 0: minimum 320 x 200, current 4754 x 2160, maximum 16384 x 16384
eDP-1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 309mm x 174mm
   2560x1440     60.00 +  59.99    59.99    59.96    59.95* 
   1920x1440     60.00  
--
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1 connected 3840x2160+2560+0 (normal left inverted right x axis y axis) 697mm x 392mm
   3840x2160     60.00*+  29.98  
   1920x2160     59.99  
--
   640x480       75.00    60.00    59.94  
   720x400       70.08  
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)

2) With only external 4k monitor: during early login, before plasma background is shown,  only the left 2194 pixels (estimate) instead of the full 3860 are draws.   When plasma started redraw displays the full 4k resolution
Comment 1 Achim Bohnet 2021-12-05 11:05:21 UTC
Created attachment 144231 [details]
buggy setup
Comment 2 Achim Bohnet 2021-12-05 11:06:03 UTC
Created attachment 144232 [details]
during early login only left side is drawn
Comment 3 Nate Graham 2021-12-07 03:25:10 UTC
Note that multi-display multi scale factor setups are explicitly unsupported on X11 and you will probably have better results with Wayland.

*** This bug has been marked as a duplicate of bug 441417 ***
Comment 4 Achim Bohnet 2021-12-07 07:46:04 UTC
Hi, Nate.  I would love to use Wayland and I try with every new major release of plasma. Unfortunately screen/window sharing in jitsi and zoom is not working in neon user 5.23.2.   So wayland is not usable for me yet :-(