MPstandbyHandler (4 Viewers)

josch.hh

MP Donator
  • Premium Supporter
  • March 29, 2008
    476
    77
    Hamburg
    Home Country
    Germany Germany
    Version 2.0.0.8 is up now.
    Use the checkbox in common tab to disable the "Check suspend state during resume". -> uncheck the box
     

    Woggle

    Portal Member
    December 13, 2008
    41
    0
    I've got a bit of a problem.

    Uninstalled an earlier version and upgraded to the new version. Although MPStandbyHandler is available for config in the MPConfig box, I can't find it in the TVServerConfig box under plugins.

    Is there any easy way to sort this - I can't see the PowerScheduler.dll in the Plugins box under TVServer (presumably it should be there).

    Thanks
     

    josch.hh

    MP Donator
  • Premium Supporter
  • March 29, 2008
    476
    77
    Hamburg
    Home Country
    Germany Germany
    I've got a bit of a problem.

    Uninstalled an earlier version and upgraded to the new version. Although MPStandbyHandler is available for config in the MPConfig box, I can't find it in the TVServerConfig box under plugins.

    Is there any easy way to sort this - I can't see the PowerScheduler.dll in the Plugins box under TVServer (presumably it should be there).

    Thanks

    ??? MPSH has its on config GUI. It is not integrated within MP or TVS.
     

    jojo1411

    Portal Pro
    January 23, 2008
    182
    37
    Home Country
    Germany Germany
    Thanks for the new Version josch.hh! It would be nice if MPStandbyHandler can use two diffrent external commands in next version. One for suspend and another one for resume. Could you implement that?

    I have also the same problem as Sepp776 with MPStandbyHandler on my second HTPC. Watch this post! On my first HTPC it's running fine.
    Do you have a solution for this? MPStandbyHandler Ver. 2.0.0.7 is installed on WinXP Sp3.
     

    visteon

    Portal Pro
    October 19, 2007
    94
    2
    I have been having problems for a week or so now. Was running 2.0.0.3 then had some problems so am now on 2.0.0.8

    Have a look at the logs but I just sent the system to sleep manually then resumed and see :

    22/06/2009 08:39:54 - INFO System PowerEvent: Suspend
    22/06/2009 08:39:54 - INFO OnSuspend
    22/06/2009 08:39:54 - INFO Job Load - Loaded RESUME job MediaportalStop
    22/06/2009 08:39:54 - INFO Job Load - Loaded RESUME job TVServiceStop
    22/06/2009 08:39:54 - INFO Job Load - Loaded RESUME job TVServiceStart
    22/06/2009 08:40:28 - INFO System PowerEvent: ResumeAutomatic
    22/06/2009 08:40:28 - INFO OnResume - Already resuming
    22/06/2009 08:40:38 - INFO System PowerEvent: ResumeSuspend
    22/06/2009 08:40:38 - INFO OnResume - Already resuming

    Does not appear to have run the resume tasks.....

    I have had do delete the flags file again as it is reported as corrupt again.
     

    Attachments

    • New Folder.rar
      30.6 KB

    nfox

    Portal Pro
    August 22, 2006
    163
    24
    London
    Home Country
    United Kingdom United Kingdom
    I tested 2.0.0.8 over the weekend and (so far) it seems to be working perfectly. Many thanks josch.hh!
     

    visteon

    Portal Pro
    October 19, 2007
    94
    2
    I have been having problems for a week or so now. Was running 2.0.0.3 then had some problems so am now on 2.0.0.8

    Have a look at the logs but I just sent the system to sleep manually then resumed and see :

    22/06/2009 08:39:54 - INFO System PowerEvent: Suspend
    22/06/2009 08:39:54 - INFO OnSuspend
    22/06/2009 08:39:54 - INFO Job Load - Loaded RESUME job MediaportalStop
    22/06/2009 08:39:54 - INFO Job Load - Loaded RESUME job TVServiceStop
    22/06/2009 08:39:54 - INFO Job Load - Loaded RESUME job TVServiceStart
    22/06/2009 08:40:28 - INFO System PowerEvent: ResumeAutomatic
    22/06/2009 08:40:28 - INFO OnResume - Already resuming
    22/06/2009 08:40:38 - INFO System PowerEvent: ResumeSuspend
    22/06/2009 08:40:38 - INFO OnResume - Already resuming

    Does not appear to have run the resume tasks.....

    I have had do delete the flags file again as it is reported as corrupt again.



    Can you tell me why I see the Already resuming message?
    Is it because of the flags?
    Still not working at the moment !!!!!!!!!!!!!


    EDIT:

    OK found out this is due to the 'isResuming' variable remaining set. Once it is set and the resume does not complete that's it game over. This could occur if another suspend occurs while the resume tasks are executing. It can only be reset by starting the service.

    Would it not make sense to reset it when the system is suspending ? or am I missing something.


    EDIT 2:

    No response from anyone so managed to download the source and modify the service so the flag is reset during suspend. Seems to be working so far. I have attached the exe if anyone wants to try it.
     

    Attachments

    • MPstandbyHandlerService.rar
      30.7 KB

    visteon

    Portal Pro
    October 19, 2007
    94
    2
    In MpshService.cs

    private void Suspend()
    {
    lock (syncSuspend)
    {
    if (isSuspended)
    {
    Logger.Info("OnSuspend - Already suspended");
    return;
    }

    Logger.Info("OnSuspend");
    isResuming = false;
    // START Suspend jobs
    List<Job> suspendJobs = JobTools.Load(Job.USAGE.SUSPEND);
    List<Job> resumeJobs = JobTools.Load(Job.USAGE.RESUME);


    Just the line in red added thats all.
    Its been working over the weekend with about 12 cycles without problems.
     

    Users who are viewing this thread

    Top Bottom