This article covers why devices attached to USB hubs sometimes disconnect and reconnect repeatedly on Microsoft Windows computers, how USB power delivery and Windows power management contribute to the problem, how it is diagnosed, and which remedies are commonly used.
🤖 Written by Wren, the chat's AI, building on Wikipedia and on questions people asked in the chat. AI writing can be wrong or out of date: check anything that matters with a reliable source.
| Typical symptom | Devices on a hub repeatedly disconnect and reconnect, often with the Windows connect/disconnect sound |
|---|---|
| Most often blamed setting | USB selective suspend (Windows power plan setting) |
| Related per-device setting | "Allow the computer to turn off this device to save power" (Device Manager) |
| USB 2.0 port current (high-power) | 500 mA at 5 V |
| USB 3.x port current | 900 mA at 5 V |
| Maximum hub chain | 5 external hubs in series (7 tiers including host and device) |
| Windows native USB 3 driver stack | Introduced with Windows 8 (usbxhci.sys, ucx01000.sys, usbhub3.sys) |
| Common diagnostic tools | Device Manager, Event Viewer, USBView, USBTreeView |
| Main hardware causes | Insufficient power, poor cables, front-panel wiring, hub or controller firmware faults |
USB hub disconnection issues are a group of faults in which devices attached to a USB hub repeatedly disconnect and reconnect, stop responding, or fail to be recognised. On Microsoft Windows the problem is often noticed through the repeated "device connected" and "device disconnected" sounds, through notifications such as "USB device not recognized", or through devices that vanish from Device Manager and then reappear. Keyboards, mice, audio interfaces, external drives, webcams, game controllers and serial adapters are commonly affected.
The causes fall into two broad groups. The first is power and signal problems in the hardware: a hub that cannot supply enough current, a voltage drop along a long or thin cable, poor connectors, interference, or faulty firmware in the hub chip or the host controller. The second is power management in software: Windows can put idle USB devices, hubs and links into low-power states. If a device, hub or driver does not handle these transitions correctly, the device may fail to wake and is then reset or dropped.
Many users report that the same hub works on Linux or macOS but misbehaves on Windows. Such reports are common, but the reasons vary from case to case. Default power policies, driver error-recovery behaviour, device-specific workarounds and controller drivers all differ between operating systems. No single explanation covers every case. The standard troubleshooting steps are to disable USB selective suspend, to stop Windows from powering down USB hubs, to use a powered hub or a different port, and to update chipset drivers and firmware.
Background: how USB hubs work
Topology
Universal Serial Bus (USB) uses a tiered star topology. A computer contains one or more host controllers. On modern computers these are usually xHCI controllers (eXtensible Host Controller Interface), which handle every USB speed from 1.x to 3.x. Each host controller presents a root hub, which is the set of ports built into the computer. External hubs plug into these ports and provide more ports.
The USB specifications allow up to seven tiers. These are the root hub, up to five external hubs connected in series, and the final device. A single host controller can address up to 127 devices, and hubs count towards this total. In practice, xHCI controllers also have internal limits on the number of endpoints they can manage. An endpoint is a logical data channel inside a device. When these limits are reached, Windows may show a message saying there are not enough USB controller resources, even though fewer than 127 devices are connected.
A USB 3.x hub is really two hubs in one package. A USB 2.0 hub handles low-speed, full-speed and high-speed devices, and a separate SuperSpeed hub handles USB 3.x devices. Windows shows these as separate entries in Device Manager, so one physical hub often appears twice.
Enumeration
Enumeration is the process by which the host discovers a newly connected device and configures it. In outline:
- The hub detects a device on a port and reports this to the host.
- The host tells the hub to reset the port.
- The host asks the device for its device descriptor. This is a small data structure that identifies the device's vendor, product and capabilities.
- The host assigns the device a bus address, reads its full configuration, and loads a suitable driver.
If any step fails or takes too long, the host may retry, reset the port, or give up. Windows then reports the device as an "Unknown USB Device". When a device disappears during normal use, for example because its supply voltage briefly fell too low and it restarted, the hub reports a disconnection. The host then removes the device and enumerates it again. Repeated cycles of this produce the familiar disconnect–reconnect loop.
Power delivery on USB
Current limits
USB supplies power on a line called VBUS at a nominal 5 volts. The amount of current a port is required to supply depends on the USB version and on how the port has been negotiated.
| Port type | Unit load | Maximum configured current | Notes |
|---|---|---|---|
| USB 2.0 | 100 mA | 500 mA | A device may draw one unit load before it is configured. |
| USB 3.x (SuperSpeed) | 150 mA | 900 mA | Applies to SuperSpeed operation. |
| Battery Charging 1.2 (dedicated or charging downstream port) | — | Up to 1.5 A | Signalled through the data lines; mainly used for charging. |
| USB Type-C current advertisement | — | 1.5 A or 3 A at 5 V | Advertised through the CC (configuration channel) pins. |
| USB Power Delivery | — | Higher voltages and currents by negotiation | Used by laptops, docks and chargers. |
Bus-powered and self-powered hubs
A bus-powered hub (also called an unpowered or passive hub) takes all its power from the upstream port. A USB 2.0 port provides 500 mA, and the hub itself uses part of that. For this reason the USB 2.0 specification lets a bus-powered hub promise only one unit load (100 mA) per downstream port. Many inexpensive hubs ignore this rule in practice. They pass through whatever current the upstream port will supply and rely on the connected devices drawing little power.
A self-powered hub has its own power supply, usually an external adapter. It can provide full current on every downstream port. Hubs with a power socket but no adapter connected behave as bus-powered hubs.
Voltage drop and over-current
Current flowing through a cable causes a voltage drop, which is larger in long or thin cables and through worn connectors. The USB specifications allow the voltage at a device to be somewhat below 5 V, but not by an unlimited amount. When several devices on a bus-powered hub draw current at the same moment, for example when a hard drive spins up or a webcam starts streaming, the voltage can sag. If it falls far enough, a device may brown out (reset because of low voltage). The hub then sees it disconnect and reconnect.
Over-current protection is a separate mechanism. Ports and hubs contain current-limiting switches or fuses. When they detect excessive current, they cut power to a port and report an over-current condition to the host. Windows then shows a notification such as "Power surge on the USB port" or "Power surge on hub port". This detection is done by the hardware. Windows reacts to the condition reported by the hub; it does not measure voltage or current itself. Some explanations found online say that Windows has its own voltage thresholds that trip on small dips. That description is not accurate. Windows does, however, respond quickly to the disconnections and errors that a brownout produces.
Power management in Windows
System and device power states
Windows uses the ACPI (Advanced Configuration and Power Interface) model of power states.
- System states describe the whole computer: S0 (working), S3 (sleep), S4 (hibernate) and S5 (soft off).
- Modern Standby (also called S0 low-power idle) is a newer sleep model used on many laptops. The system stays nominally in S0 but turns off as much hardware as possible.
- Device states describe individual devices, from D0 (fully on) to D3 (off).
USB devices and hubs move between these states under the control of the USB driver stack and the device's own driver.
USB selective suspend
Selective suspend is a feature that lets Windows suspend one idle USB device without suspending the others or the whole computer. Microsoft has supported it since the Windows XP era. A suspended device draws very little current and stops most bus activity. This saves power, particularly on battery-powered laptops.
Selective suspend depends on the device's driver. A function driver (the driver for the device itself, such as a webcam or fingerprint reader driver) must ask to be idled. It must also handle waking correctly, either when the device signals remote wake-up or when software needs the device again. A hub can also be suspended when all the devices below it are idle.
The global switch is in the power plan settings: Control Panel → Power Options → Change plan settings → Change advanced power settings → USB settings → USB selective suspend setting. It can be set to Enabled or Disabled, with separate values for battery and mains power on laptops. On some systems, especially those using Modern Standby, this entry is hidden or has no effect.
The same setting can be changed from a command prompt with the powercfg tool. The USB settings subgroup and the selective suspend setting are identified by GUIDs (globally unique identifiers):
powercfg /setacvalueindex SCHEME_CURRENT 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226 0 powercfg /setdcvalueindex SCHEME_CURRENT 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226 0 powercfg /setactive SCHEME_CURRENT
Here 0 means Disabled and 1 means Enabled. The first line applies to mains (AC) power and the second to battery (DC) power. The command powercfg /query SCHEME_CURRENT lists the settings and GUIDs present on a particular machine, so the values can be checked before changing them.
Per-device power settings
In Device Manager, many USB hubs and devices have a Power Management tab. It contains the option "Allow the computer to turn off this device to save power". For entries such as "USB Root Hub", "USB Root Hub (USB 3.0)" and "Generic USB Hub", clearing this option prevents Windows from idling that hub. On some devices the tab also contains "Allow this device to wake the computer", which controls wake from sleep rather than idle power saving.
These options are stored in the registry. Each device instance has a Device Parameters key under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\. Values such as EnhancedPowerManagementEnabled can be set there to turn off selective suspend for one device. Settings in this location apply to one device instance on one port. If the device is moved to another port, it may receive a new instance with default settings.
Link power management
Besides suspending whole devices, USB can put the link into low-power states. The link is the electrical connection between a port and a device.
- USB 2.0 Link Power Management (LPM) adds a light sleep state called L1, which can be entered and left much faster than full suspend (L2).
- USB 3.x defines link states U0 (active), U1 and U2 (low-power idle states with progressively longer exit times) and U3 (suspend).
Entering and leaving U1 and U2 is negotiated by the hardware many times per second. A device, hub or cable that handles these transitions badly can produce link errors. These errors cause the host to reset the link, and the reset may appear to the user as a disconnection. Some Windows versions include hidden power-plan settings related to USB, including USB 3 link power management and hub suspend timeouts. These can be revealed only by changing the setting's attributes with powercfg. Their availability and effect differ between Windows versions and hardware.
PCI Express power management
USB host controllers are themselves PCI Express devices. The power plan setting PCI Express → Link State Power Management (ASPM, Active State Power Management) can put the controller's PCIe link into low-power states. Problems with this setting are less common than problems with selective suspend. It is nevertheless sometimes changed to "Off" as part of troubleshooting, especially with add-in USB cards.
Fast Startup and sleep
Fast Startup, enabled by default on many Windows 8 and later systems, makes "shut down" partly a hibernation of the kernel. After a Fast Startup shutdown, USB devices and hubs may resume from a saved state instead of being initialised from scratch. Some devices and hubs handle this poorly. Turning off Fast Startup, or using Restart (which performs a full restart), is a common diagnostic step. Similarly, some disconnection problems appear only after resuming from sleep or Modern Standby.
Windows USB driver stacks
Windows has two USB driver stacks:
- The older USB 2.0 stack, which includes
usbport.sys,usbehci.sysandusbhub.sys. It handles older EHCI, OHCI and UHCI controllers. - The USB 3.0 stack, introduced with Windows 8. It includes
usbxhci.sys,ucx01000.sys(the USB host controller extension) andusbhub3.sys.
On Windows 8 and later, xHCI controllers normally use Microsoft's inbox driver (the driver included with Windows). Under Windows 7, which had no native xHCI support, controller makers such as Intel, Renesas, ASMedia, AMD and VIA supplied their own drivers, each with its own behaviour and faults. Some systems still use vendor drivers today.
Symptoms and messages
Commonly reported signs include:
- Repeated connect and disconnect sounds, sometimes every few seconds, sometimes only under load.
- Keyboards or mice that stop responding briefly and then work again.
- Audio interfaces or headsets producing crackles, dropouts or disappearing from the sound settings.
- External drives disconnecting during file transfers. This can corrupt data being written.
- Device Manager entries such as "Unknown USB Device (Device Descriptor Request Failed)", "Unknown USB Device (Port Reset Failed)" or "Unknown USB Device (Set Address Failed)". Each of these names a stage of enumeration that failed.
- Notifications such as "USB device not recognized" or "Power surge on the USB port".
- Devices that fail to work after the computer wakes from sleep, until they are unplugged and reconnected.
The timing of the symptoms often gives a clue to the cause:
- Disconnections that happen after a period of idleness suggest power management.
- Disconnections that happen when load increases, such as a drive spinning up or a camera starting, suggest a power supply problem.
- Disconnections that happen when a cable is moved suggest a connector or cable fault.
- Disconnections that happen when another device starts nearby suggest interference or a shared power problem.
Common causes
Insufficient power
Bus-powered hubs feeding several devices are among the most frequent causes. Devices with high or bursty current demand are especially likely to trigger problems. Examples include portable hard drives, some SSD enclosures, webcams, audio interfaces, RGB-lit peripherals, wireless receivers with charging functions and phones. A self-powered hub with an adequate adapter usually resolves this kind of fault.
Power management incompatibility
A device or driver may not resume correctly from selective suspend or a low-power link state. Typical cases are an older driver, a device with faulty firmware, or a hub that loses track of a sleeping device. When the device fails to respond, Windows resets the port. This can look exactly like a hardware disconnection. Disabling selective suspend and hub power-off fixes many such cases. Users often report this as the first thing to try because it is easy and does no harm on a desktop computer.
Cables, connectors and signal integrity
USB 3.x signalling runs at 5 Gbit/s or more and is sensitive to cable quality, connector wear, length and passive extensions. A marginal link may train successfully and then fail repeatedly under load. The controller then falls back or resets. Some users find that a device works reliably at USB 2.0 speed, for example in a USB 2.0 port or through a USB 2.0 cable, but not at USB 3.x speed. That result points to a signal problem. USB 3.x signalling is also known to emit radio-frequency noise near 2.4 GHz, which can interfere with nearby wireless receivers.
Front-panel and internal wiring
On desktop computers, front-panel and case-top ports are connected to the motherboard through internal cables and headers. Some laptops connect side ports through a separate daughterboard. These extra connections add length, connectors and sometimes poor shielding. Ports on the rear panel, wired directly to the motherboard, are often more reliable. Moving a hub to a rear port is a standard diagnostic step.
Hub chip and firmware faults
Hubs are built around controller chips from a small number of manufacturers, such as Genesys Logic, VIA Labs, Realtek and Terminus Technology. Firmware or hardware faults in particular chips or particular hub designs can cause devices to drop. Faults that appear only when the hub enters or leaves a low-power state are a common example. Some hub vendors release firmware updates. Most inexpensive hubs cannot be updated.
Host controller, chipset and BIOS issues
Faults in the host controller or its firmware can affect every hub connected to it. Out-of-date chipset drivers or BIOS/UEFI firmware are frequently involved. BIOS options that may be relevant include:
- xHCI hand-off, which controls whether the firmware or the operating system manages the USB controller.
- ErP or deep-sleep modes, which reduce standby power.
- Settings controlling USB power in sleep or soft-off states.
Docks, monitors and USB-C
Docking stations, Thunderbolt docks and monitors with built-in hubs combine USB hubs with display, network and charging functions. Disconnections may follow a USB Power Delivery renegotiation, a display mode change, or a dock firmware fault. On such systems the dock firmware, the Thunderbolt or USB4 controller firmware, and the laptop's BIOS often need to be updated together.
Electrical interference and grounding
Electrostatic discharge, ground loops (differences in ground potential between two powered devices, such as a computer and a mains-powered audio device) and electrical noise from nearby equipment can cause intermittent resets. These causes are harder to confirm than power or software causes.
Differences between Windows and other operating systems
Reports that a hub works on Linux but not on Windows are common in support forums. Several real differences can explain such reports. They should be treated as possible explanations to test, not as one universal rule.
- Default power policies. Windows enables USB selective suspend by default in its standard power plans, subject to driver support. The Linux kernel also has USB autosuspend, with a default idle delay of two seconds. However, many Linux distributions leave runtime power management turned off for most individual USB devices unless a power-tuning tool, such as TLP or powertop, turns it on. As a result, a device on Linux may simply never be put to sleep.
- Device-specific workarounds. The Linux kernel contains a table of "quirks" for particular devices and hubs. For example, it can turn off link power management, or reset a device instead of resuming it, for hardware known to misbehave. Windows relies more on device makers to supply working firmware and drivers.
- Enumeration details. Operating systems request descriptors in slightly different orders and with different timing. Linux has options for both its own "old" scheme and a "new" scheme modelled on Windows behaviour. A device that tolerates one sequence may fail with the other.
- Error recovery. The drivers differ in how many errors they tolerate before resetting a port, and in how they recover after a reset. A brief fault may be recovered silently on one system but lead to a visible reset and re-enumeration on another.
- Controller drivers. Each operating system has its own xHCI driver, with its own workarounds for specific controllers.
It is sometimes said that Windows is "far more aggressive" about USB power saving and timeouts than Linux. This is broadly consistent with default behaviour on many installations, but it is a generalisation. Behaviour depends on the Windows version, the power plan, the drivers, the Linux distribution and its configuration. As explained above, over-current detection is performed by the hub hardware, not by thresholds set in Windows.
Diagnosis
Tools
- Device Manager shows hubs, devices, error states and power-management options. The menu option "View → Devices by connection" shows which hub each device is attached to.
- Event Viewer records Plug and Play and driver events. The Kernel-PnP logs can show when devices were removed and re-added.
- USBView is a Microsoft tool distributed with the Windows Driver Kit and debugging tools. It displays the USB tree, descriptors and the power capabilities of each port.
- USBTreeView, a free tool by Uwe Sieber based on USBView, gives a more detailed tree and port status. USBDeview by NirSoft lists current and previously connected devices.
- Windows event tracing (ETW) for the USB stack can capture detailed USB activity. It is mainly used by developers.
Approach
A typical approach changes one variable at a time:
- Note exactly when disconnections happen: when idle, under load, after sleep, or when a cable is moved.
- Connect the affected device directly to a rear port, without the hub. If it now works, the hub, its power or its cable is implicated.
- Try the hub on different ports, including ports on a different host controller where available. Many motherboards have both chipset and CPU-connected USB controllers.
- Disable selective suspend and hub power-off, then observe whether the problem continues.
- Supply external power to the hub, or remove high-draw devices from it.
- Replace cables, especially long, thin or passive extension cables.
- Test the same setup on another computer or operating system. This separates faults in the host from faults in the hub or device.
Remedies and workarounds
Software settings
- Disable USB selective suspend in the active power plan, through the Control Panel or with
powercfgas shown above. - Prevent hubs from being turned off. In Device Manager, under "Universal Serial Bus controllers", open each "USB Root Hub", "USB Root Hub (USB 3.0)" and "Generic USB Hub" entry. On its Power Management tab, clear "Allow the computer to turn off this device to save power". Do the same for the affected device if it has this option.
- Choose a less aggressive power plan, such as High performance, which typically reduces power-saving behaviour.
- Turn off PCI Express Link State Power Management if an add-in or problematic controller is involved.
- Disable Fast Startup if problems appear after a shutdown and power-on but not after a restart.
- Update drivers and firmware: motherboard chipset drivers, BIOS/UEFI, dock and Thunderbolt firmware, and device drivers. Reinstalling the USB controller drivers by uninstalling the entries in Device Manager and rebooting is also commonly tried.
Hardware changes
- Use a self-powered hub with an adequate external adapter, or connect the existing hub's adapter if it has one.
- Connect the hub to a rear-panel port or another port wired directly to the motherboard, rather than a front or daughterboard port.
- Use shorter, better-quality cables and avoid passive extensions, especially for USB 3.x.
- Spread high-draw devices across several ports or controllers instead of putting them all on one hub.
- Replace a hub whose chip is known to be unreliable, or which still fails after the other steps.
- Add a separate USB controller card if the motherboard controller itself is faulty.
Trade-offs
Disabling power management increases power use. On desktop computers the difference is usually small. On laptops it can noticeably shorten battery life and may stop the system from reaching its lowest-power sleep states. Some guides therefore suggest disabling selective suspend only for the affected device, or only on mains power, rather than everywhere. Registry changes affect system behaviour and should be made carefully, ideally after a backup.
Notable cases
In early 2021, many owners of computers with AMD 500-series motherboard chipsets and Ryzen 5000-series processors reported intermittent USB dropouts. Affected devices included audio interfaces, VR headsets and other peripherals. AMD publicly acknowledged the reports and later released a firmware update through motherboard makers, AGESA version 1.2.0.2, which it said addressed the issue. Before the fix, community workarounds included changing PCI Express speed settings and power-related BIOS options. Results were mixed. The case shows that some "Windows" USB disconnections are really caused by platform firmware, even when they first appear to be operating-system problems.
Other widely discussed problems have involved particular docks, monitor hubs and laptop models. In these cases, firmware updates from the manufacturer were the eventual fix. Details vary by product and are best checked in each manufacturer's own release notes.
Debates and open questions
- Power saving versus reliability. Microsoft and laptop makers enable power management by default because it improves battery life and helps meet energy-efficiency targets. Users affected by disconnections argue that the defaults expose too many faulty devices. Supporters of the defaults respond that the fault lies in hardware or drivers that do not follow the USB specification.
- Where the fault lies. A single symptom can come from the device, the hub, the cable, the controller, the firmware or the operating system. Advice found online often attributes the problem to one cause, while in practice several factors may combine. For example, a slightly weak power supply may cause failures only when combined with frequent low-power transitions.
- Hidden and changing settings. Some relevant power settings are hidden by default, and their names and effects have changed between Windows versions. Modern Standby systems may ignore traditional settings. This makes consistent advice difficult.
- Specification compliance of cheap hubs. Many low-cost bus-powered hubs supply more downstream current than the specification permits, or advertise capabilities they cannot sustain. This makes their behaviour unpredictable and hard to diagnose.
See also
- Universal Serial Bus
- USB hub
- Extensible Host Controller Interface (xHCI)
- USB Power Delivery
- USB-C
- Thunderbolt (interface)
- Advanced Configuration and Power Interface (ACPI)
- Active State Power Management
- Device Manager
- Event Viewer
- Plug and play
- Electrostatic discharge
- Ground loop (electricity)
Questions people asked
Why might a USB hub cause connected devices to repeatedly connect and disconnect in Windows while working fine in Linux, and how can it be resolved?
Windows is far more aggressive about USB power saving and link timeouts than Linux. Linux tends to shrug off transient VBUS dips or slow descriptor replies; the Windows xHCI driver immediately resets the port and re-enumerates the whole downstream tree.
The usual culprits
- USB Selective Suspend. In Windows Power Plan settings, disable "USB selective suspend". Then open Device Manager, go to Universal Serial Bus controllers, open Properties on every USB Root Hub and Generic USB Hub, and under Power Management untick "Allow the computer to turn off this device to save power".
- Transient voltage drop. If it is an unpowered hub, the combined draw can cause microsecond VBUS sags that trip Windows over-current/reset thresholds. Try plugging the hub into a different physical port (especially a rear port or a Type-C/Thunderbolt port directly on the motherboard rather than a front/side port on an internal daughterboard), or give the hub external 5V power.