You are not logged in.

#1 2020-01-18 01:43:19

damnbug
Member
Registered: 2012-09-18
Posts: 88

[WORKAROUND] Xfce keeps changing DPI

I am unable to automatically set DPI after login in via lightdm; something in Xfce (maybe xfsettingsd) always changes DPI to 96.

Manually setting dpi with xrandr (xrandr --dpi 92) or resetting default screen resolution (xrandr -s 1920x1080) corrects the DPI.

Is there a way to prevent Xfce from changing DPI to 96?

Current settings:

/etc/X11/xorg.conf.d/20-nvidia.conf

Option "UseEdidDpi" "False"
Option "DPI" "92 x 92"

/etc/lightdm/lightdm-gtk-greeter.conf

xft-dpi=92

Xfce settings > Appearance > Fonts: Custom DPI setting disabled

Last edited by damnbug (2020-01-20 07:30:13)

Offline

#2 2020-01-18 08:27:55

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: [WORKAROUND] Xfce keeps changing DPI

There's a section "5.3.1.2 Manual DPI Setting Caveat" in the Xorg wiki article, here:

https://wiki.archlinux.org/index.php/Xo … ing_Caveat

Maybe that's what's happening for you? If you currently don't have your own file for xrdb settings, LightDM will make xrdb load a file named "~/.Xresources" at login. That's where you can put the Xft.dpi setting. The file contents would look like this:

Xft.dpi: 96

Offline

#3 2020-01-18 18:28:28

TheSgtBilko
Member
Registered: 2013-08-13
Posts: 89

Re: [WORKAROUND] Xfce keeps changing DPI

Maybe try uncheck "Custom DPI" in XFCE Settings/Appearance/Fonts (or change DPI to what your needs)

Offline

#4 2020-01-19 08:08:47

damnbug
Member
Registered: 2012-09-18
Posts: 88

Re: [WORKAROUND] Xfce keeps changing DPI

The only thing that works so far is setting the xrandr command in Application Autostart.

Offline

Board footer

Powered by FluxBB