Re: Is there a way to logically unplug and replug a USB device to achieve the same re
It's easy enough to remove the device with this, but it doesn't appear to be possible to rescan the usb bus to detect it again.
which would be the preferred way as it only affects a single device.
echo 1 | sudo tee /sys/bus/usb/devices/usb1/remove
Where as the below works fine but it causes everything on the bus to first be removed.
'ehci_hcd' is the driver for the usb hub, it may be ohci or xhci depending on your hardware.
echo "00:1a.0" | sudo tee /sys/bus/pci/drivers/ehci_hcd/unbind
echo "00:1a.0" | sudo tee /sys/bus/pci/drivers/ehci_hcd/bind
The other method involves building a small C application which may be the best method.
Mark your thread as [SOLVED], use Thread Tools on forum page.