Bug 418229 - Moving window between laptop screen and external monitor changes font sizes in strange ways
Summary: Moving window between laptop screen and external monitor changes font sizes ...
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kwin
Classification: Plasma
Component: xrandr (show other bugs)
Version: 5.18.1
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-26 17:11 UTC by Achim Bohnet
Modified: 2021-12-04 10:33 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
xrandr --verbose (33.06 KB, text/plain)
2020-02-26 17:11 UTC, Achim Bohnet
Details
dolpin on laptop display (233.86 KB, image/png)
2020-02-26 17:12 UTC, Achim Bohnet
Details
same dolphin on external monitor (275.47 KB, image/png)
2020-02-26 17:12 UTC, Achim Bohnet
Details
dolphin on external monitor with 'softlink' scrolled out off view and back (231.72 KB, image/png)
2020-02-26 17:13 UTC, Achim Bohnet
Details
Stable Fonts with same HW config at home (32.70 KB, text/x-log)
2020-02-28 16:39 UTC, Achim Bohnet
Details
kmail redraw problem after unpluggin the external monitor (598.18 KB, image/png)
2020-03-06 11:17 UTC, Achim Bohnet
Details
xrandr after booting without dock (2.86 KB, text/plain)
2020-03-06 16:12 UTC, Achim Bohnet
Details
xrandr after booting with USB-C dock (2.86 KB, text/plain)
2020-03-06 16:13 UTC, Achim Bohnet
Details
xrandr after booting with dock and unplug & plugin the dock (3.04 KB, text/plain)
2020-03-06 16:14 UTC, Achim Bohnet
Details
xrandr after another boot with USB-C dock connected (33.04 KB, text/plain)
2020-03-06 16:18 UTC, Achim Bohnet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Achim Bohnet 2020-02-26 17:11:34 UTC
Created attachment 126434 [details]
xrandr --verbose

SUMMARY
setup: Lenovo X1 Carbon laptop with external 4K Monitor connected with USB-C Dock
(see xrandr.out)

On the laptop display dolphin look as shown in dolphin-on-laptop-screen.png

STEPS TO REPRODUCE & OBSERVED RESULTS in screenshots
1. On the laptop display dolphin look as shown in dolphin-on-laptop-screen.png
2. Moving dolping window to external monitor, the fonts changes to dolphin-on-external-4k-monitor.png
3. On external monitor when I scroll the softlink 'foobar' out of view and back to view, the fonts used
to display the link name is suddenly much bigger (see dolphin-on-external-4k-monitor_out_and_in.png ). Only softlinks fonts is bigger.  file and dirs don't change font size)
4. When I move dolphin with the big font for the softlink back to the laptop screen, the fonts don't change, but when I what to make a screenshot and click [take screenshot] button, the softlink font changes
to the same smaller size used for files and dir display. (so no screenshot here :-( )


EXPECTED RESULT
The used fonts for 1 - 4 are always the same

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.18
KDE Plasma Version: 5.18.2
KDE Frameworks Version: 5.67.0
Qt Version: 5.14.1
Kernel Version: 5.3.0-40-generic
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-8565U CPU @ 1.80GHz
Memory: 15.4 GiB of RAM


ADDITIONAL INFORMATION
While the font distortion is different, maybe https://bugs.kde.org/show_bug.cgi?id=418227 is related?
Comment 1 Achim Bohnet 2020-02-26 17:12:16 UTC
Created attachment 126435 [details]
dolpin on laptop display
Comment 2 Achim Bohnet 2020-02-26 17:12:49 UTC
Created attachment 126436 [details]
same dolphin on external monitor
Comment 3 Achim Bohnet 2020-02-26 17:13:28 UTC
Created attachment 126437 [details]
dolphin on external monitor with 'softlink' scrolled out off view and back
Comment 4 Achim Bohnet 2020-02-26 17:15:13 UTC
Forgot to mention that the display scaling is 150%
Comment 5 Achim Bohnet 2020-02-26 17:30:50 UTC
I see similar font problems (other elements with text are fine) in e.g.

* kate: (texteditor font is smaller in external monitor

* konganizer: Treeview or calendars and folder in lower left uses too small font on external monitor)

But Apps like firefox, chrome and telegram keep the fonts size when moving from
laptop to external monitor
Comment 6 Achim Bohnet 2020-02-28 16:39:20 UTC
Created attachment 126483 [details]
Stable Fonts with same HW config at home
Comment 7 Achim Bohnet 2020-02-28 16:39:50 UTC
At home I have the same docking station and 4k Monitor as at work. But here the apps don't change the fonts size when moving back and forth from laptop to external monitor.

differences in setup:
* Today was a linux firmware deb package update
* at work I use a DP->DP cable to connect the monitor. At work it's a DP->miniDP cable.

I've attached xrandr output.

When back at work next monday I'll check if the problem is there gone too.
Comment 8 Achim Bohnet 2020-03-06 10:50:25 UTC
Now one week later: same problem again @home as at @work: Fonts change size in strange ways on external monitor.
Comment 9 Achim Bohnet 2020-03-06 11:16:58 UTC
After several plug in/out of the USB-C Docking station things get sort of 'cracy'
with KDE Apps.  Non-KDE Apps like firefox, telegram, riot have no fonts problem and look fine.

But KDE Apps:

  OSD is now suddenly much bigger:
   * Laptop wider than the monitor width
   * externl 4k monitor: ~ 80 % of width

Second:

 * unplugin USB-C dock the moved back konsole window show it's content only
   in the upper left 

 * Redraw problems in kmail see attachment
Comment 10 Achim Bohnet 2020-03-06 11:17:48 UTC
Created attachment 126623 [details]
kmail redraw problem after unpluggin the external monitor
Comment 11 Achim Bohnet 2020-03-06 16:11:17 UTC
I can now reprocude the problem.

 * Booting with USB-C dock connected -> good.  No weird fonts size changes. See Attachments xrandr.boot-with-dock

 * Booting without USB-C dock connected or unplug & plugin ->  Bad. Weird fonts size changes. See attachments xrandr.boot-without-dock*

Looking at the differences in xrandr shows, that for the working cases the xrandr output is DP-n.
for the weird fonts size change the output DP-n-m.

So the 'cascading'(?) of DP-n-m seems to cause problems:

(0)ach@it01lt:~$ diff -u xrandr.boot-with-dock2.lis xrandr.boot-with-dockunplug_plug.lis
--- xrandr.boot-with-dock2.lis  2020-03-06 13:57:20.315337354 +0100
+++ xrandr.boot-with-dockunplug_plug.lis        2020-03-06 13:52:12.876124811 +0100
@@ -57,7 +57,10 @@
 HDMI-1 disconnected (normal left inverted right x axis y axis)
 DP-2 disconnected (normal left inverted right x axis y axis)
 DP-3 disconnected (normal left inverted right x axis y axis)
-DP-4 connected 3840x2160+2560+0 (normal left inverted right x axis y axis) 609mm x 349mm
+DP-4 disconnected (normal left inverted right x axis y axis)
+DP-5 disconnected (normal left inverted right x axis y axis)
+DP-2-1 disconnected (normal left inverted right x axis y axis)
+DP-2-2 connected 3840x2160+2560+0 (normal left inverted right x axis y axis) 609mm x 349mm
    3840x2160     60.00*+  60.00    29.98  
    2560x1440     59.95  
    2048x1280     59.99  
@@ -75,4 +78,4 @@
    720x480       60.00    59.94  
    640x480       75.00    60.00    59.94  
    720x400       70.08  
-DP-5 disconnected (normal left inverted right x axis y axis)
+DP-6 disconnected (normal left inverted right x axis y axis)
(1)ach@it01lt:~$ diff -u xrandr.boot-with-dock2.lis xrandr.boot-with-dockunplug_plug.lis
Comment 12 Achim Bohnet 2020-03-06 16:12:50 UTC
Created attachment 126627 [details]
xrandr after booting without dock
Comment 13 Achim Bohnet 2020-03-06 16:13:52 UTC
Created attachment 126628 [details]
xrandr after booting with USB-C dock
Comment 14 Achim Bohnet 2020-03-06 16:14:47 UTC
Created attachment 126629 [details]
xrandr after booting with dock and unplug & plugin the dock
Comment 15 Achim Bohnet 2020-03-06 16:18:03 UTC
Created attachment 126630 [details]
xrandr after another boot with USB-C dock connected
Comment 16 Vlad Zahorodnii 2020-03-10 12:29:19 UTC
KWin has nothing to do with font rendering. I recommend to logout, purge kscreen settings (~/.local/share/kscreen, iirc), login, and reconfigure scaling settings. If that doesn't help, report this bug to plasmashell devs or Qt devs.
Comment 17 David Edmundson 2020-03-10 17:11:16 UTC
Please I close output of "env"
Comment 18 Achim Bohnet 2020-04-13 15:38:33 UTC
I did setup a new user in kde neon.  Same effects with all-defaults + 150% scaling  :-(

Some weeks ago I could generate a good and a bad setup.

 * good: *all* output had names like NAME-<number>.  This was the case after boot.

 * bad: USB-C dock outputs have names like NAME-<number>-<number>.  This was the case after unplug and replug the UCS-C from the docking station.

Unfortunately after a firmware upgrade and/or kernel upgrade I now *always* get NAME-<number>-<number> output names.  So I always have weird cracy font settings and icon behaviour with my UBC-C docking station.
Comment 19 Achim Bohnet 2020-04-13 16:05:55 UTC
When I plugin the external monitor directly into the laptop, the output is
HDMI-1  (with USB-C dock it's  DP-2-2) and dragging and dropping windows between
laptop and external monitor works as one expects.  I.e. fonts and icon sizes *don't* change on drop on the other monitor.
Comment 20 kde.org 2021-11-06 12:15:04 UTC
This bug report is quite old. Can you please confirm, that the issue still persists with KDE 5.23?
Comment 21 Bug Janitor Service 2021-11-21 04:40:31 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 22 Achim Bohnet 2021-12-04 10:33:05 UTC
Yes and no. 

Using my laptop 2560x1440 with my 4k Monitor is not usable.   For whatever reason Plasma has a second size of 2194x1234  that is used when positioning the 4k Monitor relativ to the laptop screen.  

While playing around to find a workaround, I've seen only kmail showing the weird font resizing.   but I've given up frustrated before I could reproduce it. 

I