Unable to wake up the pc from sleep through an event/task.

Page 2 of 2 FirstFirst 12

  1. Posts : 17,103
    Windows 10 Home x64 Version 22H2 Build 19045.5371
       #11

    Whilst I use Event viewer most of the time, when investigating some topics I find that
    NirSoft FullEventLogView
    is very handy
    [it's the updated version of their MyEventViewer]

    It provides a neat chronological view that can be useful when thinking about what happens during particular periods [in your case, during sleep].

    Denis
      My Computer


  2. Posts : 36
    Windows 10 Pro, 20H2, 19042.867
    Thread Starter
       #12

    Try3 said:
    Whilst I use Event viewer most of the time, when investigating some topics I find that
    NirSoft FullEventLogView
    is very handy
    [it's the updated version of their MyEventViewer]

    It provides a neat chronological view that can be useful when thinking about what happens during particular periods [in your case, during sleep].

    Denis
    Oh I will have a look at that, thanks
      My Computer


  3. Posts : 14,809
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #13

    Technewbie said:
    Oh wow so early into the computer field I was not even born at that point lol xD
    At we had to take correspondence classes in the late '80s learning computers for upcoming equipment changes. I got to retire 2 months before turning 55.
      My Computers


  4. Posts : 36
    Windows 10 Pro, 20H2, 19042.867
    Thread Starter
       #14

    Try3 said:
    NirSoft FullEventLogView
    is very handy
    It provides a neat chronological view that can be useful when thinking about what happens during particular periods [in your case, during sleep].

    Denis
    Thanks for the app, it is easier to use than event viewer. Please take a look at the events files I attached, where:
    -1. ethernet stayed connected,
    -2. ethernet is disconnected while pc is sleeping.

    1. In this event list everything seemed to work well where ethernet port stayed connected even when pc is sleeping I assume it should for WoL to work:
    -the system went to sleep at 1:26:05 PM,
    -idk why it stated that the system is resumed from sleep at 1:26:07 PM but the pc stayed in sleep nevertheless
    -idk why it stated ethernet is connected at 1:33:04 PM even though as we can see it never got disconnected in the first place in the events list.

    2. As u can see in the second events list
    -the pc went to sleep at 2:09:38 PM,
    -I disconnected the ethernet at 2:15 pm which did not wake the pc but,
    -when I did wake it up manually at 2:22:19 PM it says that the ethernet connection is disconnected at 2:22:23 at the same time it is connected at 100mbpss half-duplex and was fully re-connected at 2:22:26 PM

    Q1. Why did the event where the port is disconnected registered after the pc woke up?

    Q2. Is this a bug or is this how sleep works in windows(I mean does it not record events when it was sleeping as the CPU is off, whereas WoL is a special case where it has a special network adapter hardware)?
    I assumed I should be able to configure the ethernet to wake the pc when the ethernet was disconnected from the following commands:
    Code:
     Microsoft Windows [Version 10.0.19042.867]
    (c) 2020 Microsoft Corporation. All rights reserved.
    
    C:\Users\srive>powercfg /devicequery wake_armed
    HID Keyboard Device
    HID-compliant mouse
    Intel(R) Ethernet Connection (7) I219-V
    HID Keyboard Device (001)
    
    
    C:\Users\srive>powercfg /devicequery wake_programmable
    HID-compliant system controller
    HID Keyboard Device
    HID-compliant system controller (001)
    HID-compliant consumer control device
    HID-compliant device
    HID-compliant mouse
    Intel(R) Ethernet Connection (7) I219-V
    HID-compliant consumer control device (001)
    HID Keyboard Device (001)
    
    
    C:\Users\srive>
    Thanks for all the help so far, really appreciate it :D
      My Computer


  5. Posts : 17,103
    Windows 10 Home x64 Version 22H2 Build 19045.5371
       #15

    Technewbie said:
    Thanks for the app, it is easier to use than event viewer. Please take a look at the events files I attached, where:
    -1. ethernet stayed connected,
    -2. ethernet is disconnected while pc is sleeping.
    Nothing indicates that the network is connected while the computer is asleep. All you have observed is that the disconnection event was not logged. If you had a network you would see on the other computers that this one had disappeared at the time it slept.

    Technewbie said:
    1. In this event list everything seemed to work well where ethernet port stayed connected even when pc is sleeping I assume it should for WoL to work:
    -the system went to sleep at 1:26:05 PM,
    -idk why it stated that the system is resumed from sleep at 1:26:07 PM but the pc stayed in sleep nevertheless
    -idk why it stated ethernet is connected at 1:33:04 PM even though as we can see it never got disconnected in the first place in the events list.
    It did resume from sleep at 1:26:07.
    It says that the network was connected because it had been disconnected.

    Technewbie said:
    2. As u can see in the second events list
    -the pc went to sleep at 2:09:38 PM,
    -I disconnected the ethernet at 2:15 pm which did not wake the pc but,
    -when I did wake it up manually at 2:22:19 PM it says that the ethernet connection is disconnected at 2:22:23 at the same time it is connected at 100mbpss half-duplex and was fully re-connected at 2:22:26 PM
    Technewbie said:
    Q1. Why did the event where the port is disconnected registered after the pc woke up?
    Event logs record events at the time they are logged. So 2:22:23 just means that this was when Windows noticed.

    Technewbie said:
    Q2. Is this a bug or is this how sleep works in windows(I mean does it not record events when it was sleeping as the CPU is off, whereas WoL is a special case where it has a special network adapter hardware)?
    I assumed I should be able to configure the ethernet to wake the pc when the ethernet was disconnected from the following commands:
    ...
    Thanks for all the help so far, really appreciate it
    When the computer is asleep, it is not active. In other words, it is asleep.
    Your assumption about WoL is unjustified.



    In summary, you do not have a trigger for your intended task so you are going to have to think of an entirely different solution.

    All the best,
    Denis
      My Computer


  6. Posts : 36
    Windows 10 Pro, 20H2, 19042.867
    Thread Starter
       #16

    Try3 said:
    Nothing indicates that the network is connected while the computer is asleep. All you have observed is that the disconnection event was not logged.
    Event logs record events at the time they are logged. So 2:22:23 just means that this was when Windows noticed.
    Ah! It seems that I got the wrong idea about the event loggers, I thought that they logged the event as the event occurred, thanks for the clarification. I finally get where I went wrong :D.


    Try3 said:
    If you had a network you would see on the other computers that this one had disappeared at the time it slept.
    :o, Good point, if I had a lan going on I would have been able to tell if it had disappeared.

    Try3 said:
    In summary, you do not have a trigger for your intended task so you are going to have to think of an entirely different solution.

    All the best,
    Denis
    Thanks, but after reading your answers I think I'm missing the technical knowledge needed for going forward without wasting significant time on this. I will enable hybrid sleep or hibernation as an alternative to when the power outage occurs when pc is not awake until I look deep into this. Thanks for bearing with me, your answers are very spot-on and precise than what I received from MS tech support tbh.
    Last edited by Technewbie; 26 Mar 2021 at 12:20.
      My Computer


  7. Posts : 17,103
    Windows 10 Home x64 Version 22H2 Build 19045.5371
       #17

    Technewbie said:
    I will enable hybrid sleep or hibernation as an alternative to when the power outage occurs when pc is not awake
    I think those are the most appropriate solutions.
    - Hibernation takes longer than Sleep to resume but is protected from loss of power because the RAM is saved to disk.
    - Hybrid sleep can achieve the same fast resume as Sleep but also has the fallback advantage of including saving the RAM to disk just like hibernation.

    Unless you find a UPS that can enforce Hibernation when power cuts off, even if the computer is currently sleeping, I cannot see you finding a better solution.

    All the best,
    Denis
      My Computer


  8. Posts : 36
    Windows 10 Pro, 20H2, 19042.867
    Thread Starter
       #18

    Try3 said:
    I think those are the most appropriate solutions.
    - Hibernation takes longer than Sleep to resume but is protected from loss of power because the RAM is saved to disk.
    - Hybrid sleep can achieve the same fast resume as Sleep but also has the fallback advantage of including saving the RAM to disk just like hibernation.
    I initially considered this before asking in the forum, but I wrongly concluded that I couldn't schedule a task for when pc is hibernating and hence I disabled hibernation and that disabled hybrid sleep, but your reply here gave me hope again lol[/quote]

    Try3 said:
    Unless you find a UPS that can enforce Hibernation when power cuts off, even if the computer is currently sleeping, I cannot see you finding a better solution.
    Yeah exactly what I was thinking, apc or cyberpower seems to have this this but hard to obtain in my area, thanks for help. Marked this post as solved for now :).
      My Computer


  9. Posts : 17,103
    Windows 10 Home x64 Version 22H2 Build 19045.5371
       #19

    Just to avoid any misunderstandings, you will not have any trigger for your task in either sleep or hibernate.
    I'm suggesting hibernation / hybrid sleep as an alternative to setting up that desired task of yours not as part of it.

    Technewbie said:
    apc or cyberpower seems to have this this
    Even if the computer is sleeping?
    - I've just had a quick look at some of their UPS on Amazon and could not find any confirmation of this.
    - I did find several adverse customer reviews about having to buy the UPS-to-PC USB cable separately in order to let the UPS send commands to the PC [but that was in Amazon UK so presumably concerns APC UK rather than the subsidiary where you are].
    - Not knowing anything about UPS, I'd go to the APC / Cyberpower website to get a copy of the user manual so I could check what it could do. If there was any room for doubt, I'd want to get an explicit statement from them on the subject.

    Denis
      My Computer


  10. Posts : 36
    Windows 10 Pro, 20H2, 19042.867
    Thread Starter
       #20

    Try3 said:
    Just to avoid any misunderstandings, you will not have any trigger for your task in either sleep or hibernate.
    I'm suggesting hibernation / hybrid sleep as an alternative to setting up that desired task of yours not as part of it.
    Oh sorry, I tend to word what I think weirdly when I type, I meant hybrid sleep/hibernation as an alternative to save my work from power loss the same as you suggested now.

    -What I meant by hope was, now I can put my pc to hibernation/hybrid sleep & schedule a task to wake the pc from hibernation at 2:00 am to start an application say qbittorrent.exe to seed/resume download I want to start and if by chance there is a power loss as the pc is now seeding/wake state it simply hibernates by detecting the loss of network link(event ID:27) but unfortunately as it won't wake up now as there is no other trigger to wake it up which is fine by me as my pc went to hibernation thus saving the work so far for now and the likely event of power loss daily between 2:00 am to 8:00 am is very less likely in my area.

    -In summary, I get to save my work so far in the event a power loss occurs, but won't be able to resume from there even when the power comes back just after 30 sec as there won't be any trigger to notify the system which is now in hibernation that the network/power is available now.
    --I hope I was clear now, my grammar is still a work in progress please forgive me if I sound vague.

    Try3 said:
    Even if the computer is sleeping?
    - I've just had a quick look at some of their UPS on Amazon and could not find any confirmation of this.
    - I did find several adverse customer reviews about having to buy the UPS-to-PC USB cable separately in order to let the UPS send commands to the PC [but that was in Amazon UK so presumably concerns APC UK rather than the subsidiary where you are].
    - Not knowing anything about UPS, I'd go to the APC / Cyberpower website to get a copy of the user manual so I could check what it could do. If there was any room for doubt, I'd want to get an explicit statement from them on the subject.

    Denis
    -I never had a ups with auto shutdown feature so I don't know if a UPS-to-PC USB cable is necessary, but it seems so like you said from this howtogeek post
    -As for, whether the ups can hibernate when the pc is sleeping, I remember reading in a apc documention of how pit has this feature for a specific ups and also iirc saw on an other third party app called NUT but I could be wrong, I will update/reply to this post once I can confirm this, thanks for the heads-up!
    Last edited by Technewbie; 27 Mar 2021 at 00:30.
      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 02:24.
Find Us




Windows 10 Forums