knazarov / homebrew-qemu-virgl

A homebrew tap for qemu with support for 3d accelerated guests
415 stars 68 forks source link

Right command seems to be always pressed #14

Closed kov closed 3 years ago

kov commented 3 years ago

I tried installing Fedora but the keyboard would not respond. After the installation booted automatically I started poking around a bit and it seems if I hold the command key to the right of the spacebar things work as expected. I guess I'm hitting the bug that is mentioned in this page:

https://gist.github.com/akihikodaki/87df4149e7ca87f18dc56807ec5a1bc5

ui/cocoa

<snip>
    A bug which keeps e.g. command key pressed is fixed.

By the way, I tried adding a usb kbd instead to see if would make any difference and got this:

qemu-system-aarch64: -device usb-kbd: No 'usb-bus' bus found for device 'usb-kbd'

Is qemu being built without USB or something? The options seem to be there in --help but I have no clue why it doesn't like it.

StellarOrbit commented 3 years ago

I am having the same issue. When trying to install a distro that needs keyboard input at the boot screen to access it, it doesn't respond until past Wayland/X11. I tried both on my m1 Mac mini with a bluetooth keyboard and with my m1 MacBook Air using the keyboard built in.

knazarov commented 3 years ago

You can try to run with:

-device qemu-xhci
-device usb-kbd

And don’t forget to remove -device virtio-keyboard-pci

StellarOrbit commented 3 years ago

-device qemu-xhci -device usb-kbd

Thanks that worked!

knazarov commented 3 years ago

@kov did you have success with this?

kov commented 3 years ago

Sorry, yes it works for me as well with a usb keyboard, thanks!