Bug 466506

Summary: With two different DPI monitors, to achieve the same font sizes as 5.26.*, I have to disable the GNOME/GTK Settings Synchronisations Service.
Product: [Plasma] kwin Reporter: Michael Hamilton <michael>
Component: xrandrAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nate
Priority: NOR    
Version: 5.27.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: kscreen-doctor -o

Description Michael Hamilton 2023-02-27 07:08:52 UTC
Created attachment 156776 [details]
kscreen-doctor -o

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

STEPS TO REPRODUCE
1. Connect two monitors, one 4k, one 1920x1200 (or similar)
2. Login to a desktop session
3. Inspect apparent font sizes in KDE and GTK application windows

OBSERVED RESULT

The KDE and GTK application fonts are tiny in comparison to 5.26.*

EXPECTED RESULT

The KDE and GTK application fonts are the same size as in 5.26.*

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.27.1
KDE Frameworks Version: 5.15.8
Kernel Version: 6.1.12-1-default (64 bit)
Graphics Platform: X11
OS: OpenSUSE Tumbleweed 20230225

ADDITIONAL INFORMATION

I went to KDE settings->Workspace->Startup and Shutdown->Background Services and disabled the KDE service, and now everything is back to normal.

This happens on both a standard configured login, and my personal login that differs in the following respects:

1) I disable kscreen2 to prevent hotplug actions from moving applications from one display to another.
2) I configure the multiple displays both using Settings Display and Monitor and also nvidia-config.
3) I have /etc/X11/xinit/xinitrc.d/50-xrandr.sh run 
    xrandr --output DP-4 --auto --output DP-0 --auto --scale 1.75x1.75 --right-of DP-4

Regardless of whether I use a standard login or my personal customised login, to achieve the same font sizes as 5.26.*, in 5.27.1 I have to disable the GNOME/GTK Settings Synchronisations Service.

I suspect the GNOME/GTK Settings Synchronisations Service, I suspect it is overwriting .config/xsettingsd/xsettingsd.conf.  At one stage I tried manually setting the DPI in xsettingsd.conf.  But when I login, the config file gets changed back to 98304, which means 96 dpi (98304/1024=96).
Comment 1 Nate Graham 2023-02-28 21:03:55 UTC
Can you try again with Plasma 5.27.2? We removed some unnecessary font size handling stuff in that bugfix release.
Comment 2 Michael Hamilton 2023-03-01 03:26:49 UTC
(In reply to Nate Graham from comment #1)
> Can you try again with Plasma 5.27.2? We removed some unnecessary font size
> handling stuff in that bugfix release.

Will do when 5.27.2 makes in to Tumbleweed.
Comment 3 Nate Graham 2023-03-01 15:47:47 UTC

*** This bug has been marked as a duplicate of bug 466463 ***