Display Turn Off in Power Options Causing USB Disconnection

Page 2 of 2 FirstFirst 12

  1. Posts : 18
    Windows 10
    Thread Starter
       #11

    Berton said:
    With all the changes of the hardware and the problems still exist, the mention of clones suggests the problems are being copied computer to computer to computer, exactly copying is the way cloning works. I'd probably "bite the bullet" and do a full clean install to start over.
    I get it. My problem is that I have a lot of software and some particular hardware that's tricky to install correctly, so recreating it all (correctly) is very cumbersome. A couple of builds ago, I did try just that. I was barely ten percent done two weeks into the "fresh build" project. Which is when I "bit the bullet" and went with another clone. It went relatively smoothly and finished all in a day or so.

    I do have experience with "fresh" machines. None of the laptops I have (or have had) are clones. I have many more problems with them than with my desktop "clones," and yet they are not nearly as functional nor have nearly the same number of apps and hardware.
      My Computer


  2. Posts : 43,007
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #12

    In both experiments, I got the same result. The monitor turns off in one minute, and after 20 minutes, the USB device disconnects. In both cases, If I wake the monitor before 20 minutes, I get no lon-on screen. After 20 minutes, I do.
    That, at least, makes sense. So the loss of USB ports is definitely related to sleep, as one might expect.

    In your first post you say
    Wake-Up Login Requirement: When I wake up the monitor with a mouse movement, I'm prompted to log back into Windows, as if the system had entered seep mode or logged off.
    If your USB hubs/ports are disabled, how is it that your mouse works?
      My Computers


  3. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #13

    Importing Event viewer, Custom views


    [20th Feb 204 - Event viewer definition renamed & first diagram replaced to suit]

    WorkPermit said:
    Whenever Windows automatically turns off my display, it seems to inadvertently cause the devices connected to my USB hub to disconnect.
    Have you checked whether or not there is a change of power state to S3 Sleep?

    You can check transitions between power-sleep states using the built-in utility Event viewer [eventvwr.msc] by setting up an Event viewer, Custom view that lists them.
    You can import the Power - S0ix-S3Sleep-Hibernate transitions Custom view I use to monitor transitions between S0 Modern standby [S0ix], S3 Sleep & Hibernate.
    This Custom view definition works in both Win10 & Win11 and in both S3 Sleep computers & S0 Modern standby computers.

    Here is the [zipped] definition for an Event viewer, Custom view that captures power-sleep state transitions.
    Event viewer, Custom view definitions are exported as & hence imported from xml files.
    Power - S0ix-S3Sleep-Hibernate transitions.zip
    You can unzip it then, before importing it, read the Power - S0ix-S3Sleep-Hibernate transitions.xml file in Notepad or, for a better presentation of its contents, by right-clicking and opening in a browser.

    To import it:
    1 Unzip the file
    2 Open Event viewer, click on Import Custom view [on the right-hand side],
    3 Browse to and select the xml file then Open,
    4 Change the name if you want to then OK,
    5 You can see the records, in Event viewer's left-hand pane, within the group Custom views. It often takes a few seconds to populate the results.
    6 Whenever I investigate something using Event viewer, I always write down the time shown by the computer's clock when I see that something happen [before even looking at Event viewer] so I can always be sure what it is that I'm looking at in Event viewer later on. This becomes increasingly important the more test runs are involved in whatever it is that I'm investigating.
    Display Turn Off in Power Options Causing USB Disconnection-power-s0ix-s3sleep-hibernate-transitions.png


    Note 1 Distinguishing between resuming from S3 Sleep & Hibernation
    When reviewing power state transitions, note that S3 Sleep & Hibernation events can only be distinguished, in a computer that has both, by looking at the Details tab of the resume EventID 1 for Hiber* entries that are greater than 0; resuming from S3 Sleep would show Hiber* entries that have the value 0
    Resume from Hibernate, Details tab

    Resume from S3 Sleep, Details tab



    Note 2 Incorrectly labelled S0 Modern standby events
    On a similarly confusing note, S0 Modern standby event records are misleadingly labelled as relating to S0 Connected standby whichever state is in force - Connected/Disconnected standby.
    I appreciate that you are working on an S3 Sleep computer at the moment.


    Note 3 Sharing Event viewer, Custom view definitions between computers
    You can generally export an Event viewer, Custom view definition on one computer and import it on another.
    The only exception I know of is that Administrative events Custom view you can see at the top of my first diagram. If I deliberately created a Custom view that included hardware-specific properties then that would also be an exception.
    - That Administrative events view definition lists all events so can be useful if I want to see everything in chronological order.
    - That Administrative events view definition contains hardware-specific properties that differ between computers. They can also differ if hardware is swapped on a single computer.
    - That Administrative events view definition is not filterable. If you try filtering it, the filter options are all greyed out. This really hinders investigations.
    When I want to set up a filterable version of it on a new computer and again when I change hardware, I create a filterable version of it by:-
    3.1 Deleting any previous filterable version I had created.
    3.2 Right-clicking on the Administrative events Custom view then Exporting it.
    3.3 Renaming the xml file to something like Administrative events - Filterable.
    3.4 Importing the Administrative events - Filterable xml file and using the xml file name as the Custom view name.
    That imported version enables Event viewer's Filter Current Custom View control on the right-hand side of its window.
    I last changed mine when I changed WiFi adapter and started using a USB LAN adapter at about the same time. I do not know if either of them makes any difference to the results shown in that view but there would have been nothing to warn me of potentially significant events being missing during an investigation if I had not re-created the filterable view.



    Best of luck,
    Denis
    Last edited by Try3; 3 Days Ago at 10:09.
      My Computer


  4. Posts : 18
    Windows 10
    Thread Starter
       #14

    Try3 said:
    Have you checked whether or not there is a change of power state to S3 Sleep?

    You can check transitions between power-sleep states using the built-in utility Event viewer [eventvwr.msc] by setting up an Event viewer, Custom view that lists them.
    You can import the Power - Sleep-Hibernate-S0 transitions Custom view I use for this.
    This Custom view definition works in both Win10 & Win11 and in both S3 Sleep computers & S0 Modern standby computers.

    Here is the [zipped] definition for an Event viewer, Custom view that captures power-sleep state transitions.
    Event viewer, Custom view definitions are exported as & hence imported from xml files.
    Power - Sleep-Hibernate-S0 transitions.zip
    Before importing it, you can read its unzipped xml file in Notepad or, for a better presentation of its contents, by right-clicking and opening in a browser.

    ...

    Best of luck,
    Denis
    The only standby event in the log was when I forced the machine to sleep using the DNS app. There are NO sleep states in the log besides that one time.

    THANK YOU for the filter. I had been "eyeballing" my event log for a kernel power event. Your filter made this search a breeze. I am going to familiarize myself more with creating custom filters.

    - - - Updated - - -

    dalchina said:
    That, at least, makes sense. So the loss of USB ports is definitely related to sleep, as one might expect.

    In your first post you say


    If your USB hubs/ports are disabled, how is it that your mouse works?
    I apologize for the lack of clarity in my initial post. I didn't mean to imply all my USB devices were disconnecting. Instead, I should have said that some of my USB devices appear to disconnect. My mouse and keyboard can still wake the computer, whether they're connected via USB or Bluetooth. In addition, my USB speakers continue to function and play music even when the monitor is turned off.

    However, I have at least two devices that appear to disconnect.
    • Elgato Streamdeck. This device, which controls an Elgato light and has a set of LCD buttons, depends on computer software to operate. When the software is not running, the LCD buttons will grey out. This device visibly disconnects about 20 minutes after the monitor is turned off and remains disconnected until the monitor turns back on, at which point it reconnects immediately.
    • Sony ZV-E1. This camera is controlled through remote control software on my PC. The software reports that the camera is disconnected when the monitor is turned back on after being off for around 20 minutes.

    In addition, my Color calibration software disconnects after the monitor is turned off and back on again, but this can be easily understood.
      My Computer


  5. Posts : 43,007
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #15

    Ah.. that's entirely different... nothing to do with USB devices then.
      My Computers


  6. Posts : 18
    Windows 10
    Thread Starter
       #16

    dalchina said:
    Ah.. that's entirely different... nothing to do with USB devices then.
    I believe it also is not related to sleep states either. There appears to be some timer that gets triggered with a monitor off, which blocks these apps from working correctly. I have tested the Elgato device on a "fresh(er) install" laptop, and it doesn't exhibit this behavior."
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 11:12.
Find Us




Windows 10 Forums