utmapp / UTM

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

Full screen scaling of guest seems incorrect #5781

Open stuaxo opened 1 year ago

stuaxo commented 1 year ago

Describe the issue
When changing the size of the window on the host, the guest resizes correctly, - except when I hit the control to make the guest full screen, it's either too big or too small, but either way scaling artifacts are visible and the content doesn't fit the screen or there are black bars on the left and right.

Configuration

Guest vm: Ubuntu 22.04 aarch64

Attached image, with black bars - image

sabrehagen commented 1 year ago

https://github.com/utmapp/UTM/assets/1094600/3a335084-3ac4-469b-9c7f-e3bf3b1632d7

I am also experiencing incorrect guest resolution scaling. You can see in this video the screen gets scaled to the correct size when entering full screen, but only holds the correct resolution for a split second before reverting back to the pre-fullscreen resolution.

Configuration

UTM Version: 4.4.2 (90) macOS Version: 13.6 (22G120) Mac Chip: M2

Start command:

qemu-system-aarch64 -L /Applications/UTM.app/Contents/Resources/qemu -S -spice unix=on,addr=94D3A42B-5E13-4B78-B027-7C0F652A0D60.spice,disable-ticketing=on,image-compression=off,playback-compression=off,streaming-video=off,gl=on -chardev spiceport,id=org.qemu.monitor.qmp,name=org.qemu.monitor.qmp.0 -mon chardev=org.qemu.monitor.qmp,mode=control -nodefaults -vga none -device virtio-net-pci,mac=E6:B6:59:00:EC:C7,netdev=net0 -netdev vmnet-shared,id=net0 -device virtio-gpu-gl-pci -cpu host -smp cpus=8,sockets=1,cores=8,threads=1 -machine virt -accel hvf -drive if=pflash,format=raw,unit=0,file.filename=/Applications/UTM.app/Contents/Resources/qemu/edk2-aarch64-code.fd,file.locking=off,readonly=on -drive if=pflash,unit=1,file=/Users/jackson.delahunt/Library/Containers/com.utmapp.UTM/Data/Documents/Linux.utm/Data/efi_vars.fd -m 12288 -audiodev spice,id=audio0 -device intel-hda -device hda-duplex,audiodev=audio0 -device nec-usb-xhci,id=usb-bus -device usb-tablet,bus=usb-bus.0 -device usb-mouse,bus=usb-bus.0 -device usb-kbd,bus=usb-bus.0 -device qemu-xhci,id=usb-controller-0 -chardev spicevmc,name=usbredir,id=usbredirchardev0 -device usb-redir,chardev=usbredirchardev0,id=usbredirdev0,bus=usb-controller-0.0 -chardev spicevmc,name=usbredir,id=usbredirchardev1 -device usb-redir,chardev=usbredirchardev1,id=usbredirdev1,bus=usb-controller-0.0 -chardev spicevmc,name=usbredir,id=usbredirchardev2 -device usb-redir,chardev=usbredirchardev2,id=usbredirdev2,bus=usb-controller-0.0 -device usb-storage,drive=driveF8DC80F5-364D-411E-B5F2-4621B81845BE,removable=true,bootindex=0,bus=usb-bus.0 -drive if=none,media=cdrom,id=driveF8DC80F5-364D-411E-B5F2-4621B81845BE,file=/Users/jackson.delahunt/Downloads/ubuntu-22.04.3-live-server-arm64.iso,readonly=on -device virtio-blk-pci,drive=driveC966EE74-1701-404E-8D81-D4A4CECCD1A2,bootindex=1 -drive if=none,media=disk,id=driveC966EE74-1701-404E-8D81-D4A4CECCD1A2,file=/Users/jackson.delahunt/Library/Containers/com.utmapp.UTM/Data/Documents/Linux.utm/Data/C966EE74-1701-404E-8D81-D4A4CECCD1A2.qcow2,discard=unmap,detect-zeroes=unmap -device virtio-serial -device virtserialport,chardev=org.qemu.guest_agent,name=org.qemu.guest_agent.0 -chardev spiceport,id=org.qemu.guest_agent,name=org.qemu.guest_agent.0 -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 -chardev spicevmc,id=vdagent,debug=0,name=vdagent -fsdev local,id=virtfs0,path=/Users/jackson.delahunt/repositories,security_model=mapped-xattr -device virtio-9p-pci,fsdev=virtfs0,mount_tag=share -name Linux -uuid 94D3A42B-5E13-4B78-B027-7C0F652A0D60 -device virtio-rng-pci