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
MediaPortal 1
Quality Assurance
Bugreports
Archive
PowerScheduler plugin -- Standby timeout timer does not get update
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="Edward Cheung" data-source="post: 1194172" data-attributes="member: 159714"><p><strong>Regeszter:</strong> My server has no client running on it (i.e. dedicated and 'headless'), thus the problem with having <em>_lastUserTime</em> updated to prevent entering standby prematurely.</p><p><strong>Dev Group:</strong> Please consider the following patch for <em>TvEngine3\TVLibrary\Plugins\PowerScheduler\PowerScheduler.cs</em> in Mediaportal 1 Main branch.</p><p>NOTES:</p><p>1) I didn't modify the PowerScheduler in "PowerSchedulerClientPlugin" with the believe that it is for the client side. So using the user activity to drive the standby timeout is, by definition, appropiate.</p><p>2) I introduce another variable <em>_lastSystemTime</em> not to contaminate the <em>_lastUserTime</em>.</p><p>3) I didn't tweak the 120 second hardcoded timeout for determination of the "_ignoreSuspendUntil" as it's intend for other purpose.</p><p></p><p>139a140,144</p><p>> /// Last time any activity by the system was detected.</p><p>> /// </summary></p><p>> private DateTime _lastSystemTime;</p><p>></p><p>> /// <summary></p><p>1297,1298c1302,1307</p><p>< DateTime idleTimeout = _lastUserTime.AddMinutes(_settings.IdleTimeout);</p><p><</p><p>---</p><p>> DateTime idleTimeout = _lastUserTime.AddMinutes(_settings.IdleTimeout);</p><p>> if (_lastUserTime < _lastSystemTime)</p><p>> {</p><p>> idleTimeout = _lastSystemTime.AddMinutes(_settings.IdleTimeout);</p><p>> }</p><p>> </p><p>1327a1337</p><p>> _lastSystemTime = DateTime.Now;</p></blockquote><p></p>
[QUOTE="Edward Cheung, post: 1194172, member: 159714"] [B]Regeszter:[/B] My server has no client running on it (i.e. dedicated and 'headless'), thus the problem with having [I]_lastUserTime[/I] updated to prevent entering standby prematurely. [B]Dev Group:[/B] Please consider the following patch for [I]TvEngine3\TVLibrary\Plugins\PowerScheduler\PowerScheduler.cs[/I] in Mediaportal 1 Main branch. NOTES: 1) I didn't modify the PowerScheduler in "PowerSchedulerClientPlugin" with the believe that it is for the client side. So using the user activity to drive the standby timeout is, by definition, appropiate. 2) I introduce another variable [I]_lastSystemTime[/I] not to contaminate the [I]_lastUserTime[/I]. 3) I didn't tweak the 120 second hardcoded timeout for determination of the "_ignoreSuspendUntil" as it's intend for other purpose. 139a140,144 > /// Last time any activity by the system was detected. > /// </summary> > private DateTime _lastSystemTime; > > /// <summary> 1297,1298c1302,1307 < DateTime idleTimeout = _lastUserTime.AddMinutes(_settings.IdleTimeout); < --- > DateTime idleTimeout = _lastUserTime.AddMinutes(_settings.IdleTimeout); > if (_lastUserTime < _lastSystemTime) > { > idleTimeout = _lastSystemTime.AddMinutes(_settings.IdleTimeout); > } > 1327a1337 > _lastSystemTime = DateTime.Now; [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Quality Assurance
Bugreports
Archive
PowerScheduler plugin -- Standby timeout timer does not get update
Contact us
RSS
Top
Bottom