Description of problem: When plasma5 runs in a high dpi screen/monitor, and the dpi is set at the right values (e.g. either using DisplaySize or forcing the -dpi in other places, such as ServerFlags of sddm or xrandr), for instance for a 4K monitor, i.e. at resolution of 3840x2160, the icons aren't scaled proportionally but remains super-tiny, and thus almost unreadable. The higher is the resolution, the smaller are the icons. The result is shown in the two screenshots in attach (they are scaled for convenience), as you can see the icons of the Plasma's "System Settings" are almost unreadable, while instead the text scales proportionally. To reproduce, try to force the dpi to the right size, and increase the resolution. Apparently Plasma5 supports high dpi screens, but actually, while it scales proportionally the text, it doesn't proportionally scale all the icons, and the widgets (e.g. scrollbars, etc.). The problems seems in the line: QT_AUTO_SCREEN_SCALE_FACTOR=0 of the script /usr/bin/startkde, which forces QT_AUTO_SCREEN_SCALE_FACTOR to 0, and thus "disables the automatic scaling based on the pixel density of the monitor for QT applications". IMHO such value shouldn't be forced, but left to some other floating configuration (which might decide or not to force QT_AUTO_SCREEN_SCALE_FACTOR=1). Just commenting that line would fix the problem. I attach also the patch.
Created attachment 8586 [details] screenshot of plasma system settings without the QT_AUTO_SCREEN_SCALE_FACTOR=0
Created attachment 8587 [details] screenshot of plasma system settings with the QT_AUTO_SCREEN_SCALE_FACTOR=0
Created attachment 8588 [details] Patch to avoid forcing QT_AUTO_SCREEN_SCALE_FACTOR=0 in startkde
can you provide the real patch ? not the one against the spec file ;)
CC: (none) => mageia
Yep, sorry, but indeed both are included in the same .diff file. The diff is for both SPEC and SOURCES to provide the new patch. It's just a one line patch and is in the bottom of the .diff file. Let me know if you can extract, otherwise I'll reupload.
CC: (none) => marja11Assignee: bugsquad => kde
Created attachment 8625 [details] external setting of QT_AUTO_SCREEN_SCALE_FACTOR=0 Here is a better patch: the setting of QT_AUTO_SCREEN_SCALE_FACTOR has been moved externally to the startkde script, in this way it can be configurable. The default value is left unchanged.
Created attachment 8626 [details] patch for the SPEC file Here is the patch of the spec file with the config file in /etc/sysconfig/plasmaqtsettings.
Attachment 8588 is obsolete: 0 => 1
if this is a config file this is not the good place, this need to go to the plasma config rpm and in ( http://gitweb.mageia.org/software/desktop/plasma5/config/ )
Great. I'll add the entry for that in /etc/xdg/plasma-workspace/env/qtplasmasettings.sh
Closing.
Status: NEW => RESOLVEDResolution: (none) => WONTFIX
(In reply to Giuseppe Ghibò from comment #10) > Closing. When closing, please say why.
Ok, closing because there is no need to patch startkde anymore. Adding a simple config file /etc/xdg/plasma-workspace/env/qtplasmasettings.sh containing just the line: export QT_AUTO_SCREEN_SCALE_FACTOR=1 or unset QT_AUTO_SCREEN_SCALE_FACTOR would achieve the same effect as patching startkde not setting it, because it would override the QT_AUTO_SCREEN_SCALE_FACTOR=0 in startkde, thus Plasma applications in HiDPI (if dpi is correctly set) will scale correctly.