home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Products
TV-Server
PowerScheduler++ 1.4.0.x - Stable versions for MediaPortal 1.4
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="CyberSimian" data-source="post: 1100656" data-attributes="member: 141969"><p>I am using MP 1.9.0 pre, with the "aMPed" and "DefaultWide" skins, on 32-bit Vista.</p><p></p><p>Does PowerScheduler use the Windows function "SetThreadExecutionState()"? I scanned the PowerScheduler source, but could not find any references to this function. If PS does not use this function, what does it use to stop the system from sleeping or hibernating?</p><p></p><p>The reason that I am asking this is to try to find a solution to an intermittent failure that I am experiencing. My hardware does not work correctly with sleep, but it does work correctly with hibernation. Unfortunately, hibernation has poor usability for an HTPC, so to circumvent this poor usability I use a tool that I wrote myself, called HIBERMON ("Hibernation Monitor", not to be confused with any other tool of the same name available elsewhere on the internet). This tool worked without problem for two years with Windows Media Center, but when used with Media Portal it exposes some sort of "window of opportunity" in PowerScheduler's algorithm that allows Vista to hibernate the system just as a recording is starting (not every time -- I would estimate about 5% of unattended recordings fail in this way).</p><p></p><p>The way that I would expect it to work is this:</p><p>(1) "x" minutes before a recording is about to start, the HTPC wakes from hibernation.</p><p>(2) PS immediately uses "SetThreadExecutionState()" with the ES_CONTINUOUS, ES_SYSTEM_REQUIRED, and ES_AWAYMODE_REQUIRED flags to prevent the system sleeping or hibernating.</p><p>(3) The x-minute pre-record period then passes ("x" is 4 minutes in my case).</p><p>(4) The recording starts at the published start time less pre-padding, and continues until the published end time plus post-padding.</p><p>(5) PS then uses "SetThreadExecutionState()" with only the ES_CONTINUOUS flag (not sure about this), to allow the system to return to sleep or hibernation.</p><p></p><p>With the above algorithm, there is no window of opportunity that would allow Vista to hibernate the system near the start of the recording. So what is PowerScheduler doing that <em>does</em> seem to allow this? Thanks for any info.</p><p></p><p>-- from CyberSimian in the UK</p></blockquote><p></p>
[QUOTE="CyberSimian, post: 1100656, member: 141969"] I am using MP 1.9.0 pre, with the "aMPed" and "DefaultWide" skins, on 32-bit Vista. Does PowerScheduler use the Windows function "SetThreadExecutionState()"? I scanned the PowerScheduler source, but could not find any references to this function. If PS does not use this function, what does it use to stop the system from sleeping or hibernating? The reason that I am asking this is to try to find a solution to an intermittent failure that I am experiencing. My hardware does not work correctly with sleep, but it does work correctly with hibernation. Unfortunately, hibernation has poor usability for an HTPC, so to circumvent this poor usability I use a tool that I wrote myself, called HIBERMON ("Hibernation Monitor", not to be confused with any other tool of the same name available elsewhere on the internet). This tool worked without problem for two years with Windows Media Center, but when used with Media Portal it exposes some sort of "window of opportunity" in PowerScheduler's algorithm that allows Vista to hibernate the system just as a recording is starting (not every time -- I would estimate about 5% of unattended recordings fail in this way). The way that I would expect it to work is this: (1) "x" minutes before a recording is about to start, the HTPC wakes from hibernation. (2) PS immediately uses "SetThreadExecutionState()" with the ES_CONTINUOUS, ES_SYSTEM_REQUIRED, and ES_AWAYMODE_REQUIRED flags to prevent the system sleeping or hibernating. (3) The x-minute pre-record period then passes ("x" is 4 minutes in my case). (4) The recording starts at the published start time less pre-padding, and continues until the published end time plus post-padding. (5) PS then uses "SetThreadExecutionState()" with only the ES_CONTINUOUS flag (not sure about this), to allow the system to return to sleep or hibernation. With the above algorithm, there is no window of opportunity that would allow Vista to hibernate the system near the start of the recording. So what is PowerScheduler doing that [i]does[/i] seem to allow this? Thanks for any info. -- from CyberSimian in the UK [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Products
TV-Server
PowerScheduler++ 1.4.0.x - Stable versions for MediaPortal 1.4
Contact us
RSS
Top
Bottom