PowerScheduler not allowing standby when hours are set to 0 - 24 (1 Viewer)

erhardsendk

MP Donator
  • Premium Supporter
  • May 10, 2008
    10
    0
    Copenhagen
    Home Country
    Denmark Denmark
    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.
     

    rtv

    Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    rofl - you are able to compile on your own but didn't simply update to lastest SVN where the original cause had been fixed?
     

    erhardsendk

    MP Donator
  • Premium Supporter
  • May 10, 2008
    10
    0
    Copenhagen
    Home Country
    Denmark Denmark
    Hm, I think I did - but it did not change much.
    Should probably check again.

    I'm pretty sure I checked for the latest version - but hey - add one beer to the mistake-count ;-)
     

    Users who are viewing this thread

    Top Bottom