Fedora 29 HiDPI Resolution

102 views
Skip to first unread message

Daniil Travnikov

unread,
Feb 3, 2019, 12:28:13 PM2/3/19
to qubes-users
Could anyone tell me how to put the Xft.dpi on Fedora 29 only once? Because when I am creating AppVM it is always with another HiDPI option, less then his own Template. I mean changes working only on Template, but not in AppVM's.

Achim Patzner

unread,
Feb 3, 2019, 3:54:23 PM2/3/19
to qubes...@googlegroups.com
Am Sonntag, den 03.02.2019, 09:28 -0800 schrieb Daniil Travnikov:
Could anyone tell me how to put the Xft.dpi on Fedora 29 only once? Because when I am creating AppVM it is always with another HiDPI option, less then his own Template. I mean changes working only on Template, but not in AppVM's.

How are you trying to do it?


Achim

Message has been deleted

Daniil Travnikov

unread,
Mar 4, 2019, 1:25:12 PM3/4/19
to qubes-users
On Sunday, February 3, 2019 at 11:54:23 PM UTC+3, Achim Patzner wrote:
> How are you trying to do it?
>
> Achim

For example in Debian 9, Whonix WS and Whonix GW I am doing this:
"
echo Xft.dpi: 240 | xrdb -merge

set in /etc/X11/Xresources/x11-common (for Whonix in: /etc/X11/Xresources/x11-common)
Xft.dpi: 240
"

and it is affect not only Template, it works for all new AppVM's too.


But when I am trying to do the same for Fedora 29, it is works only for template, not for AppVM's.
Instructions from here: https://github.com/Qubes-Community/Contents/blob/master/docs/customization/dpi-scaling.md


Also for Fedora 29 I tried this:

1. sudo nano /etc/dconf/db/local.d/dpi

[org/gnome/desktop/interface]
scaling-factor=uint32 2
text-scaling-factor=0.75


2. gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "[{'Gdk/WindowScalingFactor', <2>}]"


3. gsettings set org.gnome.desktop.interface scaling-factor 2
gsettings set org.gnome.desktop.interface text-scaling-factor 0.75


Maybe someone solved this problem or I missing something?

Daniil Travnikov

unread,
Mar 5, 2019, 3:25:41 AM3/5/19
to qubes-users
Also on Fedora 29 Template I tried this command:

[user@fedora-29-clone-1 ~]$ echo Xft.dpi: 220 | xrdb -merge

and got this:

<stdin>:0: warning: Unknown encoding: C.UTF-8


All other command looks good for main Template, but without any effect for AppVM's based on Fedora.

Daniil Travnikov

unread,
Mar 5, 2019, 6:43:57 AM3/5/19
to qubes-users
Also I tried gnome-tweaks (https://apps.fedoraproject.org/packages/gnome-tweaks):
$ sudo dnf install gnome-tweaks

Chose 'Fonts' tab and changed 'Scaling Factor' on 2.70

Changes goes immediately. But still when I am creating new AppVm, it is without this changes. Even when in this AppVM I am starting the 'gnome-tweaks' looks as if nothing changed. But if I start Fedora 29 Template- here is all ok.

Daniel Allcock

unread,
Mar 5, 2019, 9:40:23 PM3/5/19
to qubes-users
On Tue, 5 Mar 2019 00:25:40 -0800 (PST)
Daniil Travnikov <load...@gmail.com> wrote:

> Also on Fedora 29 Template I tried this command:
>
> [user@fedora-29-clone-1 ~]$ echo Xft.dpi: 220 | xrdb -merge
>
> and got this:
>
> <stdin>:0: warning: Unknown encoding: C.UTF-8

I ran into this too, and as far as I can tell, it is a Fedora bug.
The extant locales can be found with locale -a
C.UTF-8 is not among them. So the default locale is installed! But
C.utf8 is. You can set permanently by running the following in your
template:

localectl set-locale LANG=C.utf8

Once you do this, xrdb will accept your command and you should be able
to get your hdpi in the template. (I think you are already aware
of the subtleties when gnome-settings-daemon is running.)

Most of the rest of the world seems to use "UTF-8" not utf8.
So I worried there might be some compatibility problems. But
nothing bad so far.

Daniel

Daniil Travnikov

unread,
Mar 6, 2019, 6:11:46 AM3/6/19
to qubes-users
On Wednesday, March 6, 2019 at 5:40:23 AM UTC+3, daniel wrote:
> I ran into this too, and as far as I can tell, it is a Fedora bug.
> The extant locales can be found with locale -a
> C.UTF-8 is not among them. So the default locale is installed! But
> C.utf8 is. You can set permanently by running the following in your
> template:
>
> localectl set-locale LANG=C.utf8
>
> Once you do this, xrdb will accept your command and you should be able
> to get your hdpi in the template. (I think you are already aware
> of the subtleties when gnome-settings-daemon is running.)
>
> Most of the rest of the world seems to use "UTF-8" not utf8.
> So I worried there might be some compatibility problems. But
> nothing bad so far.
>
> Daniel

Still the same problem:

[user@fedora-29-clone-1 ~]$ localectl set-locale LANG=C.utf8


[user@fedora-29-clone-1 ~]$ echo Xft.dpi: 220 | xrdb -merge

<stdin>:0: warning: Unknown encoding: C.UTF-8

Also I tried to install 'glibc-all-langpacks' package, but nothing.

Daniil Travnikov

unread,
Mar 6, 2019, 9:56:07 AM3/6/19
to qubes-users
Today I have had another problem which I think indicates that the problem is not only in Fedora 29, it could me in Qubes too.

So, I today I had a problem with encoding when I tried to open one of my .txt file in 'gedit' editor.

To solve this problem I installed 'dconf-editor' package and started to configure it in Fedora 29 Template:

I gone through 'org - gnome - gedit - preferences - encodings' in 'dconf-editor' and set - ['UTF-8', 'WINDOWS-1251', 'CURRENT', 'ISO-8859-15', 'UTF-16']

Problem was been solved but guess what happened next? :)

This changes applies only in Template, because when I started AppVM based on Fedora 29 I repeat this sets in 'dconf-editor'.

ahi...@gmail.com

unread,
Sep 16, 2019, 12:36:54 PM9/16/19
to qubes-users


On Sunday, February 3, 2019 at 8:28:13 PM UTC+3, Daniil Travnikov wrote:
Could anyone tell me how to put the Xft.dpi on Fedora 29 only once? Because when I am creating AppVM it is always with another HiDPI option, less then his own Template. I mean changes working only on Template, but not in AppVM's.

I hope this is not too much off topic but I'm stuck on getting dom0/XFCE in Qubes R4.0.1 to support HiDPI.

I tried all the documented stuff I could find but they only affect the font while HiDPI should affect every pixel of the screen and not just fonts/text.

You can find a detailed explanation of what I tried exactly and more here https://github.com/QubesOS/qubes-issues/issues/1951#issuecomment-518917371
Reply all
Reply to author
Forward
0 new messages