Manual dpi control in vm's for HIDPI diplays

896 views
Skip to first unread message

R.B.

unread,
Jul 4, 2016, 2:18:05 PM7/4/16
to qubes...@googlegroups.com
Hello,

For the people who want to use a HIDPI display, or have one on their
laptop, Here's an easy way to get your vm's up to scale while issue
#1951 is open ;-)

Settings that I use on my machine with 3.2rc1:
gsettings set org.gnome.desktop.interface scaling-factor 2
gsettings set org.gnome.desktop.interface text-scaling-factor 0.75

You could run it through qvm-run from dom0 for all your vm's.

Note that for some reason it won't affect templates. The
(gnome-)terminal for instance remains the same size and scale.

For reference: https://github.com/QubesOS/qubes-issues/issues/1951

Enjoy.

Regards,

RB

Andrew David Wong

unread,
Jul 4, 2016, 11:37:50 PM7/4/16
to R.B., qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Thanks! I've added your message to the issue:

https://github.com/QubesOS/qubes-issues/issues/1951#issuecomment-
230380004

- --
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJXeyuIAAoJENtN07w5UDAwiB0P/3j7ywfo7F92rH2ofXu5NnvV
4/sKHMAa+k2Hq591yizwAgPFyCeETyuJMheWpZ0i8PAFKuRJKaV0PCRDSN3RyoCz
+sLamDgPwxVGxNxxkvnep4ESnWnA6/ZZame8r1ITTnPHMVnqfPy04HuwJgkDH6q6
igYQQTCMaaeLMcQdML/npoQ2G8PQB2MPR5lPHwgDIL7J8Abp4ZuIukKZVchtipI9
sUurVWRxJ0bfjeS1D5r6SxWhJLknDbFj07/NbJDlP+C71TPbrceJU6d9cB69c1/l
r/NPaUQ4Bh/NBoj2qwy0BcELmNHMlqA0C7eNXTnQZDEFPFwjeMYlwCmi3f9KWvT9
O7qyxjJpfJP323mn5tCIU5ukPTazTZGBosddpzze4LYy8zkbuYq9OFnT7AxQrD0K
lwjw6gWXr7hDWkuYUYDIHda4T6pnxOp44sOlodBD8Oi0/a29Dzs0ZnLvm3wB3Ubx
NOzblhcqlQLOr4szr0a2PAEdkUcVT6J/jaJtmyjRPFnY3QLpe3C6sKmGYIx26YOV
uS9McWiLWETSegRZBa90NrA+1b7TIFu0m2UN74/dJn+cNLEbv8BAvDi4wZJrF/2j
P/j76EomMRXVfb5DMuO60ywcjLwR5efQz+3z3WDRQlX5C5j3w8TmYuOaTrCjCwFk
0mrzIRtyc7sVxopZjNzr
=W5sl
-----END PGP SIGNATURE-----

george...@gmail.com

unread,
Jul 20, 2016, 10:28:10 PM7/20/16
to qubes-users, rebo...@reboli.nl

Dude. This is awesome for the AppVMs. My eyes are no longer bleeding from reading standard print size font on a 15" 4k screen nor bleeding from scaling in xrandr.

vincent.ma...@gmail.com

unread,
Aug 26, 2016, 7:10:43 AM8/26/16
to qubes-users, rebo...@reboli.nl


Where do I need to type these commands into ?
I dont know where, the terminal is not doing anything?

Connor Page

unread,
Aug 26, 2016, 7:24:58 PM8/26/16
to qubes-users
this is not a universal approach but should work fine for gnome apps. you should type them in terminal applications in each vm.

a more comprehensive approach to cover all bases is to set proper dpi for X server, Xft, gsettings (if gnome-settings-daemon runs), xsettings (IIRC Debian template needs that), dom0 desktop environment (KDE, Xfce) and use hidpi themes/window decorations.

Patrick Schleizer

unread,
Oct 24, 2017, 4:33:57 AM10/24/17
to R.B., qubes...@googlegroups.com, Patrick Schleizer
Did anyone manage to get HiDPI working in Qubes R4?


https://groups.google.com/forum/#!msg/qubes-users/GQOLttJeJTg/hubZ7gX8AwAJ

https://github.com/QubesOS/qubes-issues/issues/1951

R.B.:
I tried this in a Qubes R4 AppVM. However it didn't have any effect.

subjunct...@gmail.com

unread,
Dec 23, 2017, 9:40:41 AM12/23/17
to qubes-users

Since I switched to the Fedora-26 template (still on R3.2) the scaling-factor and text-scaling-factor has no effect anymore.

The only way I found to get a reasonable view is to change the default 96 dpi setting of Xft.dpi in /etc/X11/Xresources (in the TemplateVM).

Regards,
Markus

Reply all
Reply to author
Forward
0 new messages