QEMU USB HID device (gamepad) is reset all the time when in use












0















I try to run a Windows 10 VM with GPU passthru, that works fine but my gamepad , actualy a Betaflight flight controller running in HID mode, is resetted all the time.



The controller works on the host system (Ubuntu 18).
Kernel version:
Linux sil 4.18.0-16-generic #17~18.04.1-Ubuntu SMP Tue Feb 12 13:35:51 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux



dmesg after plugging it in:

[ 5236.675786] usb 3-1: new full-speed USB device number 23 using xhci_hcd
[ 5236.828939] usb 3-1: New USB device found, idVendor=0483, idProduct=3256, bcdDevice= 2.00
[ 5236.828943] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5236.828945] usb 3-1: Product: MatekF411
[ 5236.828947] usb 3-1: Manufacturer: Betaflight
[ 5236.828949] usb 3-1: SerialNumber: 0x8000000
[ 5236.831498] input: Betaflight MatekF411 as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/0003:0483:3256.0020/input/input59
[ 5236.831704] hid-generic 0003:0483:3256.0020: input,hidraw2: USB HID v1.11 Gamepad [Betaflight MatekF411] on usb-0000:00:14.0-1/input0
[ 5236.831928] cdc_acm 3-1:1.1: ttyACM0: USB ACM device



dmesg after VM is started:

[ 5286.246448] audit: type=1400 audit(1552424464.131:129): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libvirt-78575cdf-adbb-4437-8a18-a4615f5575a0" pid=10341 comm="apparmor_parser"
[ 5286.750741] audit: type=1400 audit(1552424464.635:130): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="libvirt-78575cdf-adbb-4437-8a18-a4615f5575a0" pid=10357 comm="apparmor_parser"
[ 5286.924865] audit: type=1400 audit(1552424464.811:131): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="libvirt-78575cdf-adbb-4437-8a18-a4615f5575a0" pid=10360 comm="apparmor_parser"
[ 5287.098850] audit: type=1400 audit(1552424464.983:132): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="libvirt-78575cdf-adbb-4437-8a18-a4615f5575a0" pid=10363 comm="apparmor_parser"
[ 5287.102253] virbr0: port 2(vnet0) entered blocking state
[ 5287.102255] virbr0: port 2(vnet0) entered disabled state
[ 5287.102294] device vnet0 entered promiscuous mode
[ 5287.102439] virbr0: port 2(vnet0) entered blocking state
[ 5287.102440] virbr0: port 2(vnet0) entered listening state
[ 5287.278592] audit: type=1400 audit(1552424465.163:133): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="libvirt-78575cdf-adbb-4437-8a18-a4615f5575a0" pid=10389 comm="apparmor_parser"
[ 5287.912886] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x1e@0x258
[ 5287.912897] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x19@0x900
[ 5289.120700] virbr0: port 2(vnet0) entered learning state
[ 5289.249049] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
[ 5289.524998] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
[ 5291.136692] virbr0: port 2(vnet0) entered forwarding state
[ 5291.136699] virbr0: topology change detected, propagating
[ 5296.117002] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
[ 5296.512972] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
[ 5297.641034] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
[ 5297.941119] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
[ 5298.241075] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
[ 5298.517109] usb 3-1: reset full-speed USB device number 23 using xhci_hcd










share|improve this question







New contributor




Daniel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I try to run a Windows 10 VM with GPU passthru, that works fine but my gamepad , actualy a Betaflight flight controller running in HID mode, is resetted all the time.



    The controller works on the host system (Ubuntu 18).
    Kernel version:
    Linux sil 4.18.0-16-generic #17~18.04.1-Ubuntu SMP Tue Feb 12 13:35:51 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux



    dmesg after plugging it in:

    [ 5236.675786] usb 3-1: new full-speed USB device number 23 using xhci_hcd
    [ 5236.828939] usb 3-1: New USB device found, idVendor=0483, idProduct=3256, bcdDevice= 2.00
    [ 5236.828943] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [ 5236.828945] usb 3-1: Product: MatekF411
    [ 5236.828947] usb 3-1: Manufacturer: Betaflight
    [ 5236.828949] usb 3-1: SerialNumber: 0x8000000
    [ 5236.831498] input: Betaflight MatekF411 as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/0003:0483:3256.0020/input/input59
    [ 5236.831704] hid-generic 0003:0483:3256.0020: input,hidraw2: USB HID v1.11 Gamepad [Betaflight MatekF411] on usb-0000:00:14.0-1/input0
    [ 5236.831928] cdc_acm 3-1:1.1: ttyACM0: USB ACM device



    dmesg after VM is started:

    [ 5286.246448] audit: type=1400 audit(1552424464.131:129): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libvirt-78575cdf-adbb-4437-8a18-a4615f5575a0" pid=10341 comm="apparmor_parser"
    [ 5286.750741] audit: type=1400 audit(1552424464.635:130): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="libvirt-78575cdf-adbb-4437-8a18-a4615f5575a0" pid=10357 comm="apparmor_parser"
    [ 5286.924865] audit: type=1400 audit(1552424464.811:131): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="libvirt-78575cdf-adbb-4437-8a18-a4615f5575a0" pid=10360 comm="apparmor_parser"
    [ 5287.098850] audit: type=1400 audit(1552424464.983:132): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="libvirt-78575cdf-adbb-4437-8a18-a4615f5575a0" pid=10363 comm="apparmor_parser"
    [ 5287.102253] virbr0: port 2(vnet0) entered blocking state
    [ 5287.102255] virbr0: port 2(vnet0) entered disabled state
    [ 5287.102294] device vnet0 entered promiscuous mode
    [ 5287.102439] virbr0: port 2(vnet0) entered blocking state
    [ 5287.102440] virbr0: port 2(vnet0) entered listening state
    [ 5287.278592] audit: type=1400 audit(1552424465.163:133): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="libvirt-78575cdf-adbb-4437-8a18-a4615f5575a0" pid=10389 comm="apparmor_parser"
    [ 5287.912886] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x1e@0x258
    [ 5287.912897] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x19@0x900
    [ 5289.120700] virbr0: port 2(vnet0) entered learning state
    [ 5289.249049] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
    [ 5289.524998] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
    [ 5291.136692] virbr0: port 2(vnet0) entered forwarding state
    [ 5291.136699] virbr0: topology change detected, propagating
    [ 5296.117002] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
    [ 5296.512972] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
    [ 5297.641034] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
    [ 5297.941119] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
    [ 5298.241075] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
    [ 5298.517109] usb 3-1: reset full-speed USB device number 23 using xhci_hcd










    share|improve this question







    New contributor




    Daniel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I try to run a Windows 10 VM with GPU passthru, that works fine but my gamepad , actualy a Betaflight flight controller running in HID mode, is resetted all the time.



      The controller works on the host system (Ubuntu 18).
      Kernel version:
      Linux sil 4.18.0-16-generic #17~18.04.1-Ubuntu SMP Tue Feb 12 13:35:51 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux



      dmesg after plugging it in:

      [ 5236.675786] usb 3-1: new full-speed USB device number 23 using xhci_hcd
      [ 5236.828939] usb 3-1: New USB device found, idVendor=0483, idProduct=3256, bcdDevice= 2.00
      [ 5236.828943] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      [ 5236.828945] usb 3-1: Product: MatekF411
      [ 5236.828947] usb 3-1: Manufacturer: Betaflight
      [ 5236.828949] usb 3-1: SerialNumber: 0x8000000
      [ 5236.831498] input: Betaflight MatekF411 as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/0003:0483:3256.0020/input/input59
      [ 5236.831704] hid-generic 0003:0483:3256.0020: input,hidraw2: USB HID v1.11 Gamepad [Betaflight MatekF411] on usb-0000:00:14.0-1/input0
      [ 5236.831928] cdc_acm 3-1:1.1: ttyACM0: USB ACM device



      dmesg after VM is started:

      [ 5286.246448] audit: type=1400 audit(1552424464.131:129): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libvirt-78575cdf-adbb-4437-8a18-a4615f5575a0" pid=10341 comm="apparmor_parser"
      [ 5286.750741] audit: type=1400 audit(1552424464.635:130): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="libvirt-78575cdf-adbb-4437-8a18-a4615f5575a0" pid=10357 comm="apparmor_parser"
      [ 5286.924865] audit: type=1400 audit(1552424464.811:131): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="libvirt-78575cdf-adbb-4437-8a18-a4615f5575a0" pid=10360 comm="apparmor_parser"
      [ 5287.098850] audit: type=1400 audit(1552424464.983:132): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="libvirt-78575cdf-adbb-4437-8a18-a4615f5575a0" pid=10363 comm="apparmor_parser"
      [ 5287.102253] virbr0: port 2(vnet0) entered blocking state
      [ 5287.102255] virbr0: port 2(vnet0) entered disabled state
      [ 5287.102294] device vnet0 entered promiscuous mode
      [ 5287.102439] virbr0: port 2(vnet0) entered blocking state
      [ 5287.102440] virbr0: port 2(vnet0) entered listening state
      [ 5287.278592] audit: type=1400 audit(1552424465.163:133): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="libvirt-78575cdf-adbb-4437-8a18-a4615f5575a0" pid=10389 comm="apparmor_parser"
      [ 5287.912886] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x1e@0x258
      [ 5287.912897] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x19@0x900
      [ 5289.120700] virbr0: port 2(vnet0) entered learning state
      [ 5289.249049] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
      [ 5289.524998] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
      [ 5291.136692] virbr0: port 2(vnet0) entered forwarding state
      [ 5291.136699] virbr0: topology change detected, propagating
      [ 5296.117002] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
      [ 5296.512972] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
      [ 5297.641034] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
      [ 5297.941119] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
      [ 5298.241075] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
      [ 5298.517109] usb 3-1: reset full-speed USB device number 23 using xhci_hcd










      share|improve this question







      New contributor




      Daniel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I try to run a Windows 10 VM with GPU passthru, that works fine but my gamepad , actualy a Betaflight flight controller running in HID mode, is resetted all the time.



      The controller works on the host system (Ubuntu 18).
      Kernel version:
      Linux sil 4.18.0-16-generic #17~18.04.1-Ubuntu SMP Tue Feb 12 13:35:51 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux



      dmesg after plugging it in:

      [ 5236.675786] usb 3-1: new full-speed USB device number 23 using xhci_hcd
      [ 5236.828939] usb 3-1: New USB device found, idVendor=0483, idProduct=3256, bcdDevice= 2.00
      [ 5236.828943] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      [ 5236.828945] usb 3-1: Product: MatekF411
      [ 5236.828947] usb 3-1: Manufacturer: Betaflight
      [ 5236.828949] usb 3-1: SerialNumber: 0x8000000
      [ 5236.831498] input: Betaflight MatekF411 as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/0003:0483:3256.0020/input/input59
      [ 5236.831704] hid-generic 0003:0483:3256.0020: input,hidraw2: USB HID v1.11 Gamepad [Betaflight MatekF411] on usb-0000:00:14.0-1/input0
      [ 5236.831928] cdc_acm 3-1:1.1: ttyACM0: USB ACM device



      dmesg after VM is started:

      [ 5286.246448] audit: type=1400 audit(1552424464.131:129): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libvirt-78575cdf-adbb-4437-8a18-a4615f5575a0" pid=10341 comm="apparmor_parser"
      [ 5286.750741] audit: type=1400 audit(1552424464.635:130): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="libvirt-78575cdf-adbb-4437-8a18-a4615f5575a0" pid=10357 comm="apparmor_parser"
      [ 5286.924865] audit: type=1400 audit(1552424464.811:131): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="libvirt-78575cdf-adbb-4437-8a18-a4615f5575a0" pid=10360 comm="apparmor_parser"
      [ 5287.098850] audit: type=1400 audit(1552424464.983:132): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="libvirt-78575cdf-adbb-4437-8a18-a4615f5575a0" pid=10363 comm="apparmor_parser"
      [ 5287.102253] virbr0: port 2(vnet0) entered blocking state
      [ 5287.102255] virbr0: port 2(vnet0) entered disabled state
      [ 5287.102294] device vnet0 entered promiscuous mode
      [ 5287.102439] virbr0: port 2(vnet0) entered blocking state
      [ 5287.102440] virbr0: port 2(vnet0) entered listening state
      [ 5287.278592] audit: type=1400 audit(1552424465.163:133): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="libvirt-78575cdf-adbb-4437-8a18-a4615f5575a0" pid=10389 comm="apparmor_parser"
      [ 5287.912886] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x1e@0x258
      [ 5287.912897] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x19@0x900
      [ 5289.120700] virbr0: port 2(vnet0) entered learning state
      [ 5289.249049] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
      [ 5289.524998] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
      [ 5291.136692] virbr0: port 2(vnet0) entered forwarding state
      [ 5291.136699] virbr0: topology change detected, propagating
      [ 5296.117002] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
      [ 5296.512972] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
      [ 5297.641034] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
      [ 5297.941119] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
      [ 5298.241075] usb 3-1: reset full-speed USB device number 23 using xhci_hcd
      [ 5298.517109] usb 3-1: reset full-speed USB device number 23 using xhci_hcd







      qemu hid






      share|improve this question







      New contributor




      Daniel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Daniel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Daniel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 hours ago









      DanielDaniel

      11




      11




      New contributor




      Daniel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Daniel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Daniel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Daniel is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f505963%2fqemu-usb-hid-device-gamepad-is-reset-all-the-time-when-in-use%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Daniel is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Daniel is a new contributor. Be nice, and check out our Code of Conduct.













          Daniel is a new contributor. Be nice, and check out our Code of Conduct.












          Daniel is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f505963%2fqemu-usb-hid-device-gamepad-is-reset-all-the-time-when-in-use%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Histoire des bourses de valeurs

          Why is there Russian traffic in my log files?

          Rename multiple files to decrement number in file name?