I have been using KDE Plasma for a while now, with the global scale set the default to 100%. Recently, probably following a reboot after an update, I noticed that all KDE programs (including the start menu, taskbar, switcher, settings and the decoration on windows etc.) as well as all Qt based programs suddenly got scaled up to what looks like 125%. Other programs, like Firefox, Electron apps remain unaffected.
Increasing the global scale to 125% and beyond seems to affect all programs correctly, it is only 100% that behaves strange.
I cannot add screenshot nor a link to a screenshot yet. Anyway qmmp is scaled and has strange white area (compared to a qmmp-skin in gwenview where it is 100%) .
After some investigation I found solution. Qmmp 2.1.2 is based on Qt 6.5 and important environment variable is QT_FONT_DPI. It works quite well but some values causes visual glitches.
$ QT_FONT_DPI=96 qmmp
starts Qmmp unscaled.
$ QT_FONT_DPI=120 qmmp
starts Qmmp scaled to 125% which causes glitches. Values 144 or 192 (i.e. 150% and 200%) works well.
I needed to run Qmmp from application launcher so I wrote a simple script:
#!/bin/sh
QT_FONT_DPI=118 qmmp "$1"
This script starts Qmmp scaled, without visual glitches and with argument so I can click *.flac in Double Commander and start music playing in Qmmp.
Currently, I’m having the exact opposite problem. my HiDPi monitor scale 150% getting randomly resetting to 100%, and I don’t see any pattern. Sometimes it’s resetting after just a fresh boot of the system. Some time after wake up from sleep, just time just resetting without any correlation. Everything was working fine, and I open any app like Firefox or dolphin and noticed that it’s so small text. To fix the scale, I need to logout and logback in. I don’t have to change the setting, as in setting it always shows 150%
My system information
Operating System: Manjaro Linux
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
Kernel Version: 6.6.16-2-MANJARO (64-bit)
Graphics Platform: X11
Processors: 12 × 12th Gen Intel® Core™ i5-12450H
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: TIMI
Product Name: Xiaomi NoteBook Pro