MediaPortal doesn´t restart when resuming from Standby (1 Viewer)

sbp

Portal Pro
August 10, 2006
192
1
Auning
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)
 

Pascal

Portal Pro
February 1, 2007
99
7
IJsselmuiden
Netherlands Netherlands
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
 

chemelli

Retired Team Member
  • Premium Supporter
  • September 28, 2006
    6,159
    2,264
    46
    Milano, Italy
    Italy Italy
    Country flag
    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
     

    Pascal

    Portal Pro
    February 1, 2007
    99
    7
    IJsselmuiden
    Netherlands Netherlands
    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.
     

    craigparris1

    Portal Pro
    May 20, 2008
    189
    15
    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
     

    Pascal

    Portal Pro
    February 1, 2007
    99
    7
    IJsselmuiden
    Netherlands Netherlands
    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
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    G Update von MediaPortal Installationsprobleme? 0
    ajs [News] MediaPortal 1 - 1.25 Released! News and Announcements 1
    horned_reaper Standby is prevented by MediaPortal client General Support 0
    U [solved] MediaPortal crashing on startup General Support 10
    g0rsq Info box randomly popping up when watching TV or other video MediaPortal 2 Newcomers Forum 1
    high [unanswered] Hallo möchte gerne Mediaportal. nutzen kann mich jemand anrufen? contactform feedback and requests 2
    ajs [News] MediaPortal 1.25 Pre-Release ready for testing! News and Announcements 0
    ajs [Rejected] Mediaportal Codename MediaPortal 1 41
    M 2nd (Touch-)Display Support on MediaPortal 2 such MPDisplay++? General 2
    N Steam release of MediaPortal MediaPortal 1 Talk 0
    torone Dritter versuch mit Mediaportal 2 Allgemeines Support- und Diskussionsforum 1
    M Fehlerhafter Link auf der aktuellen MediaPortal Seite Page- und Forumsfeedback 0
    H 1.24.0 MP 1.24 high CPU utilization when 'Keep MediaPortal always on top' option enabled Bugreports 4
    mickb [solved] Mediaportal Stops working General Support 5
    J [solved] Newbie to MediaPortal 2 - Cannot open/run TV programs Newcomers Forum 4
    atlantic How to use Spotify inside Mediaportal? Listen Music 18
    horned_reaper MediaPortal configuration error log message General Support 1
    Rob Hexenmeister Mediaportal Properties #plot etc... General Support 3
    ajs [News] MediaPortal 1 - 1.24 Released! News and Announcements 3
    S [solved] access the desktop without leaving mediaportal General Support 5
    J New computer with win10 and how will i set Mediaportal up ? Newcomers Forum 55
    T MediaPortal Extensions Manager Fehlermeldung bei Installation einer Erweiterung Installationsprobleme? 1
    geotwticher TV Guide EPG Grabber for Australia 2020 RIP freepg.tv General 4
    azzuro [News] MediaPortal 1.24 Pre-Release ready for testing! News and Announcements 0
    M.Hulot Warum Blu-ray-Menü nicht anwendbar bei MediaPortal? Allgemeines Supportforum 5
    Similar threads

























    Top Bottom