USB · Windows 11
Fix USB ports that lose power when the PC sleeps, so nothing charges from them
You plug a phone into the sleeping PC overnight and wake to a flat battery. Windows is cutting USB power in sleep to save energy. Change the USB power settings first, and check whether your ports can charge in sleep at all.
What you need
- Ten minutes, plus one sleep cycle to test. The settings are quick; the proof is plugging in a device, sleeping the PC, and checking the charge light.
- A device that shows it is charging. A phone or a gadget with a charge light makes the test unambiguous.
- An administrator account. Device Manager power settings need admin rights.
Read the problem before you touch it
- Separate sleep from off, and from a dead port. Confirm the port charges fine while the PC is awake. This guide is only for ports that work awake and go dead in sleep. A port that never charges is a different fault — cable, port, or device.
- Know that cutting USB power in sleep is deliberate. Windows and the PC's firmware power down USB to save energy, especially on laptops running on battery. Nothing is broken when they do it; the settings below tell them you would rather have charging than the saving. On a desktop plugged into the wall, that trade is almost always worth making. On a laptop, expect sleep charging to cost battery — the phone's charge comes out of the laptop's battery when the laptop is unplugged.
- Accept that not every port can do this. Some PCs can only supply sleep power on specific ports — often marked with a battery or lightning symbol beside the port — and some cannot supply it at all because the hardware cuts the rail entirely. The settings come first; the port check in the advanced route settles what your PC supports. Microsoft's general USB troubleshooting is at Fix USB-C problems in Windows for connection faults beyond sleep power.
The simple fixes, in order
- Turn off USB selective suspend. Open Settings > System > Power & battery to confirm your power mode, then open the classic power options: search Start for Edit power plan, choose Change advanced power settings, expand USB settings > USB selective suspend setting, and set it to Disabled for both battery and plugged in, as they apply to your PC. Selective suspend is the setting that lets Windows power down USB devices it considers idle, and it is the first suspect for sleep charging that stops.
- Try the marked charging port if your PC has one. Look at the ports for a small battery or lightning mark — many laptops and some desktops designate one always-on charging port. Plug the phone into that port specifically, sleep the PC, and check the charge light after a few minutes. If the marked port charges in sleep, your PC was designed to do it there and nowhere else, and you are done.
- Test with the PC plugged in. Sleep the laptop while it is connected to its charger, not on battery. Many laptops only offer USB sleep power while they themselves are on wall power, which is a sensible rule that looks exactly like a fault if you only ever tested unplugged.
- Wake once and re-sleep to clear a stuck state. Wake the PC, unplug and replug the device so it registers cleanly, then sleep the PC again and check the charge light. A device that was in a bad state when the PC slept can stay unpowered for that whole sleep even with correct settings.
The advanced route
- Stop Windows turning off the USB hubs to save power. Right-click Start and choose Device Manager. Expand Universal Serial Bus controllers, and for each USB Root Hub entry, open Properties > Power Management and clear Allow the computer to turn off this device to save power. Microsoft's driver and device guidance in Update drivers through Device Manager in Windows covers working in Device Manager generally. Restart the PC after changing the hubs, then repeat the sleep test.
- Look for the maker's always-on USB setting. Laptop and motherboard makers often put sleep charging in their own settings app or in the startup setup screens, under names like Always On USB, USB charging in sleep, or power delivery in soft-off state. If your PC has a maker app installed, search it for USB or charging before digging into startup setup. Enable the setting there if you find it — a firmware-level off overrides anything Windows is set to allow.
- Update the chipset and USB drivers if ports behave inconsistently. If some ports sleep-charge and others drop devices even while awake, get the current chipset drivers from the PC or motherboard maker's support page for your exact model, install them, and restart. Mixed behavior across ports on the same PC is a driver-level pattern more often than a settings one.
- Charge from the wall if the PC cannot do it. If the marked-port test, the plugged-in test, and both settings changes all leave sleep charging dead, the PC's hardware cuts USB power in sleep and no setting restores it. The honest fix is a small wall charger or a powered hub that stays on — cheaper and more reliable than fighting a hardware limit, and it charges faster than a PC port would anyway.
End state
- A device plugged into the chosen port shows it is charging while the PC sleeps.
- USB selective suspend is disabled, and the root hubs are not set to power off to save power.
- You know whether the ability is limited to one marked port or to plugged-in sleep only.
When it goes wrong
- The laptop battery drains much faster in sleep now. That is the trade working as designed: the PC is spending its battery on USB power. On a laptop, restrict sleep charging to when the laptop itself is plugged in, and leave the power-saving behavior on battery.
- Charging starts, then stops partway through the night. The device may be negotiating a charge rate the port cannot sustain in sleep, or the PC dropped into a deeper power state after a while. Test the marked port, and test a slower, plain cable — high-rate charging cables can behave differently on a sleeping port.
- The phone charges but a USB drive disconnects in sleep. Drives are supposed to disconnect in sleep; that is normal power management, not the charging fault. Never rely on a USB drive staying mounted while the PC sleeps.
- Nothing charges even while the PC is awake after your changes. Undo the last change, restart, and test awake charging again. If a port that worked awake has stopped, treat it as a port or driver fault using the USB troubleshooting source below, not as a sleep problem.
Related fixes
-
Fix a USB port that charges a phone but will not connect any device
A port that delivers power but no data connection has working power pins and broken or disabled data lines — charging proves almost nothing about the rest of the port. Test with a known data cable and a second device first to rule out the cheap causes, then work through the port's driver before concluding the port itself is damaged.
-
Fix a drive that disappears from File Explorer after the PC sleeps
A drive that vanishes from File Explorer after sleep, then comes back after a restart, is usually being powered down and not woken cleanly, or Windows has marked it as removed. Check Disk Management first to see whether Windows still sees the drive at all, then fix the power and hot-swap settings that let it drop.
-
Fix USB ports that work for some devices but not others
When a USB port takes a mouse but not a drive, or one device fails in every port, a short two-device test grid tells you whether the fault follows the port, the device, the cable, or a power setting. Run the grid first, then fix the branch it points to.
-
Fix a PC whose USB ports all stop working after a driver update
When every USB port dies right after a driver update, the update itself is the prime suspect — all the ports share one controller driver. Get control back with a workaround input first, roll that controller driver back next, and pause updates until a fixed driver appears.
Sources
- Microsoft Support, Fix USB-C problems in Windows — diagnosing USB connection and charging problems on Windows PCs.
- Microsoft Support, Update drivers through Device Manager in Windows — updating device drivers and working through Device Manager.