MediaPortal doesn´t restart when resuming from Standby | Page 3

Discussion in '1.0 final and SVN Builds' started by Ragendorf, December 26, 2008.

  1. sbp

    sbp Portal Pro

    Joined:
    August 10, 2006
    Messages:
    192
    Likes Received:
    1
    Location:
    Auning
    Ratings:
    +1 / 0
    Home Country:
    Denmark Denmark
    Hi Simone

    Your new restart.vbs script doesn't restart MP. The computer restarts OK, but MP doesn't start - we are stuck at windows. But no errors, so it is a little better than before, where there was errors and the Watchdog windows appeared



    However, the restart.vbs posted a few post above yours, is working fine.

    I'm using the MP1 final, windows XP SP3 Danish. And the in-build TV-engine (not the server)
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Pascal

    Pascal Portal Pro

    Joined:
    February 1, 2007
    Messages:
    99
    Likes Received:
    7
    Gender:
    Male
    Location:
    IJsselmuiden
    Ratings:
    +7 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Hi,

    I do not know if my issue is the same. The problem I run into is that MediaPortal is not restarted after resuming from standby. Yes I have the option in the general form enabled. If I use the vb-script restart.vbs, it all works.

    In the log it is saying a line like 'OnResume - OnResume called but !_suspended'. Maybe this has something to do with it. Also right after I press standby, there are a lot of DX errors?

    Anyone has an idea what this could be?

    thanks,

    Pascal
     
  4. chemelli
    • Premium Supporter

    chemelli Retired Team Member

    Joined:
    September 28, 2006
    Messages:
    6,159
    Likes Received:
    1,126
    Gender:
    Male
    Occupation:
    Activation Manager - Cloud Services
    Location:
    Trento, Italy
    Ratings:
    +1,127 / 0
    Home Country:
    Italy Italy
    Please test this new script. Post here any issue you find and also the restart.log, in the same log dir as usual.
    Take care that restart.log is overwritten each time the script run !

    Simone
     
    • Like Like x 1
  5. Pascal

    Pascal Portal Pro

    Joined:
    February 1, 2007
    Messages:
    99
    Likes Received:
    7
    Gender:
    Male
    Location:
    IJsselmuiden
    Ratings:
    +7 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Thanks for the effort. However my problem is not related to the restart.vbs. If I run the old one, MediaPortal gets restarted just fine. The problem lies in the fact that MediaPortal is not starting it. If you read my log it is mentioning a resume from critical standby. For some reason if I use the standby function within MediaPortal ('2009-01-13 18:16:56.843750 [Debug][MPMain]: PSClientPlugin: Delegating shutdown request to tvserver: Suspend') it does a critical one.

    Resuming from a critical standby does not launch the script.
     
  6. craigparris1

    craigparris1 Portal Pro

    Joined:
    May 20, 2008
    Messages:
    189
    Likes Received:
    15
    Ratings:
    +15 / 0
    Home Country:
    Hi Pascal,

    Any luck with the resume problem you've been having. If you see my post here, I'm experiencing the same log messages that you are - that seem to be related to the MediaPortal client not getting notified about Windows going into suspend.

    I think that's what causes all the DX errors - obviously, the TV-Server starts suspending Windows, so whatever device MediaPortal is looking for starts going to sleep, but the MediaPortal client is still trying to talk to it.

    Please let me know if you find a solution for this problem. I'll try a little more testing, but I've almost run out of ideas (and time) for things to test right at the moment. I'd really just like standby/resume to work perfectly the way it did back in RC3.

    Cheers,
    Craig
     
  7. Pascal

    Pascal Portal Pro

    Joined:
    February 1, 2007
    Messages:
    99
    Likes Received:
    7
    Gender:
    Male
    Location:
    IJsselmuiden
    Ratings:
    +7 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Hi Craig,

    I do have a work around. I use vbscript to detect the resume standby events from windows. It is not a clean solution, but better something that works :)

    The script looks like:

    Dim process
    Dim shell

    Set colMonitoredEvents = GetObject("winmgmts:")._
    ExecNotificationQuery("Select * from Win32_PowerManagementEvent")
    Set WshShell = WScript.CreateObject("WScript.Shell")

    Do
    Set strLatestEvent = colMonitoredEvents.NextEvent
    Select Case strLatestEvent.EventType
    Case 18
    WshShell.Run "tskill Mediaportal", 0, true
    WScript.Sleep 100
    WshShell.Run "Mediaportal"
    End Select
    WScript.Sleep 100
    Loop


    I saved this in a file ResumeTrigger.vbs, saved it in the same directory as MediaPortal.exe exists and launch it at windows startup.

    Good luck with it, maybe it works for you too!

    greetz,

    Pascal
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!