Raspbian: can't use USB device again after sharing without reboot

Hi,
i use a Pi3 with Raspbian. After i start vhusbdpin share the xbox360 controller with windows and stop vhusbdpin, the xbox360 controller is no longer usable under Raspbian. I tried to modprobe -r xpad and modprobe xpad, but it still isn't found. If i reboot the Pi3 the controller works again. How can i get the controller working without reboot?

#2

Stop and exit the virtualhere server. Edit the config.ini file and add the line

AutoAttachToKernel=1

then restart the virtualhere server. Now when you stop using a device via virtualhere it will be reattached to the server kernel so you can use it locally.

#3

Sorry, doesn't work. Tried it with xpad and usb keyboard, if i stop the device in virtualhere client the device doesn't reattach, self if i kill the vhusb-server with or without release of the device.

#5

I've got the same issue I think: All works well, until a USB device shuts down. Once back on power, I cannot share it. Unless I reboot the linux server of course, it finds the USB devices then. Wanted to be able to switch off / on the devices without having to reboot the server. Dmesg says the repowered devices reconnect - but the service doesn't take notice. How can I make it re-scan USB devices?

enable autoattachkernel=1 did not help.

#6

Try some of these http://unix.stackexchange.com/questions/7412/how-to-reconnect-a-logical…

if you have the setting

AutoAttachToKernel=1

virtualhere will ask the server kernel to reattach the device to itself after you have finished using it. If you turn off/on the ports then that separate to virtualhere. I would have thought the kernel would detect the device power disappearing and appearing but if not you might have to use one of the workarounds above. Unless your server is not actually repowering the port but disabling it or something...