Bug 353040 - After upgrading to frameworks 5.14, KDE ignores xrandr DPI setting
Summary: After upgrading to frameworks 5.14, KDE ignores xrandr DPI setting
Status: RESOLVED NOT A BUG
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-22 13:49 UTC by Jin Liu
Modified: 2015-09-23 09:44 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jin Liu 2015-09-22 13:49:20 UTC
I run "xrandr --dpi 168" in .xinitrc, before /usr/bin/startkde. In frameworks <=5.13, this always works. But since I upgraded to 5.14, all KDE applications and Plasma shell no longer respect this setting, and all UI elements are much smaller than before.

If I run "xrandr --dpi 168" again after KDE startup, then any newly launched KDE application would restore to the old behavior -- correctly sized UI. (The only exception is the "Screen Scaling" dialog in systemsettings, where the UI example is still small.) But UI in already running applications like Plasma and kwin decorations would remain small.

Reproducible: Always

Steps to Reproduce:
1. Use a Hi-DPI screen.
2. Run "xrandr --dpi 168" in .xinitrc, before /usr/bin/startkde.
3. Reboot and start KDE.
4. All UI is too small.
5. Run "xrandr --dpi 168" in konsole.
6. Launch Dolphin.
7. UI in Dolphin is larger, where other applications remain small.


Expected Results:  
UI size should be normal when KDE starts.

My .xinitrc:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

export DESKTOP_SESSION="plasma"

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
xrandr --dpi 168
xset -b
eval `ssh-agent` 
xbindkeys

exec /usr/bin/startkde
Comment 1 Jin Liu 2015-09-22 14:30:51 UTC
The problem is not caused by frameworks upgrades, but by systemd upgrading to 226. And it affects all applications, not limited to KDE. Sorry, should report to systemd developers.