|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 09 Sep 2011 | #1 |
|
|
How do I prevent going to sleep with processes active?
My normal settings are for the display to 'sleep' after 15 mins and the computer to 'sleep' after 20 mins. This is fine for day to day use but once a week and once a month a virus scan and backup are scheduled to run. It is really anoying for the computer to go to sleep whilst these are running and having to remember to set sleep never for these days. Is there a 'switch' somewhere that I am missing?
Windows 7 64 bit |
| My System Specs |
| . |
|
|
| 09 Sep 2011 | #2 |
|
|
You can thank MS for W7's incredibly aggressive power savings functionality, which doesn't seem to care what the CPU is doing and goes to sleep during any program operation. Any program, that is, which does not know the "Secret Handshake" to tell W7 to leave it the heck alone (somethng called STES iirc).
Anyway if your AV program isn't smart enough to keep W7 awake (my Comodo isn't either) then you can create your own batch commands to change your Power settings (via CLI powercfg) prior to your AV running, and return the settings back to normal after. Nontrivial at best... Here's a freeware I just found that might be of interest http://www.ghacks.net/2010/11/21/don...wn-in-windows/ And here is what Programmers need to know to make their proggies keep Windows from sleeping: http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx A couple other programs I found. What you want to do is to Wake your PC just prior to those dates/times when your AV is scheduled to run, then restore your Sleep settings after the AV scan is complete: http://www.dennisbabkin.com/wosb/ http://ck-tnt.blogspot.com/2011/04/h...-stand-by.html |
| My System Specs |
| 09 Sep 2011 | #3 |
|
Windows 7 Ultimate x64/Windows 8 Consumer Preview x64/Ubuntu 11.04
|
What AV do you use? The reason I ask this is because some anti-virus has an option to automatically shutdown or sleep after a scan is finished.
|
| My System Specs |
| . |
|
|
| 09 Sep 2011 | #4 |
|
Hi,
I think the tool that might help you here is powercfg. You access it from an elevanted CMD window. If you type powercfg /? in the cmd window, it will list several usage options. The one I think might be able to help you is: powercfg -requestoverride I have never used it, but from the description it looks like you can use a service (for example a backup service or security service) to override the sleep state (i.e. it 'wakes' the computer when the service sends a signal to start). Code:
-REQUESTSOVERRIDE
Sets a Power Request override for a particular Process, Service,
or Driver. If no parameters are specified, this command displays
the current list of Power Request Overrides.
Usage: POWERCFG -REQUESTSOVERRIDE <CALLER_TYPE> <NAME> <REQUEST>
<CALLER_TYPE> Specifies one of the following caller type:
PROCESS, SERVICE, DRIVER. This is obtained by
calling the POWERCFG -REQUESTS command.
<NAME> Specifies the caller name. This is the name
returned from calling POWERCFG -REQUESTS command.
<REQUEST> Specifies one or more of the following Power
Request Types: Display, System, Awaymode.
Example:
POWERCFG -REQUESTSOVERRIDE PROCESS wmplayer.exe Display System
Regards, Golden |
| My System Specs |
| 09 Sep 2011 | #5 |
|
|
|
| My System Specs |
| 09 Sep 2011 | #6 |
|
|
JB,
Would you: | Administrative Tools | Task Scheduler | left-click on Task Scheduler Library | highlight the task in question (from the middle pane) | click on Export (right-hand pane) | Save button.You will have saved a .xml file. Tack a .txt on to that file so that you can upload it and then upload the file. Files and Screenshots - Upload and Post in Seven Forums How to Upload and Post a Screenshot and File in Seven Forums |
| My System Specs |
| 09 Sep 2011 | #7 |
|
|
You can thank MS for W7's incredibly aggressive power savings functionality, which doesn't seem to care what the CPU is doing and goes to sleep during any program operation. Any program, that is, which does not know the "Secret Handshake" to tell W7 to leave it the heck alone (somethng called STES iirc).
As to the OP's question, powercfg does provide the override function (as per Golden's post), which will allow a particular running process to keep a machine awake if the power plan attempts to sleep whilst that process is running. However, if the antivirus scan runs under the same process name as it's resident A/V (and not a separate process), creating an override for this process will keep the machine awake indefinitely. |
| My System Specs |
| 09 Sep 2011 | #8 |
|
|
Actually, the "secret handshake" is publicly documented and a very easy-to-use API. It's probably best to lay the blame at a vendor's feet for not keeping a machine awake when it's doing something it thinks is of utmost importance, rather than blaming Microsoft's environment that has been this way since 2000 (at least). Also, other power state options are also well documented, so applications that "must" keep the system awake (and don't) are to blame in this case.
|
| My System Specs |
| 09 Sep 2011 | #9 |
|
|
Hmmm I think I said that.
![]() Depends on the program, but for some I create a batch file that just does this: Code:
powercfg -change -standby-timeout-ac 0 powercfg -change -hibernate-timeout-ac 0 powercfg -change -monitor-timeout-ac 1 CALL whatever process you want powercfg -change -standby-timeout-ac 30 powercfg -change -hibernate-timeout-ac 30 powercfg -change -monitor-timeout-ac 5 No fun, but it works. |
| My System Specs |
| 09 Sep 2011 | #10 |
|
|
Karlsnooks
Thanks for reply. First time I've gone into Task Scheduler, interesting! Seems McAfee must use its own scheduler as it does not appear in the list. I am using McAfee version 11.0.578 and Virusscan ver 15.0.291 which runs every friday. The other 'problem program' is standard Windows backup, set to run on the 1st of the month. There appears to be 3 entries for backup? I will upload a file if you still need it. |
| My System Specs |
| Similar help and support threads | ||||
| Thread | Forum | |||
|
How to prevent standard user from terminating processes? Hello everyone! Can anyone please help me with this annoyance I have? How can I prevent standard users from closing certain processes in task manager? I don't want to restrict them from using task manager, but I would like to prevent them from terminating processes that I want to be always... |
System Security | |||
|
How to add viewing active processes in task manager When i open task manager it only shows active programs. It has no other tabs and it's only the one page that says the programs. Does anyone know how i can fix this? Is there a setting in which processes can be enabled in task manager. |
Customization | |||
|
MsMpEng.exe not in Processes but Windows Defender is Active? Hi, as the topic states im having serious problems. Windows Defender is running correctly but it used to have an additional process called MsMpEng.exe, now for some reason this process is no longer there but Windows Defender is functioning correctly. There is no way for me to uninstall and... |
System Security | |||
|
IE8: Multiple internet explorer processes active with one browser open Sometimes I will have 4-5 browsers open at once. I will then close all except one of them. When I go into task manager, Processes, there will still be 4-6 "iexplorer.exe" processes open. I don't want this. Why do they remain open after closing the browsers? Is there a fix for this? |
Browsers & Mail | |||
|
How to identify, stop and prevent background processes? Hello there! I recently had an occasion to go to the DOS, well the "command prompt" as it is called now, and executed a command, which I think was called Tasklist. It listed an enormous list of processes that were running on my computer. Things like the Adobe updater, Apple phone support, etc.... |
Performance & Maintenance | |||
| Our Sites |
Site Links |
About Us |
Find Us |
|
Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd All times are GMT -5. The time now is 02:00. |
|