#1064461 gnome-settings-daemon: Xft.dpi not set correctly for 4K monitor at 200% scale

Package:
gnome-settings-daemon
Source:
gnome-settings-daemon
Description:
daemon handling the GNOME session settings
Submitter:
Daniel Thompson
Date:
2024-02-29 10:57:09 UTC
Severity:
normal
#1064461#5
Date:
2024-02-22 14:21:38 UTC
From:
To:
Dear Maintainer,

After a relatively routine `apt upgrade` on Debian Trixie I had problems with
all my X11 apps failing to scale correctly.

I'm running gnome-shell/wayland with a 4K monitor at 200% scale. Wayland apps
scale fine but X11 apps (chromium, gvim, etc) and their window decorations are
drawn at 100% scale instead. This appears to be a problem setting up the DPI
configuration for Xwayland.

A simple workaround for most apps is to manually set Xft.dpi:
~~~sh
echo Xft.dpi: 192 | xrdb -merge -
~~~

This will cause X11 application to scale themselves correctly but window
decorations and (some) mouse cursors remain at 100%. I'm not currently aware of
any workaround that will correctly handle the window decorations.

Why is this filed against gnome-settings-daemon?

I reviewed /var/log/apt/history.log carefully and gnome-settings-daemon was
pretty much teh only possibly culprit. I confirmed this by rolling back to
gnome-settings-daemon-45.1-1 and the problem is resolved (and is also why the
system info below shows 45.1-1).

I assume this is a version skew problem caused by gnome-settings-daemon
updating to GNOME 46 before other components and it is possible this problem
will self-correct as other components adopt GNOME 46. However I thought a bug
report would be useful to document the workaround (or rollback) needed for
Debian Trixie at present!


Daniel.

#1064461#10
Date:
2024-02-22 16:11:18 UTC
From:
To:
If you upgrade both gnome-settings-daemon and gsettings-desktop-schemas
to their versions from unstable, does that resolve this?

(Possibly the same bug as #1064438)

    smcv

#1064461#15
Date:
2024-02-29 10:25:19 UTC
From:
To:
It does... and given gnome-settings-daemon is no present in trixie
the bug should not longer be present in any Debian version.


Daniel.

#1064461#20
Date:
2024-02-29 10:27:33 UTC
From:
To:
s/no/not/
s/not/no/

Oops... and Cc:ing -done.


Daniel.

#1064461#25
Date:
2024-02-29 10:27:33 UTC
From:
To:
s/no/not/
s/not/no/

Oops... and Cc:ing -done.


Daniel.