MPstandbyHandler (1 Viewer)

bounguine

Portal Pro
November 7, 2005
233
15
51
St.Petersburg
Home Country
Russian Federation Russian Federation
Now it seems to work on shutting down.

But now another problem arose.
After several successful attempts to suspend (kill MP and TVServer) and resume (restart DVB driver, start TVServer and MP) the app fails to kill TVServer and start MP:

26.11.2008 18:27:23 - INFO MPstandbyHandlerService 2.0.0.2, Utils 2.0.0.4
26.11.2008 18:27:29 - INFO System Start
26.11.2008 18:29:55 - INFO System Session Change: ConsoleConnect
26.11.2008 18:38:09 - INFO System PowerEvent: QuerySuspend
26.11.2008 18:38:09 - INFO OnQuerySuspend
26.11.2008 18:38:09 - INFO OnQuerySuspend
26.11.2008 18:38:09 - INFO System PowerEvent: Suspend
26.11.2008 18:38:09 - INFO OnSuspend
26.11.2008 18:38:09 - INFO JobTools Load - Loading SUSPEND jobs from C:\Documents and Settings\All Users\Application Data\MPstandbyHandler\Jobs
26.11.2008 18:38:09 - INFO Job Load - Loaded MediaportalStop job with 6 properties
26.11.2008 18:38:09 - INFO Job Load - Loaded TVServiceStop job with 6 properties
26.11.2008 18:38:09 - INFO JobTools Load - Loaded 2 SUSPEND jobs
26.11.2008 18:38:09 - INFO JobTools Load - Loading RESUME jobs from C:\Documents and Settings\All Users\Application Data\MPstandbyHandler\Jobs
26.11.2008 18:38:09 - INFO Job Load - Loaded HardwareDeviceRestart job with 6 properties
26.11.2008 18:38:09 - INFO Job Load - Loaded TVServiceStart job with 5 properties
26.11.2008 18:38:09 - INFO Job Load - Loaded MediaportalStart job with 7 properties
26.11.2008 18:38:09 - INFO JobTools Load - Loaded 3 RESUME jobs
26.11.2008 18:38:09 - INFO Flags Load - Loading flags from C:\Documents and Settings\All Users\Application Data\MPstandbyHandler\Flags-Service.xml
26.11.2008 18:38:09 - INFO Flags Save - Saving flags to C:\Documents and Settings\All Users\Application Data\MPstandbyHandler\Flags-Service.xml
26.11.2008 18:38:09 - INFO TVServiceStart - Setting TVService run flag to True
26.11.2008 18:38:09 - INFO MediaportalStart - No need to set run flag, Mediaportal should start always
26.11.2008 18:38:10 - INFO OnSuspend - Unable to run remote job (MPstandbyHandlerUser not running / not connected): MediaportalStop
26.11.2008 18:38:10 - INFO Process Stop - Trying to KILL TvService (20s) (id:3056)
26.11.2008 18:39:01 - WARNING Process Stop - Unable to terminate TvService (id:3056)
26.11.2008 18:39:03 - INFO OnSuspend - Done
26.11.2008 18:39:14 - INFO System PowerEvent: ResumeSuspend
26.11.2008 18:39:14 - INFO OnResume
26.11.2008 18:39:14 - INFO Settings Load - Loading settings from C:\Documents and Settings\All Users\Application Data\MPstandbyHandler\MPstandbyHandlerUtils.xml
26.11.2008 18:39:15 - INFO OnResume - Unable to show splashscreen, MPstandbyHandlerUser not running
26.11.2008 18:39:15 - INFO JobTools Load - Loading RESUME jobs from C:\Documents and Settings\All Users\Application Data\MPstandbyHandler\Jobs
26.11.2008 18:39:15 - INFO Job Load - Loaded HardwareDeviceRestart job with 6 properties
26.11.2008 18:39:15 - INFO Job Load - Loaded TVServiceStart job with 5 properties
26.11.2008 18:39:15 - INFO Job Load - Loaded MediaportalStart job with 7 properties
26.11.2008 18:39:15 - INFO JobTools Load - Loaded 3 RESUME jobs
26.11.2008 18:39:15 - INFO HardwareDeviceRestart - Trying to restart: TechniSat DVB-PC TV Star PCI
26.11.2008 18:39:15 - INFO System PowerEvent: ResumeAutomatic
26.11.2008 18:39:15 - INFO OnResume - Already resuming
26.11.2008 18:39:21 - INFO HardwareDeviceRestart - Device successfully disabled: TechniSat DVB-PC TV Star PCI
26.11.2008 18:39:21 - INFO HardwareDeviceRestart - Waiting 3s before trying to enable: TechniSat DVB-PC TV Star PCI
26.11.2008 18:39:26 - INFO HardwareDeviceRestart - Device successfully enabled again: TechniSat DVB-PC TV Star PCI
26.11.2008 18:39:26 - INFO TVServiceStart - Delaying for 10s
26.11.2008 18:39:36 - INFO Service Start - Trying to start (20s): TVService
26.11.2008 18:39:56 - INFO Service Start - Successfully started: TVService
26.11.2008 18:39:56 - INFO OnResume - Unable to run remote job (MPstandbyHandlerUser not running / not connected): MediaportalStart
26.11.2008 18:39:56 - INFO OnResume - Done
 

josch.hh

MP Donator
  • Premium Supporter
  • March 29, 2008
    476
    77
    Hamburg
    Home Country
    Germany Germany
    Can you kill TVS with taskmanager in this case?
    I would say no. I this case Mpsh i also unable to kill it.
     

    bounguine

    Portal Pro
    November 7, 2005
    233
    15
    51
    St.Petersburg
    Home Country
    Russian Federation Russian Federation
    Can you kill TVS with taskmanager in this case?
    I would say no. I this case Mpsh i also unable to kill it.

    Hmm, I can.
    I opened msconfig and found in autostart section two cases of Mpsh.
    One in the folder where I have all *.exe
    The second (the upper folder) where I've never kept files.
    Is that right?
     

    josch.hh

    MP Donator
  • Premium Supporter
  • March 29, 2008
    476
    77
    Hamburg
    Home Country
    Germany Germany
    Can you kill TVS with taskmanager in this case?
    I would say no. I this case Mpsh i also unable to kill it.

    Hmm, I can.
    I opened msconfig and found in autostart section two cases of Mpsh.
    One in the folder where I have all *.exe
    The second (the upper folder) where I've never kept files.
    Is that right?

    I mean, can you kill it by hand if Mpsh says in its log that MP/TVS can't be killed?
    Of course, every app should be able to be killed with the taskmanager ... normaly. But sometimes this wont work. I had that problem many times that MP or TVS can be killed by hand via taskmanager. The only chance is reboot. That is why i added a property to the MP/TVS stop jobs that the system can be rebooted if Mpsh founds out that the processes can't be killed.

    There should be only one autostart entry, delete the wrong one.
     

    carver

    MP Donator
  • Premium Supporter
  • April 7, 2008
    55
    6
    stuttgart
    everytime i get this damn jit-debugger note when pressing ok in the gui.
    in in my machine.config is no line with jit debugger where i can set "true" ....

    using framework 2.0 / standbyhandler 2.0 ( occures in 1.0 too )

    hope someone can help me
     

    josch.hh

    MP Donator
  • Premium Supporter
  • March 29, 2008
    476
    77
    Hamburg
    Home Country
    Germany Germany
    It should work with RC4


    By the way, i think a should remove the "Startup" and "Shutdown" features. It makes no sence to do this things in Mpsh.
    One can also use its own scripts from Autostart. Until now i still have a problem to code the "Startup" right because Windows does not send a "Logon" event which i could catch. It also makes no sence to lanch the startup jobs on system start, because the users logon is not finished or even has not begun. Means i can't start MP or any other user related app or script at this point during the system comes up.

    Any comments?
     

    bounguine

    Portal Pro
    November 7, 2005
    233
    15
    51
    St.Petersburg
    Home Country
    Russian Federation Russian Federation
    It should work with RC4


    By the way, i think a should remove the "Startup" and "Shutdown" features. It makes no sence to do this things in Mpsh.
    One can also use its own scripts from Autostart. Until now i still have a problem to code the "Startup" right because Windows does not send a "Logon" event which i could catch. It also makes no sence to lanch the startup jobs on system start, because the users logon is not finished or even has not begun. Means i can't start MP or any other user related app or script at this point during the system comes up.

    Any comments?


    I have one.
    I suffer from a problem with tuning on the first channel after resuming/starting up.
    It almost always doesn't work (tuner is not locked).
    So I have to switch to any other channel and come back.
    I can't do it when a program is recorded by a scheduler.

    The only way to solve the problem is to check an option in TVServer console to make a graph automatically, which needs some more time.
    That's why I should put a delay in MP console, because without it MP starts before the whole procedure finnishes in TVServer, although it "waits for TVServer to start".
    I did that, but the maximum delay of 100 secs is not enough and I had MP with a blank "On now" window.
    If I close MP and restart, problem is solved.

    Your app makes it possible to increase the time
    So if you wish to remove these sections, it's OK.
    I'll come back to nnCron and put a delay more than 100 secs.

    Anyway, as far as I understood, when starting up Mpsh should fetch the time of TVServer starting "really".
    Now MP starts at the same time, when TVService.exe appears in Task Manager.
    That's not right, because TVServer has't started yet (at least in my case).

    I think, there're some other things, that point out that TVServer has really started.
    I'll try to find it out.

    Of course, a user can merely put a delay in any other application (in my case more that 100 secs), which is not quite correct.
     

    mamachan

    MP Donator
  • Premium Supporter
  • September 25, 2006
    724
    48
    Home Country
    Italy Italy
    Questions.

    I don't use TV Server.
    Which version of MPstandbyHandler i must to use?
    "MPstandbyHandler 1" or "MPstandbyHandler 2"?

    For me is important this:
    on resume from standby (to record TV program, for example) the plugin must close and restart Mediaportal (like PVR-Scheduler do).

    Thanks for your help ?

    massimo
     

    grubi

    Portal Pro
    June 16, 2007
    1,216
    80
    127.0.0.1
    Home Country
    Germany Germany
    I don't use TV Server.
    Which version of MPstandbyHandler i must to use?
    "MPstandbyHandler 1" or "MPstandbyHandler 2"?

    For me is important this:
    on resume from standby (to record TV program, for example) the plugin must close and restart Mediaportal (like PVR-Scheduler do).

    Thanks for your help ?

    massimo

    You can use both. The difference is the architecture of the app. Version 1 is simply a userspace executable whereas version 2 is a modular app consiting of a service, a userspace executable and a config program.

    I would go with version 2 as I'm not sure version 1 is undergone any develpment in the future.

    HTH.

    grubi.
     

    Users who are viewing this thread

    Top Bottom