Score:0

Ubuntu 21.04 Guest on VMware Workstation 16 Gnome Forgets UI Scale On Resolution Change

de flag

I am running Ubuntu 21.04 VMs in VMware Workstation Pro 16.1.2 build-17966106. When toggling between full screen and normal mode (which causes VMware to poke the guest tools to change the virtual monitor resolution to adjust), the VMs forget their UI scale, resetting back to 100%. The Windows 10 VMs do not exhibit this behavior, which suggests that the problem is not the hypervisor or the hardware.

Any thoughts would be appreciated!

Score:0
in flag

From everything I’ve been able to determine (through months of similar issues reported at the day job) is that VMware is not passing the scaling setting when resizing the display.

When the resolution and scale is set in the UI or via Terminal, the commands generally look something like this:

xrandr --newmode "1680x1050_60.00"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync
xrandr --output eDP-1-1 --primary --pos 0x0 --scale 2x2

Note the --scale at the end of the second command that sets the value at (for this example) 200%. This second command is not performed by the VMware tools, just the first.

One method of handling this would be to have a script that runs periodically in the background to check if the screen resolution has changed and, if it has, set the scale. This answer from a few years back shows a working method to accomplish this goal. It would be suboptimal but, until VMware updates their tools to be a little more Ubuntu-friendly, workarounds are required

Erick Brown avatar
de flag
Excellent. I appreciate it. I'm going to poke around and see if I can find a way to hook the resolution changes, and have it trigger the xrandr command for scale. If I can't make that work, I'll just let it poll
Score:0
de flag

I finally got sufficiently annoyed with this problem that I built a workaround: https://github.com/ejtbrown/scale-enforce, for anyone that is interested

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.