Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#1 | Link |
|
Registered User
Join Date: Jan 2011
Posts: 2
|
Windows goes to sleep while BD Rebuilder is compressing
I am using version 0.37.03. The release notes indicated a fix to prevent Windows from sleeping while DB Rebuilder was compressing a disk. This does not work for me (Win7 64 bit).
In the past I have used the following to prevent Windows from going to sleep successfully: EXECUTION_STATE WINAPI SetThreadExecutionState( __in EXECUTION_STATE esFlags ); SetThreadExecutionState(ES_CONTINUES | ES_SYSTEM_REQURED); and this to allow it to go to sleep: SetThreadExecutionState(ES_CONTINUES); I hope this helps |
|
|
|
|
|
#2 | Link |
|
Moderator
![]() Join Date: Oct 2001
Posts: 21,171
|
This is what is currently used:
SetThreadExecutionState(ES_DISPLAY_REQUIRED | ES_SYSTEM_REQUIRED | ES_CONTINUOUS) It is executed at the beginning of every encode (call to X264). and I use this to allow it to go to sleep: SetThreadExecutionState(ES_CONTINUOUS) It is executed at the end of each X264 call. The only way I can see that your system might go to sleep is if you have the timeout so low that it will go to sleep during muxing or some other relatively low time demand process. I got another similar report, so I'm changing it for the next version so it gets disabled at the beginning of each complete job, and disabled when it is finished.
__________________
jdobbs.softworks@gmail.com Last edited by jdobbs; 11th February 2011 at 23:40. |
|
|
|
|
|
#3 | Link |
|
Guest
Posts: n/a
|
The problem is that issuing that command does not reset the sleep timer, so if the pc thinks it has been idle for the "sleep after" time already, it will sleep straight away!
My issue is that my monitor doesn't sleep whilst BD RB is doing its stuff, so I have to turn if off manually in order not to waste 100+ watts of electricity (I have a large screen) when not using my pc for anything else. Last edited by ilancas; 12th February 2011 at 17:14. |
|
|
|
#4 | Link | |
|
Moderator
![]() Join Date: Oct 2001
Posts: 21,171
|
Quote:
__________________
jdobbs.softworks@gmail.com Last edited by jdobbs; 12th February 2011 at 19:38. |
|
|
|
|
|
|
#5 | Link |
|
Registered User
Join Date: Jan 2011
Posts: 2
|
I think changing at the beginning/end of each job will work
The sleep timer on my system is set to 1 hr.
Setting at the begin of each job and resetting at the end should work. I have a small command line program that uses this code to prevent the system from going to sleep during a backup and it has worked (the backup program I was using did not prevent the system from sleeping). You might also instead consider framing a batch instead of each job. - Mike |
|
|
|
|
|
#6 | Link | |
|
Moderator
![]() Join Date: Oct 2001
Posts: 21,171
|
Quote:
__________________
jdobbs.softworks@gmail.com |
|
|
|
|
![]() |
|
|