Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphics artifacts on Apple Silicon host (high screen tearing and mouse disappearing) #2569

Closed
marco-04 opened this issue May 24, 2021 · 24 comments
Milestone

Comments

@marco-04
Copy link

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:
Schermata 2021-05-24 alle 23 25 57
Schermata 2021-05-24 alle 23 26 08
Schermata 2021-05-24 alle 23 25 30
image

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

@osy
Copy link
Contributor

osy commented May 24, 2021

Is this before or after installing the graphics drivers? Or both?

@marco-04
Copy link
Author

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

@marco-04
Copy link
Author

Also I forgot to mention that I've tried also previous versions of UTM, but I have the same issue

@muratdk23
Copy link

Same issue on all versions.

@iRonJ
Copy link

iRonJ commented May 25, 2021

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

@Morac2
Copy link

Morac2 commented May 30, 2021

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

@osy
Copy link
Contributor

osy commented May 30, 2021

@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
Copy link
Author

marco-04 commented May 30, 2021

@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

@themak1985
Copy link

themak1985 commented Jun 2, 2021

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.

@Samyak-Coder

This comment has been minimized.

@litori
Copy link

litori commented Jun 2, 2021

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.

@conath
Copy link
Contributor

conath commented Jun 4, 2021

[…] I have not encountered these problems by using ACVM

Since ACVM uses "ramfb" video device, have you tried changing the Display configuration to that?
UTM VM configuration page for Display settings, with the dropdown for Emulated Display Card selected and the item RAM framebuffer standalone device highlighted

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.

@marco-04
Copy link
Author

marco-04 commented Jun 4, 2021

[…] I have not encountered these problems by using ACVM

Since ACVM uses "ramfb" video device, have you tried changing the Display configuration to that?
UTM VM configuration page for Display settings, with the dropdown for Emulated Display Card selected and the item RAM framebuffer standalone device highlighted

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.

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.

@marco-04
Copy link
Author

marco-04 commented Jun 4, 2021

Since ACVM uses "ramfb" video device, have you tried changing the Display configuration to that?

Schermata 2021-06-04 alle 15 05 21

This is what happens when I switch to RAMFB, it didn't even show the TianoCore booting screen

@conath
Copy link
Contributor

conath commented Jun 4, 2021

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.

@marco-04
Copy link
Author

marco-04 commented Jun 4, 2021

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

@marco-04
Copy link
Author

marco-04 commented Jun 4, 2021

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

@hiatsu0
Copy link

hiatsu0 commented Jun 6, 2021

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.

@volisoft
Copy link

volisoft commented Jun 6, 2021

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).

@sandeepwadhwa-ai
Copy link

I am having similar problem on MacBook Air (Big Sur 11.4) for Ubuntu 20.04 ARM 64 as guest.

@dongle-the-gadget
Copy link

This issue seems to be universal across all virtual machines.

@hectour3
Copy link

hectour3 commented Jun 26, 2021

Having the same issue when using a Debian based VM. MacOS 11.4, UTM v2.1.1 , Apple Silicon. Tried to install the SPICE tools and switching from virtio-ramfb to virtio-gpu-pci. I don't have the issue with bare QEMU. It is not completely fluent then but there is no tearing and it taking seconds to images the window when it has moved position. I installed this patch for normal QEMU, maybe it will work when incorporating it with UTM: https://github.com/knazarov/homebrew-qemu-virgl

@conath conath changed the title Windows 10: high screen tearing and mouse disappearing Graphics artifacts (high screen tearing and mouse disappearing) on Apple Silicon Jun 27, 2021
@conath conath changed the title Graphics artifacts (high screen tearing and mouse disappearing) on Apple Silicon Graphics artifacts on Apple Silicon host (high screen tearing and mouse disappearing) Jun 27, 2021
@sejevici
Copy link

sejevici commented Jul 1, 2021

I'm experiencing the same issues on MacBook Air with M1 structure and 16 GB of memory.

@osy osy closed this as completed in 9977a79 Jul 10, 2021
@potofpie
Copy link

Just fixed my issue with Kali Linux by changing the Settings>Display>Emulated Display Card to virtio-gpu-pci.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests