1.    15 Jan 2017 #1
    Join Date : Sep 2015
    Where am I ?
    Posts : 18
    Windows 10

    Power-Troubleshooter not triggered on wake from sleep


    Hi, I have been researching on how to launch a simple command prompt command and then pipe the results to a text file whenever my laptop is woken from sleep.

    I am using Task Scheduler and triggering the action based on
    Log: System
    Source: Power-Troubleshooter
    Event ID: 1


    However, the action isn't being triggered and when I checked Event Viewer, I realised that Power-Troubleshooter with an Event ID of 1 doesn't seem to be triggered on every 'wake from sleep' event. Is this supposed to be the case ?

    Any alternatives to trigger the action will be greatly appreciatred.
      My ComputerSystem Spec
  2.    16 Jan 2017 #2
    Join Date : Jan 2016
    Posts : 47
    Windows 10

    I did this type of thing on Windows 7 years ago. And like you, I found that the Power-Troubleshooter event wasn't always getting generated.

    IIRC, I had to trigger on a Kernel-Power event too. I just checked my Event Viewer, and it looks like Event ID 107 of Kernel-Power in the System log is generated whenever the system resumes from sleep. Try triggering on that event as well.

    I haven't tried writing a script like this on Windows 10 yet though. Please let me know if it works. I may need to do it myself real soon.
      My ComputerSystem Spec
  3.    18 Jan 2017 #3
    Join Date : Sep 2015
    Where am I ?
    Posts : 18
    Windows 10
    Thread Starter

    Quote Originally Posted by Eksy61 View Post
    I did this type of thing on Windows 7 years ago. And like you, I found that the Power-Troubleshooter event wasn't always getting generated.
    IIRC, I had to trigger on a Kernel-Power event too. I just checked my Event Viewer, and it looks like Event ID 107 of Kernel-Power in the System log is generated whenever the system resumes from sleep. Try triggering on that event as well.

    I haven't tried writing a script like this on Windows 10 yet though. Please let me know if it works. I may need to do it myself real soon.
    Currently, I am using Kernel-General with an event ID of 1 to trigger the action. It seems to be working 100%
      My ComputerSystem Spec
  4.    18 Jan 2017 #4
    Join Date : Jan 2016
    Posts : 47
    Windows 10

    You trigger on system time synchronization with the hardware clock? In my Event Viewer, I see other events of that type that have nothing to do with wakeup:
    The system time has changed to ‎2017‎-‎01‎-‎17T14:23:02.021000000Z from ‎2017‎-‎01‎-‎17T14:23:02.021956600Z.

    Change Reason: An application or system component changed the time.

    I wouldn't want to trigger on that.
      My ComputerSystem Spec

 


Similar Threads
Thread Forum
Win 10 x64 . . . Wake from sleep, no Wake . . . hard restart . . . .
. . . Macrium Reflect "fix boot errors" is saving my A**! Between updates, on Wake from Sleep, no Wake . . .. requires hard start . . . spinning dots . . . no boot . . . requires my Macrium Reflect intervention disk . . . "fix boot errors" . . . ....
General Support
Solved PC slow to shutdown/restart & sleep/wake from sleep & fails to wake
Please delete - post needs to be rewritten
BSOD Crashes and Debugging
Wake on lan after power of not working (intel I218-V)
Dear all I'm trying to get wake on lan working on my new computer after a shutdown from windows. I'm using the following hardware/software: Asrock X99 Extreme 4 with onboard Intel I218-V --> connected trough wired lan Windows 10 EDU 64 bit The...
Network and Sharing
will not wake from sleep
I have a 4 yr old custom built desktop upgraded from Win 7 pro to Win 10 pro about 8 months ago. Up until two weeks ago the sleep/wake up has worked perfect. Now the unit will not wake from sleep. I have tried everything I have seen and...
General Support
BSOD: Driver power state failure, on wake up from sleep - since win 10
hello This is a problem with my Dad's PC, I am default tech support but this is beyond my knowledge. I don't have access to the PC all the time but have been going on with team viewer (thankfully, saves a long drive). BSOD: Driver power state...
BSOD Crashes and Debugging
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 18:12.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums