From abe2c563a3b121c9470d5d0e12c9fb5298d1401b Mon Sep 17 00:00:00 2001 From: jprx <36464332+jprx@users.noreply.github.com> Date: Thu, 21 Mar 2024 18:25:50 -0400 Subject: [PATCH] Set XHCI controller to qemu-xhci for USB keyboard/ mouse on macOS 14.4 --- OpenCore-Boot.sh | 7 ++++--- boot-macOS-headless.sh | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/OpenCore-Boot.sh b/OpenCore-Boot.sh index e9db78f..e5d06aa 100755 --- a/OpenCore-Boot.sh +++ b/OpenCore-Boot.sh @@ -35,13 +35,14 @@ OVMF_DIR="." args=( -enable-kvm -m "$ALLOCATED_RAM" -cpu Penryn,kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,"$MY_OPTIONS" -machine q35 - -usb -device usb-kbd -device usb-tablet + -device qemu-xhci,id=xhci + -device usb-kbd,bus=xhci.0 -device usb-tablet,bus=xhci.0 -smp "$CPU_THREADS",cores="$CPU_CORES",sockets="$CPU_SOCKETS" -device usb-ehci,id=ehci # -device usb-kbd,bus=ehci.0 # -device usb-mouse,bus=ehci.0 - -device nec-usb-xhci,id=xhci - -global nec-usb-xhci.msi=off + # -device nec-usb-xhci,id=xhci + # -global nec-usb-xhci.msi=off # -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off # -device usb-host,vendorid=0x8086,productid=0x0808 # 2 USD USB Sound Card # -device usb-host,vendorid=0x1b3f,productid=0x2008 # Another 2 USD USB Sound Card diff --git a/boot-macOS-headless.sh b/boot-macOS-headless.sh index 894841a..b5ce2e8 100755 --- a/boot-macOS-headless.sh +++ b/boot-macOS-headless.sh @@ -40,13 +40,14 @@ OVMF_DIR="." args=( -enable-kvm -m "$ALLOCATED_RAM" -cpu Penryn,kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,"$MY_OPTIONS" -machine q35 - -usb -device usb-kbd -device usb-tablet + -device qemu-xhci,id=xhci + -device usb-kbd,bus=xhci.0 -device usb-tablet,bus=xhci.0 -smp "$CPU_THREADS",cores="$CPU_CORES",sockets="$CPU_SOCKETS" -device usb-ehci,id=ehci # -device usb-kbd,bus=ehci.0 # -device usb-mouse,bus=ehci.0 - -device nec-usb-xhci,id=xhci - -global nec-usb-xhci.msi=off + # -device nec-usb-xhci,id=xhci + # -global nec-usb-xhci.msi=off -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off # -device usb-host,vendorid=0x8086,productid=0x0808 # 2 USD USB Sound Card # -device usb-host,vendorid=0x1b3f,productid=0x2008 # Another 2 USD USB Sound Card