External USB storage, controlled power off/on cycle

lexxai

Dabbler
Joined
Nov 9, 2016
Messages
33
I use external Seagate 10TB disk for periodically sync zfs snapshots, and for safe use and correct spin down. By some case device never try spin down after unmounting device. For resolve I try use usbcontrol for power_off usb port.
usbconfig -d ugen0.3 power_off
All work OK, externall device sleep.
And for enable device I try restore power of usb port:
usbconfig -d ugen0.3 power_on
But when power returned device detected as spd=HIGH (480Mbps) instead of spd=SUPER (5.0Gbps) that was before off.
Code:
usbconfig -d ugen0.3
ugen0.3: <Seagate Expansion Desk> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (30mA)

Can be returned speed SUPER of usb 3.0 port after usbcontrol power_off/power_on cycle for external USB storage?
, but returned speed is 40.0000MB/s only by dmesg info.
usb-controll.PNG
 

lexxai

Dabbler
Joined
Nov 9, 2016
Messages
33
Top