utmapp / UTM

Virtual machines for iOS and macOS
https://getutm.app
Apache License 2.0
26.73k stars 1.34k forks source link

Debian VM screen resolution gets reset at every boot when using retina mode #4883

Open LostInCompilation opened 1 year ago

LostInCompilation commented 1 year ago

Describe the issue
This Debian ARM VM is the only VM where the screen resolution somehow gets reset every time I start it, but only when using retina mode. It behaves a bit strange on shutdown also. Normally when shutting down a VM, the VM window after shutdown (showing the big play button) stays at the resolution the VM had. With the Debian VM the window instantly gets reset to the small default size on shutdown. This is the small resolution the VM then actually uses on startup. I tried it with many different display adapter (virtioramfb-gl, virtio-gpu-gl-pci/device and the versions without GPU support). I also tried it with the "Resize display to window size automatically" option disabled, same issue.

Is this a issue with UTM or Debian? I never encountered this with various other Linux VMs, including Debian x86 with the same installation config and desktop manager.

Configuration

osy commented 1 year ago

Maybe the spice vdagent is changing it?

LostInCompilation commented 1 year ago

I have it installed. How can I prevent it to change the resolution? Or set the current one as fixed? Also the scaling to 200% gets reset back to default.

tmmvn commented 1 year ago

I'm experiencing something related with the App Store version. My issue is that I had a higher resolution on my Mac. However, due to old age vision I dropped it down a notch. If I run non retina mode, I get a window too big to fit to screen and I can't resize the window. If I run in retina mode, I get the tiny window that I can resize.

It would seem UTM somehow sets the minimum window size in a way the OS doesn't let the window to be resized. Could also have something to do with the fact the window extends outside screen borders. However, even using the "tile window to left" option or making the app full screen fails to resize correctly.

I think UTM should just let the window size be whatever and allow users to freely resize the window at will. Then, if the Spice tools for automatic resizing is installed, UTM would try to match the window size. If the spice tools are not installed, you'd get scroll bars or black aspect ratio bars depending which way the size differential is.

LostInCompilation commented 1 year ago

If I run non retina mode, I get a window too big to fit to screen and I can't resize the window. If I run in retina mode, I get the tiny window that I can resize.

You also need to set the screen resolution inside the guest system.

I think UTM should just let the window size be whatever and allow users to freely resize the window at will.

I did not experience such an issue being unable to resize the VM window. I can freely resize it. And depending on the settings, resizing the VM window will either set the corresponding guest screen resolution or leave the guest screen resolution and just scale the guest up or down.

But your issue is not really related to my specific problem with a single Debian VM. Consider opening a seperate issue if you cannot resize the VM window.

tmmvn commented 1 year ago

If I run non retina mode, I get a window too big to fit to screen and I can't resize the window. If I run in retina mode, I get the tiny window that I can resize.

You also need to set the screen resolution inside the guest system.

I think UTM should just let the window size be whatever and allow users to freely resize the window at will.

I did not experience such an issue being unable to resize the VM window. I can freely resize it. And depending on the settings, resizing the VM window will either set the corresponding guest screen resolution or leave the guest screen resolution and just scale the guest up or down.

But you're issue is not really related to my specific problem with a single Debian VM. Consider opening a seperate issue if you cannot resize the VM window.

You mention having resolution issues with a Debian VM, just the opposite to mine with yours resetting to smaller, while mine resets to larger. I don't really care enough to open a ticket (if I did and since it's open source, I'd probably look into fixing the issue), but would be surprised if the issues were not related.

Just thought I'd chime in since it seems like a clear bug in the resolution / window management portion. But whatever. Feel free to keep your ticket all to yourself.

LostInCompilation commented 1 year ago

I don't really care enough to open a ticket [...] But whatever. Feel free to keep your ticket all to yourself.

Geez, chill. It is just not the best idea to clutter issues with different things. You're having general problems related to scaling, because you changed your native macOS resolution/scaling. Also issues with resizing VM windows for every VM. My issue is only present with a single out of multiple different VMs, including other Debian VMs, and has nothing to do with issue caused by scaling my host resolution, or issues regarding wrong window sizes depending on retina mode settings. It is about resetting guest resolutions and scaling, wich seems more like an issue with Debians desktop manager and spice.