PowerScheduler should not allow suspension just before recording starts (1 Viewer)

dero

Retired Team Member
  • Premium Supporter
  • January 16, 2007
    75
    1
    Home Country
    Germany Germany
    MediaPortal Version: SVN 19.3.2007
    MediaPortal Skin:
    Windows Version:
    CPU Type:
    HDD:
    Memory:
    Motherboard:
    Motherboard Chipset:
    Motherboard Bios:
    Video Card:
    Video Card Driver:
    Sound Card:
    Sound Card AC3:
    Sound Card Driver:
    1. TV Card:
    1. TV Card Type:
    1. TV Card Driver:
    2. TV Card:
    2. TV Card Type:
    2. TV Card Driver:
    3. TV Card:
    3. TV Card Type:
    3. TV Card Driver:
    4. TV Card:
    4. TV Card Type:
    4. TV Card Driver:
    MPEG2 Video Codec:
    MPEG2 Audio Codec:
    Satelite/CableTV Provider:
    HTPC Case:
    Cooling:
    Power Supply:
    Remote:
    TV:
    TV - HTPC Connection:

    Hi folks,

    assume that you set "wake up before recording" to 2 minutes. Now, let some recording be scheduled to start at 8 p.m.

    When you send your computer to hibernation at 7.50 p.m., PowerScheduler will resume your computer at 7.58 p.m. and recording will start at 8 p.m.

    BUT, when you hibernate at 7.59 p.m., PowerScheduler will not resume your computer and you will miss the recording.

    Solution: PowerScheduler should deny suspend requests that occur just before a recording starts. There should be a parameter "don't allow shutdown x minutes before recording starts".

    A couple of things have to be done:

    * MediaPortal.cs: OnSuspend() should ask if any plugin would like the computer not to suspend and then reply with BROADCAST_QUERY_DENY.
    * PowerScheduler.cs: Introduce parameter notshutdowninterval -- saying how many minutes before recording a shutdown is disallowed
    * PowerScheduler.cs: Response to OnSuspend() and tell MediaPortal not to allow shutdown when we are at most "notshutdowninterval" minutes before the next recording
    * PowerScheduler.cs: When a shutdown failed, the PS should try again. At the moment, the timer is not started again, when Shutdown failed.

    Regards

    dero
     

    Users who are viewing this thread

    Top Bottom