Normal
Regeszter: My server has no client running on it (i.e. dedicated and 'headless'), thus the problem with having _lastUserTime updated to prevent entering standby prematurely.Dev Group: Please consider the following patch for TvEngine3\TVLibrary\Plugins\PowerScheduler\PowerScheduler.cs 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 _lastSystemTime not to contaminate the _lastUserTime.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;
Regeszter: My server has no client running on it (i.e. dedicated and 'headless'), thus the problem with having _lastUserTime updated to prevent entering standby prematurely.
Dev Group: Please consider the following patch for TvEngine3\TVLibrary\Plugins\PowerScheduler\PowerScheduler.cs 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 _lastSystemTime not to contaminate the _lastUserTime.
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;