Graphics artifacts on Apple Silicon host (high screen tearing and mouse disappearing)
Describe the issue
Windows 10 boots and I'm able to set it up, but there are many tearing problems, and sometimes the mouse cursor disappears, and this just in idle and by moving some windows. I have not encountered these problems by using ACVM
Here are some screenshots:

In the last screenshot is difficult to spot, but I'm dragging my mouse around, and the selecting area is showing, but not the cursor
Configuration
- UTM Version: 2.1.1 beta
- OS Version: 11.3.1
- Intel or Apple Silicon? Apple Silicon
Debug log debug.log
Upload VM VM made with Gallery guide for windows 10 ARM
Is this before or after installing the graphics drivers? Or both?
Is this before or after installing the graphics drivers? Or both?
Both, during configuration it wasn't that crazy, but after configuration, even without installing drivers and rebooting, this stuff happens
Also I forgot to mention that I've tried also previous versions of UTM, but I have the same issue
Same issue on all versions.
I see this same exact artifact, but only when trying to watch a video. Using a standalone qemu, I don’t see this issue. I’ve linked my qemu settings in #2557
I see the same problem under MacOS 11.4 with Apple Silicon. It seems to be tied to using virtio-ramfb display card. Using ramfb is better, though not perfect.
Of note using ACVM with the virtio-gpu drivers doesn't appear to have that problem. Though I can't adjust the resolution as the display settings immediately close with those drivers. See https://github.com/ubenmackin/ACVM
@marco-04 @Morac2 do you guys only see this in v2.1.1 beta or do you also see it in v2.0.28?
@marco-04 @Morac2 do you guys only see this in v2.1.1 beta or do you also see it in v2.0.28?
I tried also older versions and they all have the same problem. I don't remember which versions I tried exactly (I believe they were 2.0.15, 2.0.16, 2.0.17, 2.0.21, 2.0.22, 2.0.23, 2.0.24, 2.0.25 and 2.0.28), but I had the same tearing issue
Same issue here - using 2.1.1 - the tearing is bad and the mouse is always disappearing.
Edit: Changing OVMF boot settings to highest resolution helped with the mouse, but I am still getting mad tearing.
Hey can you tell me how to get macos on UTM latest version on iPadOS 14.7? It’s quite confusing
Sent from my iPad
On 02-Jun-2021, at 10:46 AM, TheMak1985 @.***> wrote:
Same issue here - using 2.1.1 - the tearing isnt as bad, but the mouse is always dissapearing.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Can confirm screen tearing on current and previous versions of UTM and MacOS since 11.2. I just assumed that this was due to UTM not fully mature for Apple silicon. Mouse disappearing is definitely a very big problem for me personally.
[…] I have not encountered these problems by using ACVM
Since ACVM uses "ramfb" video device, have you tried changing the Display configuration to that?

By the way, when using ramfb you will have low resolution, unless you use custom EFI (you want QEMU_EFI-AARCH64-HighRes-UTM-logo.fd, import as "BIOS" or "Disk Image" with "PC System Flash" interface): https://chrisp.cafe/OVMF/
Debug log debug.log
This indicates you were using virtio-ramfb. No drivers available for that. Install this first: https://github.com/utmapp/qemu/releases/download/v5.2.0-asi/spice-guest-tools-0.164.iso
Then switch to virtio-gpu-pci in the Display configuration for driver support with this specific driver installer. Your VM will show "guest disabled display" while it's booting, don't worry. Just wait. It has 2D and some software 3D acceleration.
[…] I have not encountered these problems by using ACVM
Since ACVM uses "ramfb" video device, have you tried changing the Display configuration to that?
By the way, when using ramfb you will have low resolution, unless you use custom EFI (you want
QEMU_EFI-AARCH64-HighRes-UTM-logo.fd, import as "BIOS" or "Disk Image" with "PC System Flash" interface): https://chrisp.cafe/OVMF/Debug log debug.log
This indicates you were using
virtio-ramfb. No drivers available for that. Install this first: https://github.com/utmapp/qemu/releases/download/v5.2.0-asi/spice-guest-tools-0.164.iso Then switch tovirtio-gpu-pciin the Display configuration for driver support with this specific driver installer. Your VM will show "guest disabled display" while it's booting, don't worry. Just wait. It has 2D and some software 3D acceleration.
Yes I tried to switch the graphics, but I think it didn't even show the booting screen. Anyway I'm going to try both solutions today.
Since ACVM uses "ramfb" video device, have you tried changing the Display configuration to that?
This is what happens when I switch to RAMFB, it didn't even show the TianoCore booting screen
I don't have Apple Silicon Mac to test so my results may differ because of that. Mine shows the boot screen fine, however I am using my custom EFI. (you want QEMU_EFI-AARCH64-HighRes-UTM-logo.fd, import as "BIOS" or "Disk Image" with "PC System Flash" interface): https://chrisp.cafe/OVMF/
Note that that file is going to overall reduce performance, as it was compiled in Debug mode. It's not intended as a permanent solution.
Ok, I tried and it is way better than virtio-ramfb. I will still try the other method you mentioned, to see if it works better
Ok, just tried the other method and it still has tearing and disappearing mouse. Only RAMFB has the lowest amount of tearing and the mouse does not disappear
Can confirm this issue on M1, OS 11.4, UTM 2.1.1 (had this also with 2.0.27), virtio-ramfb, Windows 10 ARM64 Build 21354.
Also noticed that the cursor icon colors are inverted (blue loading animation in cursor is orange, the cursor itself is still white). For now the best workaround I've come up with is to Port forward :3389->:3389 and use Microsoft Remote Desktop app to RDP locally into the virtual machine.
Not sure if this is Windows-specific, because this also happens when running Ubuntu 20.04 ARM64 guest on Apple M1, OS 11.4, UTM 2.1.1 (and older versions of UTM).
I am having similar problem on MacBook Air (Big Sur 11.4) for Ubuntu 20.04 ARM 64 as guest.