Windows 10: Prevent Windows from unpluging USB devices on sleep

Discus and support Prevent Windows from unpluging USB devices on sleep in Windows 10 Software and Apps to solve the problem; I'm running Windows 10 [0] via Apple Boot Camp on a 2016 Macbook Pro. I have display [1] connected to my MBP over the certified TB3 cable. That display... Discussion in 'Windows 10 Software and Apps' started by Kentzo, May 12, 2023.

  1. Kentzo Win User

    Prevent Windows from unpluging USB devices on sleep


    I'm running Windows 10 [0] via Apple Boot Camp on a 2016 Macbook Pro. I have display [1] connected to my MBP over the certified TB3 cable. That display has a built-in USB Hub with USB-C ports. My Logi Bolt receiver is connected to the hub and a mouse and keyboard are paired to this receiver.My problem is that Windows unplugs the Hub and all devices on sleep [2], but does not re-plug them on wake [2]. I have tried the following to no avail:- Adjusted the advanced Power Plan settings to disable USB selective suspend- Disallowed Windows from suspending pretty much all devices via Device ManagerIn

    :)
     
    Kentzo, May 12, 2023
    #1
  2. spenser_l Win User

    USB Audio Device Preventing Sleep (Windows 10)

    Background

    I have been having issues with my computer not entering sleep and also waking from sleep since Window 8.1. I had hoped that Windows 10 would resolve these issues, but unfortunately this is not the case. I had noticed that the problem would occur whenever my headset (Hyper X Cloud II) was plugged in, but it was not exclusively occurring when plugged in.

    I recently got extremely fed up with my computer waking from sleep very consistently and decided once again to try and solve the problem.

    Attempted Fixes

    To start off, in Power Management:

    • Disabled wake timers
    • Enabled USB selective suspend
    • Set the computer sleep time to 1 minute of inactivity to see if any changes had an effect

    To identify the cause of what's keeping the computer from waking I used powercfg in an elevated command prompt:

    Which returns the following:

    What I had noticed with my headset was confirmed by the USB Audio Device entry under system. If I unplugged my headset, both the USB Audio Device and the Legacy Kernel Caller entries were gone upon running powercfg -requests again.

    The problem still persisted after unplugging the headset. So I then ran the following command to prevent the Realtek High Definition Audio driver from preventing sleep.

    This did in fact allow my computer to enter sleep. Upon plugging in my headset again, the problem came back. So naturally I executed REQUESTSOVERRIDE again for the related headset drivers:

    Unfortunately this did not fix the problem. To ensure that my REQUESTSOVERRIDE command took effect I ran:

    Which did show that my override requests were in effect:

    After this I tried:

    • Using Device Manager and ensuring every USB port was permitted to turn off devices in order to enter sleep
    • Uninstalling the Hyper X Cloud II device and reinstalling
    • Confirming the powercfg -requests entries with powercfg -energy report
    • Control Panel -> Sound -> Headset Earphone-> Advanced and unticked "Allow applications to take exclusive control of this device"

    TL;DR

    How can I prevent my USB Audio Device (in this case Hyper X Cloud II Headset) from preventing my computer to enter sleep?

    I have used powercfg -REQUESTSOVERRIDE to remove all entries that come up in powercfg -requests and ensured in Device Manager that all USB ports are able to turn off devices to allow the computer to sleep.
     
    spenser_l, May 12, 2023
    #2
  3. 1492R Win User
    BSOD on sleep and unplugging USBs


    Hi, I recently installed Windows 10 and have been experiencing frequent BSOD ever since. I get them when I put my computer on sleep when I leave my desk or when it goes to sleep automatically. It was also happening when I unplug my USB splitter (which was not a problem in Windows 7). I can avoid the USB problem by unplugging devices one by one, but the other issue is a real problem. *Sick

    I also have an SD card and almost always use an additional monitor (with the latest drivers), if that's helpful.

    Thanks
     
    1492R, May 12, 2023
    #3
  4. Prevent Windows from unpluging USB devices on sleep

    USB device is not removable and cannot be ejected or unplugged

    Hi Ai-Ling,

    Appreciate the troubleshooting steps that you have tried. I suggest you run Hardware Troubleshooter and check as it is an automated tool which checks the hardware connected to the computer for any known issues and provides the details on how to fix
    them. Follow these steps to run the troubleshooter.


    • Type Troubleshooting in the search bar and press “Enter”.

    • In the “Troubleshooting” window, click on “View All” on the left pane.

    • Click on “Hardware and Devices”.

    • Click on “Advanced” and then click on “Run as Administrator”.

    • Click “Next” and follow the on-screen instructions to complete the troubleshooting process.
    I also suggest you to Disable & Enable all USB controllers and check if it helps.


    • Click Windows key + R, type
      devmgmt.msc
      and press Enter.

    • Expand Universal Serial Bus Controllers.

    • Right-click every device under the Universal Serial Bus Controllers mode, and then click Disable one at a time.

    • Restart the computer, and then enable the USB controllers.
    Update USB Controllers: To update the USB Controllers from Device Manager follow these steps.


    • Go Select Device manager.

    • Double Click on USB Controllers to expand.

    • Right click on the USB Controllers that is listed and select
      Update.
    How to Install and Update drivers in Windows 10

    Redirecting

    Let us know how it goes, we’ll be glad to assist.
     
    SujataMoktan, May 12, 2023
    #4
Thema:

Prevent Windows from unpluging USB devices on sleep

Loading...
  1. Prevent Windows from unpluging USB devices on sleep - Similar Threads - Prevent unpluging USB

  2. Prevent Windows from unpluging USB devices on sleep

    in Windows 10 Gaming
    Prevent Windows from unpluging USB devices on sleep: I'm running Windows 10 [0] via Apple Boot Camp on a 2016 Macbook Pro. I have display [1] connected to my MBP over the certified TB3 cable. That display has a built-in USB Hub with USB-C ports. My Logi Bolt receiver is connected to the hub and a mouse and keyboard are paired...
  3. Prevent Windows from unpluging USB devices on sleep

    in Windows 10 Drivers and Hardware
    Prevent Windows from unpluging USB devices on sleep: I'm running Windows 10 [0] via Apple Boot Camp on a 2016 Macbook Pro. I have display [1] connected to my MBP over the certified TB3 cable. That display has a built-in USB Hub with USB-C ports. My Logi Bolt receiver is connected to the hub and a mouse and keyboard are paired...
  4. USB device prevents windows from screensaver.

    in Windows 10 Ask Insider
    USB device prevents windows from screensaver.: Hi guys, I have FIO Kunlun external USB DAC, and it prevents my screensavers to initialize. I have a lot of screens and it really hurts my electric bill :) can't think of a good solution... any ideas? *Turn off sound card is a bad idea, because it will mess software what is...
  5. Prevent Windows from putting USB speaker to sleep

    in Windows 10 Drivers and Hardware
    Prevent Windows from putting USB speaker to sleep: I have a USB speaker connected to my Win 10 1903 18362.1016. What I experience is that if I play a sound on that USB speaker after it having been idle just the speaker for a while, the first half second or so of the sound is chopped off. If I play multiple sounds after the...
  6. USB Keyboard is Preventing Windows 10 from Sleeping

    in Windows 10 Performance & Maintenance
    USB Keyboard is Preventing Windows 10 from Sleeping: I just replaced my Dell keyboard and mouse combo with a new Microsoft Wireless Desktop 900 PT3-00001. My PC immediately quite going to sleep. I tried multiple experiments such as changing the sleep time on my monitors to 1 minute. The monitors go to sleep after 1 minute and...
  7. USB Printer preventing computer from sleeping

    in Windows 10 Drivers and Hardware
    USB Printer preventing computer from sleeping: My computer just will not sleep, either automatically or manually. I just disconnected each USB device one by one and found that it's the printer that's the culprit. There's no way in device manager to change the power setting for it to allow the computer to sleep. Can...
  8. PC can't wake from sleep unless I unplug attached USB devices

    in Windows 10 Performance & Maintenance
    PC can't wake from sleep unless I unplug attached USB devices: Hi all, My computer was working just fine until few weeks ago. When it goes into sleep mode, either by itself, or by pressing the sleep button, it can't wake up like it usually would - hitting the keyboard or moving the mouse. It can't wake up even if I press the power...
  9. usb audio device prevents windows from entering sleep mode

    in Windows 10 Drivers and Hardware
    usb audio device prevents windows from entering sleep mode: Hello, For about one month my PC nor more enter screen saver nor sleep mode. I've found that it only arrise when my USB DAC Aune X1S is connected. If i powered it off, screen saver and sleep mode are ok. Driver are UpToDate. powercfg -requests : DISPLAY :...
  10. BSOD on sleep and unplugging USBs

    in Windows 10 BSOD Crashes and Debugging
    BSOD on sleep and unplugging USBs: Hi, I recently installed Windows 10 and have been experiencing frequent BSOD ever since. I get them when I put my computer on sleep when I leave my desk or when it goes to sleep automatically. It was also happening when I unplug my USB splitter (which was not a problem in...