Fix USB input devices after macOS Sonoma update

A recent macOS Sonoma update included a change to the handling of USB controllers that made the virtual keyboard and mouse inoperative. Changing the USB controller from ehci to xhci fixes it. This change also works for Big Sur and later, so the USB controller is set to xhci for Big Sur through Sonoma.
This commit is contained in:
Chase Covello 2024-04-03 10:12:41 -07:00 committed by Martin Wimpress
parent 7ff84160ec
commit 26ceeed84b
1 changed files with 1 additions and 0 deletions

View File

@ -569,6 +569,7 @@ function vm_boot() {
NET_DEVICE="virtio-net" NET_DEVICE="virtio-net"
USB_HOST_PASSTHROUGH_CONTROLLER="nec-usb-xhci" USB_HOST_PASSTHROUGH_CONTROLLER="nec-usb-xhci"
GUEST_TWEAKS="${GUEST_TWEAKS} -global nec-usb-xhci.msi=off" GUEST_TWEAKS="${GUEST_TWEAKS} -global nec-usb-xhci.msi=off"
USB_CONTROLLER="xhci"
;; ;;
*) *)
# Backwards compatibility if no macos_release is specified. # Backwards compatibility if no macos_release is specified.