Should display wake up overnight when a program runs?

Page 3 of 4 FirstFirst 1234 LastLast

  1. Posts : 16,931
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #21

    das10 - Good catch.

    Terry,

    This means you can tell SecondCopy to run that NirSoft command to turn off the display when you start the backup ["when the profile is run" in their words].
    It's in Advanced properties, Run programs.
    If you have any questions, please include a screenshot of that dialog because I have not seen it.


    Denis
      My Computer


  2. Posts : 3,274
    Win10
       #22

    Denis by way of info only; besides the NirCmd utility, this bat file also seems to work in turning off the Monitor:
    Monitor_Off.bat
    Code:
    <# ::
    :: https://superuser.com/questions/1397941/how-to-turn-off-screen-with-powershell 
    setlocal
    powershell -noprofile -ExecutionPolicy ByPass "[ScriptBlock]::Create((${%~f0} | out-string)) | Invoke-Expression" & Exit
    goto :EOF
    #>
    
    (Add-Type '[DllImport("user32.dll")]public static extern int SendMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2)
      My Computers


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

    Interesting.
    I'll add it to my PS learning folders. I'm still waiting for a month with nothing to do so I can start studying my notes instead of just adding to them.

    Thanks,
    Denis
      My Computer


  4. Posts : 478
    Windows 10
    Thread Starter
       #24

    das10 said:
    SecondCopy appears to have an option to run external program/batch file before/after a profile is run.

    How to backup computer - Second Copy Tour

    Under "Advanced Properties" it says:
    Advanced Properties let you set the options for copying, define compression ratio, set external program or "batch files" to run before and after the profile is run.
    Echoing Denis, nice catch, thank you! Never noticed it in all these years - but then never really had any cause to use it. Now just need to study the NirCmd stuff before trying it.

    Of course, I still don't know for sure that it's SecondCopy causing the wake-ups. So I'll probably pin that down first.

    And it would be good to get the Dell working properly first too!

    I've abandoned TOM ;-)
      My Computer


  5. Posts : 16,931
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #25

    Terrypin said:
    Of course, I still don't know for sure that it's SecondCopy causing the wake-ups. So I'll probably pin that down first.
    I assume that, rather than change any of your existing profiles, you could create a new one at a suitable time just for the test.
    Terrypin said:
    And it would be good to get the Dell working properly first too!
    Yes. Then you'd be able to sleep the computer with the monitor turned off at night like most of us can and just wake the computer up for your backups.
    While you are looking into that SecondCopy, Run programs thing you might also usefully see if it can wake the computer up itself or if it can be triggered by Task scheduler.

    All the best,
    Denis
      My Computer


  6. Posts : 478
    Windows 10
    Thread Starter
       #26

    Try3 said:
    Interesting.
    I'm still waiting for a month with nothing to do...
    Denis
    Me too. I'd settle for a day!

    - - - Updated - - -

    Try3 said:
    I assume that, rather than change any of your existing profiles, you could create a new one at a suitable time just for the test.
    To be convincing I'd really have to set the display off in Win 10 and run the existing profiles, and observe for maybe an hour. Various errors occur e.g. about inaccessibility of certain files, or USB flash drives. They are logged but not sure if they also get displayed for some time.
      My Computer


  7. Posts : 16,931
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #27

    Terrypin said:
    Various errors occur e.g. about inaccessibility of certain files, or USB flash drives.
    Our situations are not the same because I write my own backup scripts [based on the built-in command RoboCopy] and I tell it to backup, say, F:\Whatever\Documents and all its subfolders.
    - I tell it to check that F:\Whatever\Documents exists and to Pause with an error message onscreen if it does not. But, in practice, such a core folder would only be missing if my computer had been really messed up.
    - I do not need to tell it to backup F:\Whatever\Documents\Tom\Dick\Harry specifically because they are covered within F:\Whatever\Documents subfolders.
    Don't you have the same ability using SecondCopy?


    I also tell my scripts to search for external drives by name [Drive label] and to Pause with an error message onscreen if any of them cannot be found.


    Denis
      My Computer


  8. Posts : 478
    Windows 10
    Thread Starter
       #28

    Try3 said:
    Our situations are not the same because I write my own backup scripts [based on the built-in command RoboCopy] and I tell it to backup, say, F:\Whatever\Documents and all its subfolders.
    - I tell it to check that F:\Whatever\Documents exists and to Pause with an error message onscreen if it does not. But, in practice, such a core folder would only be missing if my computer had been really messed up.
    - I do not need to tell it to backup F:\Whatever\Documents\Tom\Dick\Harry specifically because they are covered within F:\Whatever\Documents subfolders.
    Don't you have the same ability using SecondCopy?


    I also tell my scripts to search for external drives by name [Drive label] and to Pause with an error message onscreen if any of them cannot be found.

    Denis
    Yes, all that's taken care of. Errors are logged for later viewing.

    - - - Updated - - -

    Have I misunderstood the article here?

    See Wake Source in Windows 10

    I set Win 10 to send the display to sleep after 2 mins non-use. It did so. Then I woke it (by moving my mouse) and ran
    C:\WINDOWS\system32>powercfg lastwake in an elevated command prompt, which gave this result:
    Wake History Count - 0

    I expected to see a count of 1, not zero, and presumably some details of the source?
      My Computer


  9. Posts : 16,931
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #29

    Terrypin said:
    I set Win 10 to send the display to sleep after 2 mins non-use. It did so. Then I woke it (by moving my mouse) and ran
    C:\WINDOWS\system32>powercfg lastwake in an elevated command prompt, which gave this result:
    Wake History Count - 0
    Mine is also meaningless. Mine tells me Wake History Count - 1 despite how many wakes there have been [woken using power button].
    I suspect it is a bad label. Perhaps it means wake source type.

    By the way, it does not need elevation.

    If I ever need to know anything about a wake or any other power state transition, I check the Event logs.
    Import Event viewer, Custom views - Power state transitions - my post #4 - TenForums


    All the best,
    Denis
      My Computer


  10. Posts : 478
    Windows 10
    Thread Starter
       #30

    Try3 said:
    Mine is also meaningless. Mine tells me Wake History Count - 1 despite how many wakes there have been [woken using power button].
    I suspect it is a bad label. Perhaps it means wake source type.

    By the way, it does not need elevation.

    If I ever need to know anything about a wake or any other power state transition, I check the Event logs.
    Import Event viewer, Custom views - Power state transitions - my post #4 - TenForums


    All the best,
    Denis
    Thanks for testing. I’ll use the tool you suggest in future.
      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 22:49.
Find Us




Windows 10 Forums