connect/disconnect issues on Raspberry PI B+

Hello.

I am using an old version of Virtualhere (server) on a Raspberry PI B+ (2016, never updated)

I have 4 deviced connected: 1x wireless mouse, 1x wirless keyboard and 2x XBOX one controllers.

When I play games, sometimes (random) the 2nd controller disconnect & reconnect (auto connect devices) for no reason, while the other 3 devices operates normally.

What to do?

#2

It might be worth just downloading the latest virtualhere binary from here https://www.virtualhere.com/usb_server_software and overwriting the existing one on your pi and then rebooting and see if that resolves it.

#3

Done.

It keeps disconnecting. What now?

#4

When it happens. Can you grep vhusbd /var/log/syslog and see what it shows at that time.  It might just be a power issue. If it shows "SURPRISE DISCONNECT" then its a power issue

#5

This is an entire evening of gaming:

 

Oct 16 21:03:15 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x1070180 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:03:15 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x1070580 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:03:15 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x10822c0 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:03:15 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x10a2e90 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:03:15 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x106fd90 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:03:15 raspberrypi vhusbdarmpi[869]: Device 114 [045e:028e] SURPRISE UNBOUND from connection 1

Oct 16 21:03:15 raspberrypi vhusbdarmpi[869]: Unmanaging device 114 [045e:028e]

Oct 16 21:03:15 raspberrypi vhusbdarmpi[869]: Found Full speed device [045e:028e] "©Microsoft Corporation, Controller" at address 114

Oct 16 21:03:15 raspberrypi vhusbdarmpi[869]: Executed "" for onReset.045e.028e

Oct 16 21:03:15 raspberrypi vhusbdarmpi[869]: Device 114 [045e:028e] BOUND to connection 1

Oct 16 21:03:16 raspberrypi vhusbdarmpi[869]: Executed "" for onReset.045e.028e

Oct 16 21:05:41 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x1070c50 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.5, Invalid argument (abort endpoint)

Oct 16 21:05:41 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x10e3b10 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:05:41 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x1070580 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:05:41 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x106fd30 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.5, Invalid argument (abort endpoint)

Oct 16 21:05:41 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x1082400 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:05:41 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x106fd60 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.5, Invalid argument (abort endpoint)

Oct 16 21:05:41 raspberrypi vhusbdarmpi[869]: Device 114 [045e:028e] SURPRISE UNBOUND from connection 1

Oct 16 21:05:41 raspberrypi vhusbdarmpi[869]: Unmanaging device 114 [045e:028e]

Oct 16 21:05:42 raspberrypi vhusbdarmpi[869]: Found Full speed device [045e:028e] "©Microsoft Corporation, Controller" at address 114

Oct 16 21:05:42 raspberrypi vhusbdarmpi[869]: Device 115 [045e:028e] SURPRISE UNBOUND from connection 1

Oct 16 21:05:42 raspberrypi vhusbdarmpi[869]: Unmanaging device 115 [045e:028e]

Oct 16 21:05:42 raspberrypi vhusbdarmpi[869]: Executed "" for onReset.045e.028e

Oct 16 21:05:42 raspberrypi vhusbdarmpi[869]: Device 114 [045e:028e] BOUND to connection 1

Oct 16 21:05:42 raspberrypi vhusbdarmpi[869]: Found Full speed device [045e:028e] "©Microsoft Corporation, Controller" at address 115

Oct 16 21:05:42 raspberrypi vhusbdarmpi[869]: Executed "" for onReset.045e.028e

Oct 16 21:05:42 raspberrypi vhusbdarmpi[869]: Device 115 [045e:028e] BOUND to connection 1

Oct 16 21:05:42 raspberrypi vhusbdarmpi[869]: Executed "" for onReset.045e.028e

Oct 16 21:05:42 raspberrypi vhusbdarmpi[869]: Executed "" for onReset.045e.028e

Oct 16 21:15:15 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x10e3d50 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.5, Invalid argument (abort endpoint)

Oct 16 21:15:15 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x10705b0 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.5, Invalid argument (abort endpoint)

Oct 16 21:15:15 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x106feb0 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.5, Invalid argument (abort endpoint)

Oct 16 21:15:15 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x10e3e90 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:15:15 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x1092a80 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:15:15 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x10701e0 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:15:15 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x106ff90 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.5, Invalid argument (abort endpoint)

Oct 16 21:15:15 raspberrypi vhusbdarmpi[869]: Device 114 [045e:028e] SURPRISE UNBOUND from connection 1

Oct 16 21:15:15 raspberrypi vhusbdarmpi[869]: Unmanaging device 114 [045e:028e]

Oct 16 21:15:15 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x1071110 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.5, Invalid argument (abort endpoint)

Oct 16 21:15:16 raspberrypi vhusbdarmpi[869]: Found Full speed device [045e:028e] "©Microsoft Corporation, Controller" at address 114

Oct 16 21:15:16 raspberrypi vhusbdarmpi[869]: Device 115 [045e:028e] SURPRISE UNBOUND from connection 1

Oct 16 21:15:16 raspberrypi vhusbdarmpi[869]: Unmanaging device 115 [045e:028e]

Oct 16 21:15:16 raspberrypi vhusbdarmpi[869]: Executed "" for onReset.045e.028e

Oct 16 21:15:16 raspberrypi vhusbdarmpi[869]: Device 114 [045e:028e] BOUND to connection 1

Oct 16 21:15:16 raspberrypi vhusbdarmpi[869]: Found Full speed device [045e:028e] "©Microsoft Corporation, Controller" at address 115

Oct 16 21:15:16 raspberrypi vhusbdarmpi[869]: Executed "" for onReset.045e.028e

Oct 16 21:15:16 raspberrypi vhusbdarmpi[869]: Device 115 [045e:028e] BOUND to connection 1

Oct 16 21:15:16 raspberrypi vhusbdarmpi[869]: Executed "" for onReset.045e.028e

Oct 16 21:15:17 raspberrypi vhusbdarmpi[869]: Executed "" for onReset.045e.028e

Oct 16 21:16:26 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x10705b0 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:16:26 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x1082370 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:16:26 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x10a2e70 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:16:26 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x1082280 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:16:26 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x1071000 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:16:26 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x10823e0 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:16:26 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x10823c0 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:16:26 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x10710f0 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:16:26 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x106ff30 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:16:26 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x106ff30 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:16:26 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x106ff30 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:16:26 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x10823f0 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:16:26 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x1070060 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:16:26 raspberrypi vhusbdarmpi[869]: Error 22 discarding urb 0x1070f50 for device /sys//devices/platform/soc/20980000.usb/usb1/1-1/1-1.4, Invalid argument (abort endpoint)

Oct 16 21:16:26 raspberrypi vhusbdarmpi[869]: Device 114 [045e:028e] SURPRISE UNBOUND from connection 1

Oct 16 21:16:26 raspberrypi vhusbdarmpi[869]: Unmanaging device 114 [045e:028e]

Oct 16 21:16:26 raspberrypi vhusbdarmpi[869]: Found Full speed device [045e:028e] "©Microsoft Corporation, Controller" at address 114

Oct 16 21:16:26 raspberrypi vhusbdarmpi[869]: Executed "" for onReset.045e.028e

Oct 16 21:16:26 raspberrypi vhusbdarmpi[869]: Device 114 [045e:028e] BOUND to connection 1

Oct 16 21:16:26 raspberrypi vhusbdarmpi[869]: Executed "" for onReset.045e.028e

Oct 16 22:31:25 raspberrypi vhusbdarmpi[869]: Connection 1 remotely disconnected gracefully (rx msg size)

Oct 16 22:31:33 raspberrypi vhusbdarmpi[869]: Device 112 [062a:5918] UNBOUND from connection 1

Oct 16 22:31:34 raspberrypi vhusbdarmpi[869]: Device 113 [03f0:d407] UNBOUND from connection 1

Oct 16 22:31:34 raspberrypi vhusbdarmpi[869]: Device 115 [045e:028e] UNBOUND from connection 1

Oct 16 22:31:34 raspberrypi vhusbdarmpi[869]: Device 114 [045e:028e] UNBOUND from connection 1

Oct 16 22:31:34 raspberrypi vhusbdarmpi[869]: Connection 1 successfully removed (reason:timeout)

Oct 16 22:32:51 raspberrypi avahi-daemon[353]: Service group file /services/vhusbd.service vanished, removing services.

Oct 16 22:32:53 raspberrypi vhusbdarmpi[869]: Unmanaging device 112 [062a:5918]

Oct 16 22:32:53 raspberrypi vhusbdarmpi[869]: Unmanaging device 113 [03f0:d407]

Oct 16 22:32:53 raspberrypi vhusbdarmpi[869]: Unmanaging device 115 [045e:028e]

Oct 16 22:32:54 raspberrypi vhusbdarmpi[869]: Unmanaging device 114 [045e:028e]

Oct 16 22:32:55 raspberrypi vhusbdarmpi[869]: >>> Shutdown <<<

#6

OK i see: SURPRISE UNBOUND , what that means is the device is disconnecting itself without virtualhere doing anything.  I think you should try these two things

  1. Update all the xbox controller/dongle firmware by directly plugging them into your pc and running the Xbox Accessories App from the Microsoft Store
  2.  If possible, use a separately powered usb hub between the pi and the usb devices.