Skip to content

Add USB options to Input configuration #3674

@conath

Description

@conath

I would like to be able to switch USB input device emulation on and off via the Input tab. Maybe a segmented control with the options "PS/2 keyboard", "PS/2 keyboard and mouse" and "USB Keyboard and Mouse" could be added to replace the "Legacy PS/2 Mode" toggle.

On that note, it would make sense to move the "USB 3 XHCI support" toggle to the Input tab as well and have all of the devices connect to this USB bus. Even better, maybe we could allow choosing UHCI, ECHI and XHCI via segmented control? (if one chooses UHCI, that might mean we have to disable the USB Sharing feature - IIRC that can only use EHCI or XHCI)

Back story (as mentioned in #3031)

UTM used to add a -device usb-kbd to the QEMU parameters unless "Legacy PS/2" was enabled in the Input tab. In an update, this was removed because UTM will always add a PS/2 keyboard for compatible guests, regardless of the USB keyboard parameter.

However this change means that guest OSs that don't support PS/2 (namely Mac OS X / macOS) now don't receive keyboard input anymore. A workaround is to add the line -device usb-kbd,bus=usb-bus.0 to the QEMU arguments tab, which restores the USB keyboard input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestsettingsAnything in the setting/create views

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions