Bug 1091103

Summary: Release notes entry about automatic Qt HiDPI scaling
Product: [openSUSE] openSUSE Distribution Reporter: Fabian Vogt <fvogt>
Component: Release NotesAssignee: Stefan Knorr <sknorr>
Status: RESOLVED FIXED QA Contact: Ludwig Nussel <lnussel>
Severity: Normal    
Priority: P5 - None CC: fvogt, opensuse-kde-bugs
Version: Leap 15.0   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1089932    

Description Fabian Vogt 2018-04-26 15:10:05 UTC
Release notes entry for bsc#1089932 and related.

It's a rather complicated topic unfortunately, with no easy fix or workarounds available.

Qt supports automatic per-monitor scaling on X. It uses the DPI value of the virtual X screen to calculate the font size for the primary monitor, which is by default 96. It uses the relative DPI of the primary monitor to derive font DPI for all other monitors.

If the primary monitor is HiDPI (>= 144dpi), this means the font has effectively a 0.5x scale on all monitors.

Applications which request it (e.g. VLC) have too small text on all monitors.

Applications which do not request scaling (e.g. YaST) are not affected and use the same DPI value on all monitors.

Applications run on KDE Plasma or GNOME are not affected as Plasma disables automatic scaling by default and GNOME sets Xft.dpi according to the monitor scale.

Workarounds:

a) Use a non-HiDPI monitor as primary monitor. VLC is then scaled accordingly on the HiDPI monitor.
b) Set the font DPI (Xft.dpi) using the DE configuration or "echo Xft.dpi: <value> | xrdb -nocpp -merge" to equal the DPI of the primary monitor
c) Disable automatic scaling: export QT_AUTO_SCREEN_SCALE_FACTOR=0

(maybe this part into a separate section?)

HiDPI support in sddm:

To enable HiDPI support in sddm, edit /etc/sddm.conf and set:

[X11]
EnableHiDPI=true
ServerArguments=-nolisten tcp -dpi <dpi>

with <dpi> being 96*scale of the first monitor listed by "xrandr".
Comment 1 Stefan Knorr 2018-05-17 18:29:14 UTC
I have made a note for this -- could you check whether this works for you? I already made comments about some parts I was less sure about.

https://github.com/openSUSE/release-notes-openSUSE/pull/69
Comment 2 Stefan Knorr 2018-06-07 15:12:37 UTC
Fixed with gracious help from Fabian.
Comment 3 Swamp Workflow Management 2019-11-26 18:40:15 UTC
This is an autogenerated message for OBS integration:
This bug (1091103) was mentioned in
https://build.opensuse.org/request/show/751120 15.0 / release-notes-openSUSE
Comment 4 Swamp Workflow Management 2019-12-02 08:12:02 UTC
openSUSE-RU-2019:2609-1: An update that has 17 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1085628,1089061,1091103,1092953,1093098,1093398,1093982,1094834,1095111,1095597,1097811,1099004,1102191,1102987,1113694,1125487,1157816
CVE References: 
Sources used:
openSUSE Leap 15.0 (src):    release-notes-openSUSE-15.0.20191126-lp150.2.3.1
Comment 5 OBSbugzilla Bot 2021-02-11 17:20:14 UTC
This is an autogenerated message for OBS integration:
This bug (1091103) was mentioned in
https://build.opensuse.org/request/show/871260 15.1 / release-notes-openSUSE
Comment 6 Swamp Workflow Management 2021-02-13 14:15:16 UTC
openSUSE-RU-2021:0282-1: An update that has 15 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1085628,1091103,1092953,1093098,1093398,1094834,1095111,1100005,1116922,1125819,1126496,1129362,1129587,1161841,1182141
CVE References: 
JIRA References: 
Sources used:
openSUSE Leap 15.1 (src):    release-notes-openSUSE-15.1.20210211-lp151.2.3.1