RE: Programatic disconnect and reconnect of USB device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2 Dec 2011, Vane, Edwin wrote:

> I found the post that Greg mentioned about turning power off to ports
> (http://article.gmane.org/gmane.linux.usb.general/30383) but it
> doesn't seem to make any difference to the attached device until I
> use Simon's command for unbinding the driver:
> 
> echo -n '1-7' > /sys/bus/usb/drivers/usb/unbind
> 
> The post mentions that the 'hubpower' program should cause the driver
> to be unbound when issuing ioctl requests so I'm not sure what the
> difference is between that kind of unbind and whatever the above
> 'echo' command does.

Is 1-7 the attached device, or is it the hub the device is plugged 
into?

> However, I did notice that using the above command, even without
> 'hubpower' will cause 'lsusb -t' to segfault when run afterward. Is
> there something unsavoury about using the above echo command? Could
> you offer some insight into the behaviour I'm seeing?

There's nothing wrong with this command.  But did you try using the 
commands I suggested?

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux