power off port physically

Eugene Grosbein egrosbein at rdtc.ru
Mon Aug 29 18:18:43 UTC 2011


30.08.2011 01:11, Hans Petter Selasky wrote:

>> I have USB 3G modem with LED and all my attempts to power it off
>> with usbconfig power_off/power_on, set_state 255 to its hub do nothing
>> to modem's LED that is ON still, so modem does not get powered off
>> physically.
>>
>> I have Intel D975XBX motherboard and use its onboard USB2.0 ports:
>>
>> # usbconfig
>> ugen0.1: <UHCI root HUB Intel> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps)
>> pwr=SAVE ugen1.1: <UHCI root HUB Intel> at usbus1, cfg=0 md=HOST spd=FULL
>> (12Mbps) pwr=SAVE ugen2.1: <UHCI root HUB Intel> at usbus2, cfg=0 md=HOST
>> spd=FULL (12Mbps) pwr=SAVE ugen3.1: <UHCI root HUB Intel> at usbus3, cfg=0
>> md=HOST spd=FULL (12Mbps) pwr=SAVE ugen4.1: <EHCI root HUB Intel> at
>> usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen0.2: <Smart-UPS 750
>> FW651.18.I USB FW7.4 American Power Conversion> at usbus0, cfg=0 md=HOST
>> spd=LOW (1.5Mbps) pwr=ON ugen4.2: <USB 2.0 4-Port Hub NEC> at usbus4,
>> cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen4.3: <ZTE CDMA Technologies
>> MSM ZTE, Incorporated> at usbus4, cfg=255 md=HOST spd=HIGH (480Mbps)
>> pwr=ON
>>
>> As you can see, I also have additional USB Hub intergrated with my monitor,
>> tried its ports too - without luck.
>>
>> Please CC: me as I'm not in the list.

>> How do I power USB port off with FreeBSD 8.2-STABLE?
> 
> If you use an external HUB and the HUB does not have the power always one, 
> like some do, it should be enough to re-enumerate the parent HUB which your 
> device is connected to.

I use motherboard-integrated USB ports. How do I "re-enumerate" the parent HUB?
I've tried "usbconfig -d 4.1 set_config 255" - it does not power my device off.

I need not quick reset. I need power it off for long time.

Eugene Grosbein


More information about the freebsd-usb mailing list