PowerScheduler not allowing standby when hours are set to 0 - 24 TV-Server Version: MediaPortal Version: nightly build from Friday 23rd MediaPortal Skin: Blue Wide Windows Version: Vista Home Premium SP1 CPU Type: AMD x64 BE HDD: Seagate 750GB Memory: 2GB Motherboard: Gigabyte GA-MA69GM-S2H Video Card: Ati x1250 Video Card Driver: Sound Card: Sound Card AC3: Sound Card Driver: 1. TV Card: DigitalAnywhere FloppyDTV 1. TV Card Type: DVB-C HTPC Case: HfX Mini
I tried commenting out the lines 1242-1251 containing the hour-check in PowerScheduler.cs:
//check if is allowed to sleep at this time.
// e.g. 23:00 -> 07:00 or 01:00 -> 17:00
if ((Current24hHour < _settings.AllowedSleepStartTime) && (Current24hHour > _settings.AllowedSleepStopTime) ||
(Current24hHour > _settings.AllowedSleepStartTime) && (Current24hHour > _settings.AllowedSleepStopTime))
{
_currentDisAllowShutdownHandler = "NOT-ALLOWED-TIME";
LogVerbose("PowerScheduler.DisAllowShutdown: not allowed hour for standby {0}", Current24hHour);
_currentDisAllowShutdown = true;
_powerManager.PreventStandby();
return true;
}
- recompiled the project, copied the PowerScheduler plugin dll to the HTPC, and now the machine can suspend.
I found that in the log, TVserver outputs 'not allowed hour for standby 13' although the setting says 0 - 24. |