From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1geiK6-0006Yt-RN for qemu-devel@nongnu.org; Wed, 02 Jan 2019 10:20:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1geiK1-0008Jf-Pn for qemu-devel@nongnu.org; Wed, 02 Jan 2019 10:20:46 -0500 Received: from indium.canonical.com ([91.189.90.7]:52044) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1geiK1-0008Io-Ji for qemu-devel@nongnu.org; Wed, 02 Jan 2019 10:20:41 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.86_2 #2 (Debian)) id 1geiK0-00030p-Jw for ; Wed, 02 Jan 2019 15:20:40 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 957922E80C9 for ; Wed, 2 Jan 2019 15:20:40 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Jan 2019 15:09:46 -0000 From: Saverio Miroddi <1809665@bugs.launchpad.net> Reply-To: Bug 1809665 <1809665@bugs.launchpad.net> Sender: bounces@canonical.com References: <154566626385.25910.12711983515604457304.malonedeb@chaenomeles.canonical.com> Message-Id: <154644178607.25119.8068492874125341562.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1809665] Re: Xbox One controller USB passthrough disconnections and stops List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org So! These are the options and respective logs; they still don't make the controller work - it doesn't work at all. # option 1 -device nec-usb-xhci \ -device usb-tablet \ -device usb-host,vendorid=3D0x$VGAPT_XBOX_PAD_VEND_ID,productid=3D0x$VGAP= T_XBOX_PAD_PROD_ID \ # log libusb: error [udev_hotplug_event] ignoring udev action bind qemu-system-x86_64: libusb_release_interface: -4 [NO_DEVICE] qemu-system-x86_64: libusb_release_interface: -4 [NO_DEVICE] qemu-system-x86_64: libusb_release_interface: -4 [NO_DEVICE] qemu-system-x86_64: libusb_release_interface: -4 [NO_DEVICE] qemu-system-x86_64: libusb_release_interface: -4 [NO_DEVICE] qemu-system-x86_64: libusb_release_interface: -4 [NO_DEVICE] libusb: error [_open_sysfs_attr] open /sys/bus/usb/devices/1-10/bConfig= urationValue failed ret=3D-1 errno=3D2 libusb: error [_get_usbfs_fd] File doesn't exist, wait 10 ms and try ag= ain libusb: error [_get_usbfs_fd] libusb couldn't open USB device /dev/bus/= usb/001/019: No such file or directory libusb: error [udev_hotplug_event] ignoring udev action bind qemu-system-x86_64: libusb_release_interface: -4 [NO_DEVICE] qemu-system-x86_64: libusb_release_interface: -4 [NO_DEVICE] qemu-system-x86_64: libusb_release_interface: -4 [NO_DEVICE] libusb: error [_open_sysfs_attr] open /sys/bus/usb/devices/1-10/bConfig= urationValue failed ret=3D-1 errno=3D2 libusb: error [_get_usbfs_fd] File doesn't exist, wait 10 ms and try ag= ain libusb: error [_get_usbfs_fd] libusb couldn't open USB device /dev/bus/= usb/001/020: No such file or directory libusb: error [udev_hotplug_event] ignoring udev action bind qemu-system-x86_64: libusb_release_interface: -4 [NO_DEVICE] qemu-system-x86_64: libusb_release_interface: -4 [NO_DEVICE] qemu-system-x86_64: libusb_release_interface: -4 [NO_DEVICE] libusb: error [_open_sysfs_attr] open /sys/bus/usb/devices/1-10/bConfig= urationValue failed ret=3D-1 errno=3D2 libusb: error [_get_usbfs_fd] File doesn't exist, wait 10 ms and try ag= ain libusb: error [_get_usbfs_fd] libusb couldn't open USB device /dev/bus/= usb/001/021: No such file or directory libusb: error [udev_hotplug_event] ignoring udev action bind # option 2 -device usb-ehci \ -device usb-tablet \ -device usb-host,vendorid=3D0x$VGAPT_XBOX_PAD_VEND_ID,productid=3D0x$VG= APT_XBOX_PAD_PROD_ID \ # log qemu-system-x86_64: Warning: speed mismatch trying to attach usb device= "Controller" (full speed) to bus "usb-bus.0", port "2" (high speed) libusb: error [udev_hotplug_event] ignoring udev action bind qemu-system-x86_64: Warning: speed mismatch trying to attach usb device= "Controller" (full speed) to bus "usb-bus.0", port "2" (high speed) libusb: error [udev_hotplug_event] ignoring udev action bind qemu-system-x86_64: Warning: speed mismatch trying to attach usb device= "Controller" (full speed) to bus "usb-bus.0", port "2" (high speed) libusb: error [udev_hotplug_event] ignoring udev action bind I've tried another game controller with the second option: # option 2b -device usb-ehci \ -device usb-tablet \ -device usb-host,vendorid=3D0x$VGAPT_ARCADE_STICK_VEND_ID,productid=3D0= x$VGAPT_ARCADE_STICK_PROD_ID \ # log libusb: error [udev_hotplug_event] ignoring udev action bind qemu-system-x86_64: Warning: speed mismatch trying to attach usb device= "Arcade Fight Stick" (full speed) to bus "usb-bus.0", port "3" (high speed) qemu-system-x86_64: Warning: speed mismatch trying to attach usb device= "Arcade Fight Stick" (full speed) to bus "usb-bus.0", port "3" (high speed) qemu-system-x86_64: Warning: speed mismatch trying to attach usb device= "Arcade Fight Stick" (full speed) to bus "usb-bus.0", port "3" (high speed) and in this configuration, it doesn't work (it does with `-usb`). -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1809665 Title: Xbox One controller USB passthrough disconnections and stops Status in QEMU: New Bug description: I can't properly passthrough my Xbox One controller to a virtual machine; it causes USB disconnections on the host, ultimately preventing it to work (at all) on the guest I've seen a few other cases reported in other websites, which show the same symptoms: - https://www.reddit.com/r/VFIO/comments/97dhbw/qemu_w10_xbox_one_control= ler - https://unix.stackexchange.com/questions/452751/how-can-i-pass-through-= an-xbox-one-controller-to-a-windows-vm-on-ubuntu This is sample: libusb: error [udev_hotplug_event] ignoring udev action bind qemu-system-x86_64: libusb_release_interface: -4 [NO_DEVICE] qemu-system-x86_64: libusb_release_interface: -4 [NO_DEVICE] qemu-system-x86_64: libusb_release_interface: -4 [NO_DEVICE] libusb: error [_get_usbfs_fd] File doesn't exist, wait 10 ms and try = again libusb: error [_get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/003/016: No such file or directory I think this is a quite long-standing issue, as I've been experiencing through several versions, including the current one (3.1). I can reproduce this 100% of the times, on multiple host O/S distributions (the current one being based on Ubuntu 18.04 x86-64). I compile QEMU directly from source, and execute it via commandline; the command is very long, however, the relevant part is standard (I think): -usb \ -device usb-tablet \ -device usb-host,vendorid=3D0x$VGAPT_XBOX_PAD_VEND_ID,productid=3D0x$= VGAPT_XBOX_PAD_PROD_ID \ The guest is Windows 10 64bit. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1809665/+subscriptions