Software power-off each ports of the usb hub

Similar discussion here http://superuser.com/a/528492

I have usb modem (under linux) that needs to be plug/unplugged every time it lost connection, I think this is common problem.

I have done simple research, and I think power-off a usb device is not supported by the kernel, it could ask, but if the device refused to shutdown or the operation is not supported there’s nothing the kernel could do.

My current solution is using homemade python monitoring script, arduino and MOSFET to forcefully power-off the usb modem.

My current problem is since I am using cheap usb hub, the usb hub itself need to be plug/unplugged sometimes :frowning:

Does pluggable usb hub supports hub-ctrl.c mentioned in the superuser.com link? If it does I could drop my arduino setup.

PS: sorry for my bad english :stuck_out_tongue:

Hello Fahri,

Yes, Plugable Hubs support hub-ctrl without any issue. I have tested this myself on one of our computers running Ubuntu 13.10. Our USB2-HUB10S and our USB2-HUB-AG7 will work without issue.
It’s a little trickier with USB 3.0 hubs due to the system seeing these hubs as two separate adapters(One USB 2.0 Hub and one USB 3.0 Hub).

Please let me know if you have any more questions!

Sincerely,
Ivan
Plugable Technologies

Thanks, I’ll try the USB2, I don’t know how to setup USB3.

Tried it at home, unfortunately the usb modem is still powered after ‘hub-ctrl -h 0 -P 5 -p 0’, so the power is not cut off.