Inconsistent Screen Resolution for Fedora VMs

80 views
Skip to first unread message

xme...@gmail.com

unread,
Oct 17, 2016, 2:31:50 PM10/17/16
to qubes-users
I just did a clean install of Qubes 3.2. For some reason the resolution off apps in Fedora VMs is wildly inconsistent. The borders of the windows, dom0, and the Debian VMs are correct but the apps in Fedora VMs range from consistent with the others to so low as to be almost unusable. I can't figure out what causes them to change and xrandr outputs the same thing no matter what the displayed resolution is.

Jeremy Rand

unread,
Oct 22, 2016, 3:19:41 AM10/22/16
to qubes...@googlegroups.com
xme...@gmail.com:
> I just did a clean install of Qubes 3.2. For some reason the resolution off apps in Fedora VMs is wildly inconsistent. The borders of the windows, dom0, and the Debian VMs are correct but the apps in Fedora VMs range from consistent with the others to so low as to be almost unusable. I can't figure out what causes them to change and xrandr outputs the same thing no matter what the displayed resolution is.

I think this occurred for me a few weeks ago. If I recall correctly,
the HiDPI settings in GNOME had somehow been set to 0. No magnification
is 1, double magnification is 2. 0 gets interpreted as 2, for reasons
that only the GNOME people are likely to understand. The standard GNOME
procedures for changing HiDPI settings fixed it for me (I restored it to 1).

Sorry I don't have more details for you, I don't believe I wrote down
the fix at the time.

-Jeremy

signature.asc

Marek Marczykowski-Górecki

unread,
Oct 22, 2016, 4:06:57 PM10/22/16
to jer...@veclabs.net, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Sat, Oct 22, 2016 at 07:15:16AM +0000, Jeremy Rand wrote:
> xme...@gmail.com:
> > I just did a clean install of Qubes 3.2. For some reason the resolution off apps in Fedora VMs is wildly inconsistent. The borders of the windows, dom0, and the Debian VMs are correct but the apps in Fedora VMs range from consistent with the others to so low as to be almost unusable. I can't figure out what causes them to change and xrandr outputs the same thing no matter what the displayed resolution is.
>
> I think this occurred for me a few weeks ago. If I recall correctly,
> the HiDPI settings in GNOME had somehow been set to 0. No magnification
> is 1, double magnification is 2. 0 gets interpreted as 2, for reasons
> that only the GNOME people are likely to understand.

I've looked at gnome-settings-daemon code and AFAIR those reasons are:
1. Have DPI at least 192, and
2. Have vertical resolution at least 1200.

Relevant code:
https://github.com/GNOME/gnome-settings-daemon/blob/master/plugins/xsettings/gsd-xsettings-manager.c#L233-L241

#define DPI_FALLBACK 96

/* The minimum resolution at which we turn on a window-scale of 2 */
#define HIDPI_LIMIT (DPI_FALLBACK * 2)

/* The minimum screen height at which we turn on a window-scale of 2;
* below this there just isn't enough vertical real estate for GNOME
* apps to work, and it's better to just be tiny */
#define HIDPI_MIN_HEIGHT 1200

There is also lengthy comment about it.
Anyway the above looks reasonable for me for automatically turning HiDPI
mode on. So, if it was incorrect, I'd guess something gone wrong with
retrieving input values (DPI, vertical resolution).

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJYC8bcAAoJENuP0xzK19csryMH/11HnOzPwr1vQPfeWlmhymk6
uAMti9FHkTZEK4IWJWZDGaahd+Pos4Rav+wSmloV54n96AOrComKkz/LKk8t1VKl
mQIwPSbyDvoW3jJMz6Izd9+QK5fEEp7rP2ekhE2Me8sCENu/yRR2tx9zHbJQ7bza
yU1tLuuR6g334qMlTkdTX/6rRxJD6cpED9zjTJ3ZvFnAbCmuk10s57PKU6KTXogy
LaOTConyMeRSPBc2S6C9avMoylcR2YQ9suXEVo/nE8uQv7GuOS6eaTNIoXkUXuEf
3RfyhrVLAGBxu1i6S3WCOrzt+9X9PuXqpyLkq0WZ8Gxlh1+onoo35+si7ohiHiE=
=X8f7
-----END PGP SIGNATURE-----

xme...@gmail.com

unread,
Oct 24, 2016, 8:05:32 PM10/24/16
to qubes-users
Thanks! I'm without a computer right now but I will look into soon to see if I can figure out exactly where it's messing up.

Jeremy Rand

unread,
Jan 21, 2017, 12:38:47 AM1/21/17
to qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Jeremy Rand:
For future reference of anyone stumbling across this thread, you can
disable HiDPI in your Fedora VM's by running this terminal command in
each of your Fedora VM's and then rebooting those VM's:

gsettings set org.gnome.desktop.interface scaling-factor 1

Until you reboot those VM's, their GUI will have weird glitches.

Hope this helps anyone who runs into this.

- -Jeremy
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJYgvO2AAoJELPy0WV4bWVwCtcQAIAGPsjKZzgKeisa67AHaYtE
kd21Ham1w6WNDQnweDmjOSPsalJfgA+vQ6jaTUJZoW6FAmgui91PDF0bTDjQYuIe
fVv4LzZNFFSbNAbnaySHdU3fZMOqV5qN1jZpYkC8tyExUfCUTzTNGdudZLIrqtYz
0bsPNAzC0zLoGZorqki52qMFR81Z4oztmAd2RMQRBUgxQF6f6YzZIUUIWCU7KLwx
ZuSL+kyw6wvVWUsEA5XesdGbguG8KzREyLr1YsZM02ARLf5aH+uWpuhWtey2ERGp
t+2ZbviKtHyeVKcrASfxaPCzYhlcIDLCS9y3v6Cp9G4CCy5RBnpa366WwXBpKn0l
flmswfXmtrfLSDlTgzi37huKOH0upMEb1CHfeVVUHm9ZfvSzySEvVu4KDJcc5rFr
RlgZ0HzPeNTtVvbpdIugj/isWwaQU6mmSLe96zmG9aeMt1vqYDqnjoNqnZaQ7/0Y
uBA+ukN91YRoG9RTMmJzfT3AVJvasyyt4giCKWRI/HmJkqrqAh1N6DcvlzNGfrZ7
2s7Rn5V1fJtQe3AsVeMVxgPqrqZ4fyXtW1poVHTp4dK9NNfngjj2tuVnNH3udwxP
xPX7GZQDve5G3M+1wzX+QtQnVYAUshxothhPVTRVciySJcNtZcpohAeFYSgI/u46
UJmSLOlXGYgMKBYnQGoX
=YBlP
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages