• [gentoo-user] USB random disconnections in VB Win10 VM

    From Mark Knecht@21:1/5 to All on Thu Jul 14 19:50:01 2022
    Does anyone have experience with what causes random USB disconnects in a Virtualbox VM and possibly how to fix them?

    I have a new external DSP processor box that connects to Windows host
    software over USB. If I dual boot my Linux box into Win10 the control
    software works fine for as long as I want to use it. Communication is bi-directional and everything is great.

    If instead I'm in Linux with a Win10 VM running I can run the same software
    in the VM, and it will always see the external DSP when first started, but
    at random times, generally 5-20 seconds but never more than 5 minutes, the software will tell me the USB connection has been interrupted and I am
    forced in the software to reestablish a connection. I am always able to reconnect but I am so far unable to keep it connected.

    I've tried the VB USB 1.1, 2.0 and 3.0 virtual interfaces. Only 3.0 works
    at all.

    I have tried multiple USB ports on the host machine. All work in native Windows. All work in Virtualbox but all disconnect.

    I see absolutely no messages of any type about USB disconnection in dmesg.
    I don't know where else to look.

    The Virtualbox logs aren't clear to me so I'm studying those at this time,
    as well as asking in the VIrtualbox forums and here.

    Thanks in advance,
    Mark

    <div dir="ltr">Does anyone have experience with what causes random USB disconnects in a Virtualbox VM and possibly how to fix them?<div><br></div><div>I have a new external DSP processor box that connects to Windows host software over USB. If I dual
    boot my Linux box into Win10 the control software works fine for as long as I want to use it. Communication is bi-directional and everything is great.</div><div><br></div><div>If instead I&#39;m in Linux with a Win10 VM running I can run the same
    software in the VM, and it will always see the external DSP when first started, but at random times, generally 5-20 seconds but never more than 5 minutes, the software will tell me the USB connection has been interrupted and I am forced in the software
    to reestablish a connection. I am always able to reconnect but I am so far unable to keep it connected.</div><div><br></div><div>I&#39;ve tried the VB USB 1.1, 2.0 and 3.0 virtual interfaces. Only 3.0 works at all. </div><div><br></div><div>I have tried
    multiple USB ports on the host machine. All work in native Windows. All work in Virtualbox but all disconnect.</div><div><br></div><div>I see absolutely no messages of any type about USB disconnection in dmesg. I don&#39;t know where else to look.</div><
    <br></div><div>The Virtualbox logs aren&#39;t clear to me so I&#39;m studying those at this time, as well as asking in the VIrtualbox forums and here.</div><div><br></div><div>Thanks in advance,</div><div>Mark</div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Thu Jul 14 18:57:15 2022
    On Thursday, 14 July 2022 18:42:10 BST Mark Knecht wrote:
    Does anyone have experience with what causes random USB disconnects in a Virtualbox VM and possibly how to fix them?

    I have a new external DSP processor box that connects to Windows host software over USB. If I dual boot my Linux box into Win10 the control software works fine for as long as I want to use it. Communication is bi-directional and everything is great.

    If instead I'm in Linux with a Win10 VM running I can run the same software in the VM, and it will always see the external DSP when first started, but
    at random times, generally 5-20 seconds but never more than 5 minutes, the software will tell me the USB connection has been interrupted and I am
    forced in the software to reestablish a connection. I am always able to reconnect but I am so far unable to keep it connected.

    I've tried the VB USB 1.1, 2.0 and 3.0 virtual interfaces. Only 3.0 works
    at all.

    I have tried multiple USB ports on the host machine. All work in native Windows. All work in Virtualbox but all disconnect.

    I see absolutely no messages of any type about USB disconnection in dmesg.
    I don't know where else to look.

    The Virtualbox logs aren't clear to me so I'm studying those at this time,
    as well as asking in the VIrtualbox forums and here.

    Thanks in advance,
    Mark

    I don't recall having noticed a similar problem with different USB devices on a Win10 VM here, but just in case have you checked USB power saving settings?

    https://www.windowscentral.com/how-prevent-windows-10-turning-usb-devices


    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmLQWPsACgkQseqq9sKV ZxkzOw/6AtsR6aQQRwZG77F0h/Q5Ex/RcHZnduq1uSanhEEJsd2BUF99eH3HEET1 zbXq3WHkYxmLW4X9UfJrqoKlhIpboywCsviWpzACars4jMbYCdLHYYGuSzxEkaPA SbTbShl7dt55AwsM84T8JVwx0YfCLY0bbM/FAsBBJaAyUwESfICtDeJvuQ2odH0o tyeagwomAMRWkSslqiM07Vpt5kCawmKAX4xXK1QCqBrrGka30rIvz+GRJMaoyl0x Sip6NEQVxLy9/nN/y9rwCnxLdqq9ZJ8DBgG+8/t9Z0n/9BumlPUrn+4oHKFlurVJ ADlHkXH+lCgAYbV3X03XUKkwJ6P4ttW8CQLq7eYrdE6tEg6Ktw4EWOAjmBHjgyIT A8NWBB9wowEuBibb2aqUNFa/u50LB6ElP9K3oGU0R8WIPk64uuN8uqoT1HYB6+6X bT18QHRAS9YQ2lbDKOYNXCEPKalFeqqQGMjhRUTR+5JEnt08bwFNeRdcKLlZSsLF CjHrekgDD/p/hq7w2sEVf745kWt0X559GI3muEttd+y/3kGlObPbon86xKs+WhNO cUdRViDsVwtyIvGstVr7TgN79Tve1ExkxWnEcFN2Vv8doCY3Y4v+Tgeuc5kNjrPG DB1rm0hl+24C9KD/iCTOIakcLm6DeggT9Lfn9yzNmkLcm0K/N3Q=
    =6owz
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark Knecht@21:1/5 to confabulate@kintzios.com on Thu Jul 14 23:10:01 2022
    On Thu, Jul 14, 2022 at 10:58 AM Michael <confabulate@kintzios.com> wrote:

    On Thursday, 14 July 2022 18:42:10 BST Mark Knecht wrote:
    Does anyone have experience with what causes random USB disconnects in a Virtualbox VM and possibly how to fix them?

    <SNIP>


    I don't recall having noticed a similar problem with different USB
    devices on a
    Win10 VM here, but just in case have you checked USB power saving
    settings?

    https://www.windowscentral.com/how-prevent-windows-10-turning-usb-devices

    Michael,
    I had all basic power management completely disabled in the VM.

    I did not know about the USB Selective Suspend feature. After a reboot I thought it might have helped but about 4 minutes after starting the app it
    once again says connection interrupted.

    Still looking,
    Mark

    <div dir="ltr"><br><br>On Thu, Jul 14, 2022 at 10:58 AM Michael &lt;<a href="mailto:confabulate@kintzios.com">confabulate@kintzios.com</a>&gt; wrote:<br>&gt;<br>&gt; On Thursday, 14 July 2022 18:42:10 BST Mark Knecht wrote:<br>&gt; &gt; Does anyone have
    experience with what causes random USB disconnects in a<br>&gt; &gt; Virtualbox VM and possibly how to fix them?<br><br>&lt;SNIP&gt;<div><br>&gt;<br>&gt; I don&#39;t recall having noticed a similar problem with different USB devices on a<br>&gt; Win10 VM
    here, but just in case have you checked USB power saving settings?<br>&gt;<br>&gt; <a href="https://www.windowscentral.com/how-prevent-windows-10-turning-usb-devices">https://www.windowscentral.com/how-prevent-windows-10-turning-usb-devices</a></div><div>
    <br></div><div>Michael,</div><div>   I had all basic power management completely disabled in the VM.</div><div><br></div><div>   I did not know about the USB Selective Suspend feature. After a reboot I thought it might have helped but about 4 minutes
    after starting the app it once again says connection interrupted.</div><div><br></div><div>Still looking,</div><div>Mark</div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Wol@21:1/5 to Mark Knecht on Fri Jul 15 01:30:01 2022
    On 14/07/2022 18:42, Mark Knecht wrote:
    If instead I'm in Linux with a Win10 VM running I can run the same
    software in the VM, and it will always see the external DSP when first started, but at random times, generally 5-20 seconds but never more than
    5 minutes, the software will tell me the USB connection has been
    interrupted and I am forced in the software to reestablish a connection.
    I am always able to reconnect but I am so far unable to keep it connected.

    Is there a setting in VB to say "take over the USB port"? ISTR something
    of the sort, which would basically let Win10 take over the port and
    drive it, with linux out of the picture.

    Don't trust me on this, I don't play with USB and it's ages since I
    stumbled across this, but it's worth taking a look.

    Cheers,
    Wol

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark Knecht@21:1/5 to antlists@youngman.org.uk on Fri Jul 15 02:00:01 2022
    On Thu, Jul 14, 2022, 4:25 PM Wol <antlists@youngman.org.uk> wrote:

    On 14/07/2022 18:42, Mark Knecht wrote:
    If instead I'm in Linux with a Win10 VM running I can run the same
    software in the VM, and it will always see the external DSP when first started, but at random times, generally 5-20 seconds but never more than
    5 minutes, the software will tell me the USB connection has been interrupted and I am forced in the software to reestablish a connection.
    I am always able to reconnect but I am so far unable to keep it
    connected.

    Is there a setting in VB to say "take over the USB port"? ISTR something
    of the sort, which would basically let Win10 take over the port and
    drive it, with linux out of the picture.

    Don't trust me on this, I don't play with USB and it's ages since I
    stumbled across this, but it's worth taking a look.

    Cheers,
    Wol


    Good questions. I'm not sure with USB. As I understand it there
    are options in Virtualbox to pass through complete pieces of hardware.
    I've read that people do this with complete graphics cards. In theory
    possibly it could be done with USB but my guess is it might be
    difficult as most USB controllers are part of the chipset. Still, it's worth some study.

    As this DSP processor is identified as an audio device I wondered
    today if possibly pulseaudio might be trying to grab it. I intend to
    look into configuring PA not to touch it.

    There's also (possibly) blacklisting certain USB device IDs. In the
    VM I configured it to understand the device ID and hook to it.
    Possibly I can tell the Linux USB stack to ignore this device so that
    PA or some other part of the system just stays away.

    But being that the DSP device is an guitar amplifier modeler
    and my new Tele came back from my guitar tech at lunchtime
    I spent the afternoon playing the guitar! Nonproductive but fun!

    Thanks for the ideas,
    Mark

    <div dir="ltr"><br><br><br>On Thu, Jul 14, 2022, 4:25 PM Wol &lt;<a href="mailto:antlists@youngman.org.uk">antlists@youngman.org.uk</a>&gt; wrote:<br>&gt;<br>&gt; On 14/07/2022 18:42, Mark Knecht wrote:<br>&gt; &gt; If instead I&#39;m in Linux with a
    Win10 VM running I can run the same<br>&gt; &gt; software in the VM, and it will always see the external DSP when first<br>&gt; &gt; started, but at random times, generally 5-20 seconds but never more than<br>&gt; &gt; 5 minutes, the software will tell
    me the USB connection has been<br>&gt; &gt; interrupted and I am forced in the software to reestablish a connection.<br>&gt; &gt; I am always able to reconnect but I am so far unable to keep it connected.<br>&gt;<br>&gt; Is there a setting in VB to say &
    quot;take over the USB port&quot;? ISTR something<br>&gt; of the sort, which would basically let Win10 take over the port and<br>&gt; drive it, with linux out of the picture.<br>&gt;<br>&gt; Don&#39;t trust me on this, I don&#39;t play with USB and it&#
    39;s ages since I<br>&gt; stumbled across this, but it&#39;s worth taking a look.<br>&gt;<br>&gt; Cheers,<br>&gt; Wol<br><br>
    <div><br></div><div>Good questions. I&#39;m not sure with USB. As I understand it there</div><div>are options in Virtualbox to pass through complete pieces of hardware.</div><div>I&#39;ve read that people do this with complete graphics cards. In theory</
    <div>possibly it could be done with USB but my guess is it might be</div><div>difficult as most USB controllers are part of the chipset. Still, it&#39;s worth</div><div>some study.</div><div><br></div><div>As this DSP processor is identified as an
    audio device I wondered</div><div>today if possibly pulseaudio might be trying to grab it. I intend to</div><div>look into configuring PA not to touch it.</div><div><br></div><div>There&#39;s also (possibly) blacklisting certain USB device IDs. In the </
    <div>VM I configured it to understand the device ID and hook to it.</div><div>Possibly I can tell the Linux USB stack to ignore this device so that</div><div>PA or some other part of the system just stays away.</div><div><br></div><div>But being that
    the DSP device is an guitar amplifier modeler</div><div>and my new Tele came back from my guitar tech at lunchtime</div><div>I spent the afternoon playing the guitar! Nonproductive but fun!</div><div><br></div><div>Thanks for the ideas,</div><div>Mark</
    </div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark Knecht@21:1/5 to markknecht@gmail.com on Fri Jul 15 16:20:01 2022
    On Thu, Jul 14, 2022 at 4:53 PM Mark Knecht <markknecht@gmail.com> wrote:




    On Thu, Jul 14, 2022, 4:25 PM Wol <antlists@youngman.org.uk> wrote:

    On 14/07/2022 18:42, Mark Knecht wrote:
    If instead I'm in Linux with a Win10 VM running I can run the same software in the VM, and it will always see the external DSP when first started, but at random times, generally 5-20 seconds but never more
    than
    5 minutes, the software will tell me the USB connection has been interrupted and I am forced in the software to reestablish a
    connection.
    I am always able to reconnect but I am so far unable to keep it
    connected.

    Is there a setting in VB to say "take over the USB port"? ISTR something
    of the sort, which would basically let Win10 take over the port and
    drive it, with linux out of the picture.

    Don't trust me on this, I don't play with USB and it's ages since I stumbled across this, but it's worth taking a look.

    Cheers,
    Wol


    Good questions. I'm not sure with USB. As I understand it there
    are options in Virtualbox to pass through complete pieces of hardware.
    I've read that people do this with complete graphics cards. In theory possibly it could be done with USB but my guess is it might be
    difficult as most USB controllers are part of the chipset. Still, it's
    worth
    some study.

    As this DSP processor is identified as an audio device I wondered
    today if possibly pulseaudio might be trying to grab it. I intend to
    look into configuring PA not to touch it.

    There's also (possibly) blacklisting certain USB device IDs. In the
    VM I configured it to understand the device ID and hook to it.
    Possibly I can tell the Linux USB stack to ignore this device so that
    PA or some other part of the system just stays away.

    But being that the DSP device is an guitar amplifier modeler
    and my new Tele came back from my guitar tech at lunchtime
    I spent the afternoon playing the guitar! Nonproductive but fun!

    Thanks for the ideas,
    Mark


    More or less solved this morning apparently. We'll see after more time
    has elapsed.

    My desktop environment is KDE. MY sound environment is then, by
    default, pulseaudio. By disabling the DSP processor as a sound
    device in KDE System Settings I've now been running the VM
    and support software for about 90 minutes with only 1 disconnection
    which came the very first time I did something in KDE (started a
    new chrome window) after starting the control software in the VM.

    Since then I have had no more disconnections.

    I will have to see how it does over the rest of the day and weeks
    ahead but it's certainly acting better right now.

    Cheers,
    Mark

    <div dir="ltr"><br><br>On Thu, Jul 14, 2022 at 4:53 PM Mark Knecht &lt;<a href="mailto:markknecht@gmail.com">markknecht@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; On Thu, Jul 14, 2022, 4:25 PM Wol &lt;<a href="mailto:antlists@
    youngman.org.uk">antlists@youngman.org.uk</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; On 14/07/2022 18:42, Mark Knecht wrote:<br>&gt; &gt; &gt; If instead I&#39;m in Linux with a Win10 VM running I can run the same<br>&gt; &gt; &gt; software in the VM, and
    it will always see the external DSP when first<br>&gt; &gt; &gt; started, but at random times, generally 5-20 seconds but never more than<br>&gt; &gt; &gt; 5 minutes, the software will tell me the USB connection has been<br>&gt; &gt; &gt; interrupted and
    I am forced in the software to reestablish a connection.<br>&gt; &gt; &gt; I am always able to reconnect but I am so far unable to keep it connected.<br>&gt; &gt;<br>&gt; &gt; Is there a setting in VB to say &quot;take over the USB port&quot;? ISTR
    something<br>&gt; &gt; of the sort, which would basically let Win10 take over the port and<br>&gt; &gt; drive it, with linux out of the picture.<br>&gt; &gt;<br>&gt; &gt; Don&#39;t trust me on this, I don&#39;t play with USB and it&#39;s ages since I<br>&
    gt; &gt; stumbled across this, but it&#39;s worth taking a look.<br>&gt; &gt;<br>&gt; &gt; Cheers,<br>&gt; &gt; Wol<br>&gt;<br>&gt;<br>&gt; Good questions. I&#39;m not sure with USB. As I understand it there<br>&gt; are options in Virtualbox to pass
    through complete pieces of hardware.<br>&gt; I&#39;ve read that people do this with complete graphics cards. In theory<br>&gt; possibly it could be done with USB but my guess is it might be<br>&gt; difficult as most USB controllers are part of the
    chipset. Still, it&#39;s worth<br>&gt; some study.<br>&gt;<br>&gt; As this DSP processor is identified as an audio device I wondered<br>&gt; today if possibly pulseaudio might be trying to grab it. I intend to<br>&gt; look into configuring PA not to
    touch it.<br>&gt;<br>&gt; There&#39;s also (possibly) blacklisting certain USB device IDs. In the <br>&gt; VM I configured it to understand the device ID and hook to it.<br>&gt; Possibly I can tell the Linux USB stack to ignore this device so that<br>&gt;
    PA or some other part of the system just stays away.<br>&gt;<br>&gt; But being that the DSP device is an guitar amplifier modeler<br>&gt; and my new Tele came back from my guitar tech at lunchtime<br>&gt; I spent the afternoon playing the guitar!
    Nonproductive but fun!<br>&gt;<br>&gt; Thanks for the ideas,<br>&gt; Mark<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
    </blockquote></div><div><br></div><div>More or less solved this morning apparently. We&#39;ll see after more time</div><div>has elapsed.</div><div><br></div><div>My desktop environment is KDE. MY sound environment is then, by</div><div>default,
    pulseaudio. By disabling the DSP processor as a sound</div><div>device in KDE System Settings I&#39;ve now been running the VM</div><div>and support software for about 90 minutes with only 1 disconnection</div><div>which came the very first time I did
    something in KDE (started a </div><div>new chrome window) after starting the control software in the VM.</div><div><br></div><div>Since then I have had no more disconnections.</div><div><br></div><div>I will have to see how it does over the rest of the
    day and weeks</div><div>ahead but it&#39;s certainly acting better right now.</div><div><br></div><div>Cheers,</div><div>Mark</div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)