Skip to content

Commit 2141ee6

Browse files
jprxDhiru Kholia
authored andcommitted
Use qemu-xhci for USB keyboard/ mouse on macOS 14.4
1 parent a114479 commit 2141ee6

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

OpenCore-Boot.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,14 @@ OVMF_DIR="."
3535
args=(
3636
-enable-kvm -m "$ALLOCATED_RAM" -cpu Penryn,kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,"$MY_OPTIONS"
3737
-machine q35
38-
-usb -device usb-kbd -device usb-tablet
38+
-device qemu-xhci,id=xhci
39+
-device usb-kbd,bus=xhci.0 -device usb-tablet,bus=xhci.0
3940
-smp "$CPU_THREADS",cores="$CPU_CORES",sockets="$CPU_SOCKETS"
4041
-device usb-ehci,id=ehci
4142
# -device usb-kbd,bus=ehci.0
4243
# -device usb-mouse,bus=ehci.0
43-
-device nec-usb-xhci,id=xhci
44-
-global nec-usb-xhci.msi=off
44+
# -device nec-usb-xhci,id=xhci
45+
# -global nec-usb-xhci.msi=off
4546
# -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off
4647
# -device usb-host,vendorid=0x8086,productid=0x0808 # 2 USD USB Sound Card
4748
# -device usb-host,vendorid=0x1b3f,productid=0x2008 # Another 2 USD USB Sound Card

boot-macOS-headless.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,14 @@ OVMF_DIR="."
4040
args=(
4141
-enable-kvm -m "$ALLOCATED_RAM" -cpu Penryn,kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,"$MY_OPTIONS"
4242
-machine q35
43-
-usb -device usb-kbd -device usb-tablet
43+
-device qemu-xhci,id=xhci
44+
-device usb-kbd,bus=xhci.0 -device usb-tablet,bus=xhci.0
4445
-smp "$CPU_THREADS",cores="$CPU_CORES",sockets="$CPU_SOCKETS"
4546
-device usb-ehci,id=ehci
4647
# -device usb-kbd,bus=ehci.0
4748
# -device usb-mouse,bus=ehci.0
48-
-device nec-usb-xhci,id=xhci
49-
-global nec-usb-xhci.msi=off
49+
# -device nec-usb-xhci,id=xhci
50+
# -global nec-usb-xhci.msi=off
5051
-global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off
5152
# -device usb-host,vendorid=0x8086,productid=0x0808 # 2 USD USB Sound Card
5253
# -device usb-host,vendorid=0x1b3f,productid=0x2008 # Another 2 USD USB Sound Card

0 commit comments

Comments
 (0)