If your keyboard stops responding after Windows wakes from sleep mode, the fix usually involves disabling the USB selective suspend setting, updating the keyboard driver, or changing your power plan settings. This article walks through the most effective solutions, from quick checks to deeper driver and BIOS adjustments, so you can get typing again without losing sleep features.
Why Does the Keyboard Stop Working After Sleep?
When Windows enters sleep, it cuts power to most peripherals to save energy. The USB ports that connect your keyboard are often put into a low-power state, and when the system wakes, the port may not properly reinitialize the device. This is more common with USB keyboards than with PS/2 connections, and it can also happen with Bluetooth keyboards if the wireless adapter fails to reconnect. The issue is usually a combination of Windows power management settings and the keyboard driver’s inability to handle the wake signal.
Quick Checks Before Diving Into Settings
Before changing system settings, try these simple steps—they often resolve the issue immediately:
- Unplug the keyboard and plug it back into a different USB port.
- Press a key repeatedly for a few seconds to see if the system is just slow to respond.
- Use the on-screen keyboard (Win + Ctrl + O) to log in and then restart the device.
- Check if the keyboard works in the BIOS (restart and press Del or F2). If it works there, the problem is Windows-related.
If the keyboard works after a full restart but fails only after sleep, move on to the power settings fixes below.
Disable USB Selective Suspend
Windows has a feature called USB selective suspend that allows individual USB ports to go into a low-power state. This is a common culprit. To disable it:
- Open Control Panel and go to Hardware and Sound > Power Options.
- Click Change plan settings next to your active power plan.
- Click Change advanced power settings.
- Scroll to USB settings and expand it.
- Expand USB selective suspend setting and set both On battery and Plugged in to Disabled.
- Click Apply and OK, then restart your computer.
This prevents the USB ports from powering down during sleep, which should keep the keyboard responsive.
Update or Reinstall the Keyboard Driver
An outdated or corrupted driver can cause the keyboard to fail after wake. Here’s how to fix it:
- Right-click the Start button and select Device Manager.
- Expand Keyboards and right-click your keyboard device.
- Select Update driver and then Search automatically for drivers.
- If Windows finds nothing, right-click again and choose Uninstall device.
- Restart your PC—Windows will reinstall the driver automatically.
For USB keyboards, also check the Universal Serial Bus controllers section. Right-click each USB Root Hub and select Properties. Under the Power Management tab, uncheck Allow the computer to turn off this device to save power. Do this for all root hubs to ensure the ports stay active.
Change Power Plan Settings for the USB Hub
Beyond selective suspend, Windows can also turn off the entire USB hub. To prevent this:
- Open Device Manager again.
- Expand Universal Serial Bus controllers.
- Right-click each USB Root Hub (there may be several) and select Properties.
- Go to the Power Management tab and uncheck Allow the computer to turn off this device to save power.
- Click OK and repeat for all root hubs.
This setting is separate from selective suspend and directly controls whether the hub can be powered down. After changing it, test sleep mode again.
Use the Power Troubleshooter and Check for Windows Updates
Windows includes a built-in troubleshooter that can automatically find and fix power-related issues. Run it by going to Settings > System > Troubleshoot > Other troubleshooters and selecting Power. Follow the prompts. Also, ensure your Windows is up to date—go to Settings > Windows Update and check for updates. Microsoft regularly ships fixes for USB wake issues, so a pending update might be the root cause.
Adjust BIOS/UEFI Settings
If the problem persists, the BIOS may have a setting that affects USB power during sleep. Restart your PC and enter the BIOS (usually by pressing Del, F2, or F10 during boot). Look for options like USB Wake Support, ErP Ready, or Deep Sleep. Disable any deep sleep or ErP settings that cut power to USB ports entirely. Save changes and exit. Be careful—changing BIOS settings can affect other hardware, so only modify the USB-related options.
Frequently Asked Questions
Why does my keyboard work after a restart but not after sleep?
Sleep mode uses a low-power state that can completely shut off USB ports. When the system wakes, the port may not reinitialize the keyboard driver. A restart forces a full hardware re-enumeration, which is why it works then.
Will disabling USB selective suspend drain my laptop battery?
It can have a minor impact, as USB devices will draw a small amount of power during sleep. However, the difference is usually negligible for most users. If battery life is critical, you can enable it again and instead try the driver updates.
Does this affect wireless keyboards?
Yes. Wireless keyboards that use a USB dongle are affected the same way. Bluetooth keyboards may also have issues if the Bluetooth adapter is powered down. The same USB power settings apply to the dongle, and for Bluetooth, you can also check the adapter’s power management settings in Device Manager.
Can I use a PS/2 keyboard to avoid this problem?
Yes, PS/2 keyboards are not affected by USB power management and will generally work after sleep without any issues. However, many modern laptops don’t have PS/2 ports, so this is only practical for desktop users.
Is there a way to keep the keyboard active without disabling sleep?
You can use Hibernate instead of sleep—it saves the session to disk and fully powers off, so there’s no low-power state to cause issues. Alternatively, you can set the keyboard to wake the PC, but that doesn’t fix the post-wake failure.
What if none of these fixes work?
If the keyboard still fails after trying all steps, the issue might be a hardware defect in the keyboard or the USB controller. Test the keyboard on another computer. If it works there, consider updating your motherboard chipset drivers or contacting your PC manufacturer for a BIOS update.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix Wi-Fi Keeps Disconnecting in Windows 11
- Fix Samsung Galaxy J7 Bad Battery Life: Step-by-Step
- Show, Hide & Customize Edge Favorites Bar
- Investing vs Buying Shares: Key Differences9.26 yd³
- How to Use Siri Offline in iOS 15
- How to AirDrop Apps from iPhone to iPhone