Show last active module after standby/hibernate not working (1 Viewer)

MPUserFromGER

MP Donator
  • Premium Supporter
  • July 31, 2006
    403
    3
    Germany
    Home Country
    Germany Germany
    When I look at the logs I can see that core.dll was updated. so this is fine.

    Did u update the plugin as well ? put it in; C:\Program Files\Team MediaPortal\MediaPortal\Plugins\Process

    /gibman

    Yes, Ihave replaced it.
    The file has the following specs:
    - change date: 3. Dezember 2007, 15:10:39
    - file size: 48,0 KB (49.152 Bytes)

    However, I am still on SVN "tvengine3-12-01-2007--01-38h--Rev16587" and have only replaced the plugin file. Do I need to use the SVN of yesterday?
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    Could u try this new patched file..
    (Just use the orig. core.dll.)

    When u manually enter hibern. mode by remote or whatever then the homescreen is not opened.
    When u or the PS plugin resumes MP then the last active module is recalled.
    If it was u that resumed PS, then great, u get TV fullscreen ex.
    If it was PS that resumed unattended, then bummmer, it wont go to sleep by itself again (still todo).
    This is the last step missing. As I said previously.

    But for now, plz. check the currently impl. stuff.

    /gibman
     

    MPUserFromGER

    MP Donator
  • Premium Supporter
  • July 31, 2006
    403
    3
    Germany
    Home Country
    Germany Germany
    Hi gibman,

    I have tested your latest file and it is working better! :)

    What happens is:
    - I am watching LiveTV in fullscreen
    - I am pressing PowerOff on the remote
    - Windows hibernates
    - After a few seconds, I am pressing PowerOm on my remote
    - Now Wndows resumes and MP resumes LiveTV as it should
    - HOWEVER, LiveTV is NOT fullscreen as it should, it is in window mode

    So if you can fix the fullscreen and make the differentiation between user forced standby and PS standby, then it works 100% :p

    P.S. I have first updated to todays SVNs 16607 and then replaced the two files yo provided.
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    Ok.

    Try this one here then.
    + use the ps client fix above.
    extract the 2 files into root of MP dir.

    gibman
     

    MPUserFromGER

    MP Donator
  • Premium Supporter
  • July 31, 2006
    403
    3
    Germany
    Home Country
    Germany Germany
    gibman:

    BINGO! :p

    Your latest files are working really great for the regular use case! That means, if I power down the HTPC via the remote control it is working as expected (LiveTV is resumed in fullscreen now). However, the recording scenario has now to be covered as well:
    - LiveTV running in fullscreen
    - Schedule a recording via the EPG
    - Shut down the PC via the remote
    - The PowerScheduler resumes the PC shortly before the recording start but LiveTV is as well reumed in fullscreen...
    - After the recording has stopped, LiveTV continues and the HTPC stays on

    This prevents the scheduling of unattendend recordings.

    If you could fix this use case, then it will run just perfectly! Great work so far gibman!

    Logs attached for your reference. It contains 3 times manual shut down and resume and at the end of the log the recording scenario, which keeps the PC on after the recording has been stopped.

    P.S. One side note:
    You wrote that both file should be copied to the MP root directory. I think this is only truefor the core.dll but not for the WindowsProcessPlugin.dll, which should be copied into the plugins directory, correct? I copied it in both directories for now...
     

    MPUserFromGER

    MP Donator
  • Premium Supporter
  • July 31, 2006
    403
    3
    Germany
    Home Country
    Germany Germany
    gibman:

    In my optinion there are 2 possibilities how to cope with the scenario "power scheduler resumes Windows":
    1. PowerScheduler knows that it has resumed Windows and ignores the lastusedmodule setting and enters the home screen. This would allow PowerScheduler to shut down Windows automatically after recording without any further changes.

    2. PowerScheduler knows that it has resumed Windows but follows the lastusedmodule setting. However it sets a flag to ignore the "only power down if in home screen" temporarily". However, this seems a little bit to complicated for me, right?
     

    MPUserFromGER

    MP Donator
  • Premium Supporter
  • July 31, 2006
    403
    3
    Germany
    Home Country
    Germany Germany
    Hi gibman,

    I am still testing you provided files.
    Sporadically, when trying to power off the PC during LiveTV, MP shows the EPG instead of entering standby. :mad:

    Logs attached.
     

    MPUserFromGER

    MP Donator
  • Premium Supporter
  • July 31, 2006
    403
    3
    Germany
    Home Country
    Germany Germany
    *bump*

    Hi gibman,

    I know you are busy but I think we are already very close on this and it would be a shame if this work would not be continued... Any ideas on how to proceed?

    Thanks

    Andreas
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    hi!

    yeah I havent abandoned it..
    been busy with this and that :)

    I'll keep u posted.

    /gibman
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    Try the attached files..

    based on latest SVN.

    I havent tested it ...

    Check mp.log for

    2007-12-18 20:43:04.046875 [Debug][MPMain]: ShowLastActiveModule() - psclientplugin nextwakeup 31-12-2007 23:59:59
    2007-12-18 20:43:04.046875 [Debug][MPMain]: ShowLastActiveModule() - timediff in minutes 18916,916015625
    2007-12-18 20:43:04.046875 [Debug][MPMain]: ShowLastActiveModule() - system probably awoken by user, continuing with ShowLastActiveModule


    and ---mp.xml for;
    <section name="psclientplugin">
    ....
    <entry name="nextwakeup">31-12-2007 23:59:59</entry>
    </section>



    /gibman
     

    Users who are viewing this thread

    Top Bottom