My USB device gets permanently disabled during booting.

I'm having the problem of my USB device getting permanently disabled in Device Manager sometimes during booting. Repro rate is around 20%. Once it's disabled, it won't never be detected again only by rebooting the PC because the disabled setting is persisted across the rebooting afterward.

The USB device only can be usable again by uninstalling the device driver and reinstalling it.
The end-user is unlikely able to figure out how to make the USB device work again.

By looking into the Windows USB log message, USB host seems to have disabled the Port on start-timeout.

MessageNumber Timestamp Summary 
4416 2016-02-27T16:08:59.6178750 UCX Device Information 
5143 2016-02-27T16:08:59.6181906 UCX Endpoint Information 
5144 2016-02-27T16:08:59.6181913 Rundown UCX Endpoint State Machine event UcxEndpointEventOperationSuccess, entered state UcxEndpointStateEnabled 
5145 2016-02-27T16:08:59.6181913 Rundown UCX Endpoint State Machine event UcxEndpointEventOperationSuccess, entered state UcxEndpointStateCompletingPendingOperation1 
5146 2016-02-27T16:08:59.6181920 Rundown UCX Endpoint State Machine event UcxEndpointEventYes, entered state UcxEndpointStateStarting1 
5147 2016-02-27T16:08:59.6181926 Rundown UCX Endpoint State Machine event UcxEndpointEventOperationSuccess, entered state UcxEndpointStateIsAbleToStart1 
5148 2016-02-27T16:08:59.6181926 Rundown UCX Endpoint State Machine event UcxEndpointEventUsbDeviceResetComplete, entered state UcxEndpointStateSettingEnabledFlag2 
5149 2016-02-27T16:08:59.6181933 Rundown UCX Endpoint State Machine event UcxEndpointEventOperationSuccess, entered state UcxEndpointStatePurgedOrDisabled 
5150 2016-02-27T16:08:59.6181940 Rundown UCX Endpoint State Machine event UcxEndpointEventPurgeComplete, entered state UcxEndpointStateCompletingPendingOperation2 
5151 2016-02-27T16:08:59.6181940 Rundown UCX Endpoint State Machine event UcxEndpointEventOperationSuccess, entered state UcxEndpointStatePurging1 
5152 2016-02-27T16:08:59.6181947 Rundown UCX Endpoint State Machine event UcxEndpointEventUsbDeviceResetFromHub, entered state UcxEndpointStateClearingEnabledFlag 
5153 2016-02-27T16:08:59.6181953 Rundown UCX Endpoint State Machine event UcxEndpointEventOperationSuccess, entered state UcxEndpointStateEnabled 
5154 2016-02-27T16:08:59.6181953 Rundown UCX Endpoint State Machine event UcxEndpointEventYes, entered state UcxEndpointStateCompletingPendingOperation1 
5155 2016-02-27T16:08:59.6181960 Rundown UCX Endpoint State Machine event UcxEndpointEventOperationSuccess, entered state UcxEndpointStateIsAbleToStart2 
5156 2016-02-27T16:08:59.6181967 Rundown UCX Endpoint State Machine event UcxEndpointEventEnableComplete, entered state UcxEndpointStateSettingEnabledFlag1 
5157 2016-02-27T16:08:59.6181967 Rundown UCX Endpoint State Machine event SmEngineEventStart, entered state UcxEndpointStateCreated 
5160 2016-02-27T16:08:59.6181981 Rundown UCX Endpoint State Machine event UcxEndpointEventUsbDeviceResetComplete 
5161 2016-02-27T16:08:59.6181987 Rundown UCX Endpoint State Machine event UcxEndpointEventPurgeComplete 
5162 2016-02-27T16:08:59.6181987 Rundown UCX Endpoint State Machine event UcxEndpointEventUsbDeviceResetFromHub 
5163 2016-02-27T16:08:59.6181994 Rundown UCX Endpoint State Machine event UcxEndpointEventEnableComplete 
5164 2016-02-27T16:08:59.6182001 Rundown UCX Endpoint State Machine event SmEngineEventStart 
16564 2016-02-27T16:09:08.1877985 USB Device State Machine event PushOrPop, entering state StoppedEnumerated depth 0 
16565 2016-02-27T16:09:08.1877999 USB Device State Machine event TimerFired1, entering state CheckIfDeviceCanBeDisabledOnDriverNotFound depth 0 
16566 2016-02-27T16:09:08.1878019 USB Device State Machine event Yes, entering state DisablingDeviceInControllerOnStartTimeout depth 0 
16567 2016-02-27T16:09:08.1878161 UCX Endpoint State Machine event UcxEndpointEventPrepareDisableFromHub queued 
16568 2016-02-27T16:09:08.1878175 UCX Endpoint State Machine event UcxEndpointEventPrepareDisableFromHub, entering state UcxEndpointStateClearingEnabledFlag 
16569 2016-02-27T16:09:08.1878189 UCX Endpoint State Machine event UcxEndpointEventOperationSuccess, entering state UcxEndpointStatePurging1 
16570 2016-02-27T16:09:08.1878236 UCX Endpoint State Machine event UcxEndpointEventPurgeComplete queued 
16571 2016-02-27T16:09:08.1878249 UCX Endpoint State Machine event UcxEndpointEventPurgeComplete, entering state UcxEndpointStateCompletingPendingOperation2 
16573 2016-02-27T16:09:08.1878338 UCX Endpoint State Machine event UcxEndpointEventOperationSuccess, entering state UcxEndpointStatePurgedOrDisabled 
16575 2016-02-27T16:09:08.1878561 USB Device State Machine event UCXIoctlSuccess, entering state DisablingPortOnStartTimeout depth 0 
16584 2016-02-27T16:09:08.1878879 USB Device State Machine event PortDisabled, entering state Stopped depth 0 

The root cause could be investigated and resolved, then the USB device will never be disabled. But I'd like to configure the USB subsystem so that the USB subsystem will never disable the USB device and the USB device can be detected correctly by rebooting the PC even when the issue happens again.

Is there any way to configure Windows USB subsystem so that the USB device will never be disabled during booting?

 

Question Info


Last updated December 30, 2017 Views 69 Applies to:

Hi,

Thank you for posting in Microsoft Community.

We understand your concern and will certainly assist you to solve it.

1. Which USB devices are you referring to?

Please be advised that the issue that you face might be due to some of the hardware related components going missing or corrupt. So, please try to run the hardware troubleshooter and check.

Please follow the below steps to run the hardware troubleshooter:

 

1. Type Troubleshooting in search box and open it.

2. Click on Hardware and Sound

3. Click on Hardware and Devices.

4. Follow the instruction.

Also, please try to do a Clean boot and check.

Putting your system inClean Boot state helps in identifying if any third party applications or startup items are causing the issue. You need to follow the steps from the article mentioned below to perform a Clean Boot.

 

https://support.microsoft.com/en-us/kb/929135

 

Disclaimer: After troubleshooting, refer to this section "How to reset the computer to start normally after clean boot troubleshooting".

Please let us know if the issue is resolved or you need any further assistance.

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

My USB device is Bluetooth module.

The issue happens even when clean boot. I'm sure it's down to the USB device.

But what I'm looking for is NOT the immediate solution for this but is how to configure OS never to disable the device driver because it's very dangerous to disable a device driver just due to being unable to detect once. The end-user won't be able to notice the device driver for USB device is disabled in Device Manager and will be at a ross and can't get it to work again just by rebooting the PC.

Thanks,

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.