MPstandbyHandler (2 Viewers)

Hi,

I'm not sure if this nice tool is the right/better one for my Problem: Sometimes if do the PC to hibernate, MP crashes, sometimes not. Most of the time if it's doesn't crash, the TV Service works fine.

So I need a tool that (re-) starts after resume MP only if has crashed (mediportal.exe isn't runnig).

Can do this your tool?

Thanks!

Greetings
 
RoXoR

OK, i forgot to tell that UAC on Vista has to be disabled, if you want to stop/start TVS. -> A service restart in normal case needs admin rights.

I just tested again the standby with Vista and TVS / MP running... TVS and MP are correctly stopped on my maschine before entering standby mode.
Dont forget that the standby S3 is only reached if the power led of your maschine is flashing. Vista takes some time longer to reach this state but the screen is turned off immediatly when you press the standby button.


Der_Bub

Not at the moment, could be implemented. But this feature is also covered be MP itself. See MP-Config/General/Watchdog -> automatically restart MP.

Can you tell me your Hardware/Software configuration, plz?
 
is it possible to make the program detect when the tunner has the cards blocked by error and restart tvservice? sometimes i get no free card available and if i go out of mp and restart the service it works. would be nice if it could do it automatically.
 
is it possible to make the program detect when the tunner has the cards blocked by error and restart tvservice? sometimes i get no free card available and if i go out of mp and restart the service it works. would be nice if it could do it automatically.

Not for me at the moment. Sorry
 
Gixxer

Checkout my settings in earlier post, also disable reinitialiase tuners in powerscheduler, its totally unnecessary and may actually screw things up.

Have not had a failure yet, and no reboots.

Also have the TVService recover settings in control panel\admin\services set to restart TVService in case of failure after 1 minute, but that has never been activated to my knowledge.
 
Not at the moment, could be implemented. But this feature is also covered be MP itself. See MP-Config/General/Watchdog -> automatically restart MP.

Well, I think it's not quiete the thing I'm looking for: If push the "PowerOff" of my Remote (after stopping TV) the system should go to hibernate. If MP crashes I still want to hibernate the system (without MP) and do a restart after resume.

At the moment "Hibernate Trigger" does this, with a batch file.


Can you tell me your Hardware/Software configuration, plz?

I have my system configuration at my Profile, anything further / more details of what?
 
Hi josch, I've just tested v1.10
the watchdog doesn't appear anymore
but my htpc still sleeps promptly

here is the log:
04.09.2008 22:54:38 :: Info :: WM_POWERBROADCAST: 4
04.09.2008 22:54:38 :: Info :: Windows is hibernating
04.09.2008 22:54:38 :: Info :: OnSuspend
04.09.2008 22:54:38 :: Info :: Process Stop - Trying to STOP MediaPortal (10000ms) (id:2644)
04.09.2008 22:55:18 :: Error :: Process Stop - Unable to terminate MediaPortal (id:2644)
04.09.2008 22:55:18 :: Info :: Process Stop - Trying to KILL MediaPortal (10000ms) (id:2644)
04.09.2008 22:55:18 :: Info :: Process Stop - Successfully terminated MediaPortal (id:2644)
04.09.2008 22:55:18 :: Info :: OnSuspend - Done
04.09.2008 22:55:19 :: Info :: WM_POWERBROADCAST: 18
04.09.2008 22:55:19 :: Info :: Windows has resumed from standby or hibernate mode to handle a requested event
04.09.2008 22:55:19 :: Info :: OnResume
04.09.2008 22:55:19 :: Info :: Turn Display On - Trying to wake up the Display/TV
04.09.2008 22:55:24 :: Info :: OnResume - Done
04.09.2008 22:55:24 :: Info :: WM_POWERBROADCAST: 7
04.09.2008 22:55:24 :: Info :: Windows has resumed from hibernate mode
04.09.2008 22:55:24 :: Warning :: OnResume - OnResume called but not suspended


I only ticked off "stop MP" and set the waiting time to 10 sec - I don't use the TV-server

RoXoR ;)
 
Hi josch, I've just tested v1.10
the watchdog doesn't appear anymore
but my htpc still sleeps promptly

here is the log:
04.09.2008 22:54:38 :: Info :: WM_POWERBROADCAST: 4
04.09.2008 22:54:38 :: Info :: Windows is hibernating
04.09.2008 22:54:38 :: Info :: OnSuspend
04.09.2008 22:54:38 :: Info :: Process Stop - Trying to STOP MediaPortal (10000ms) (id:2644)
04.09.2008 22:55:18 :: Error :: Process Stop - Unable to terminate MediaPortal (id:2644)
04.09.2008 22:55:18 :: Info :: Process Stop - Trying to KILL MediaPortal (10000ms) (id:2644)
04.09.2008 22:55:18 :: Info :: Process Stop - Successfully terminated MediaPortal (id:2644)
04.09.2008 22:55:18 :: Info :: OnSuspend - Done
04.09.2008 22:55:19 :: Info :: WM_POWERBROADCAST: 18
04.09.2008 22:55:19 :: Info :: Windows has resumed from standby or hibernate mode to handle a requested event
04.09.2008 22:55:19 :: Info :: OnResume
04.09.2008 22:55:19 :: Info :: Turn Display On - Trying to wake up the Display/TV
04.09.2008 22:55:24 :: Info :: OnResume - Done
04.09.2008 22:55:24 :: Info :: WM_POWERBROADCAST: 7
04.09.2008 22:55:24 :: Info :: Windows has resumed from hibernate mode
04.09.2008 22:55:24 :: Warning :: OnResume - OnResume called but not suspended


I only ticked off "stop MP" and set the waiting time to 10 sec - I don't use the TV-server

RoXoR ;)

Yes, and before your maschine enters sleep mode it does this:

04.09.2008 22:54:38 :: Info :: OnSuspend
04.09.2008 22:54:38 :: Info :: Process Stop - Trying to STOP MediaPortal (10000ms) (id:2644)
04.09.2008 22:55:18 :: Error :: Process Stop - Unable to terminate MediaPortal (id:2644)
04.09.2008 22:55:18 :: Info :: Process Stop - Trying to KILL MediaPortal (10000ms) (id:2644)
04.09.2008 22:55:18 :: Info :: Process Stop - Successfully terminated MediaPortal (id:2644)
04.09.2008 22:55:18 :: Info :: OnSuspend - Done

So the stopping of MP is done before sleep - I think as it should be
 
General Explanation:

The Meaning of the timeout settings within MPstandbyHandler in the config section

"seconds to wait for TVService/Mediportal to be stopped"

is that the application will wait MAX the given time for MP/TVS to be stopped. i.e. if MP/TVS stops immediatly (maybe within the first second) before the given timeout is reached then everything is fine and the routine will return with a success message in the log. If after the given time MP/TVS can't be stopped then the routine will return with an error message and no success.

You will not realize the waiting time for the suspend sequence on your monitor/tv if you run vista on your maschine, because vista blanks/turns off the screen immediatly but the system is still working to prepare the standby. STANDBY is only reached, if the power led is flashing (on most pc cases, OrigenAE htpc cases will switch the power led color from blue(ON) to red(Standby).
 
Hello

I tried your tools, but it didn't made a rstart of MP after resume from hibernate:


05.09.2008 23:11:34 :: Info :: WM_POWERBROADCAST: 0
05.09.2008 23:11:34 :: Info :: Windows is requesting hibernate mode
05.09.2008 23:11:34 :: Info :: OnQuerySuspend
05.09.2008 23:11:34 :: Info :: WM_POWERBROADCAST: 4
05.09.2008 23:11:34 :: Info :: Windows is hibernating
05.09.2008 23:11:34 :: Info :: OnSuspend
05.09.2008 23:11:34 :: Info :: Process Stop - MediaPortal is not running
05.09.2008 23:11:34 :: Info :: OnSuspend - Done
06.09.2008 10:10:38 :: Info :: WM_POWERBROADCAST: 18
06.09.2008 10:10:38 :: Info :: Windows has resumed from standby or hibernate mode to handle a requested event
06.09.2008 10:10:38 :: Info :: OnResume
06.09.2008 10:10:38 :: Info :: Turn Display On - Trying to wake up the Display/TV
06.09.2008 10:10:38 :: Info :: OnResume - Done
06.09.2008 10:10:38 :: Info :: WM_POWERBROADCAST: 7
06.09.2008 10:10:38 :: Info :: Windows has resumed from hibernate mode
06.09.2008 10:10:38 :: Warning :: OnResume - OnResume called but not suspended
06.09.2008 10:42:24 :: Info :: WM_POWERBROADCAST: 0
06.09.2008 10:42:24 :: Info :: Windows is requesting hibernate mode
06.09.2008 10:42:24 :: Info :: OnQuerySuspend
06.09.2008 10:42:24 :: Info :: WM_POWERBROADCAST: 4
06.09.2008 10:42:24 :: Info :: Windows is hibernating
06.09.2008 10:42:24 :: Info :: OnSuspend
06.09.2008 10:42:24 :: Info :: Process Stop - MediaPortal is not running
06.09.2008 10:42:24 :: Info :: OnSuspend - Done
06.09.2008 10:45:19 :: Info :: WM_POWERBROADCAST: 7
06.09.2008 10:45:19 :: Info :: Windows has resumed from hibernate mode
06.09.2008 10:45:19 :: Info :: OnResume
06.09.2008 10:45:19 :: Info :: WM_POWERBROADCAST: 18
06.09.2008 10:45:19 :: Info :: Windows has resumed from standby or hibernate mode to handle a requested event
06.09.2008 10:45:19 :: Info :: OnResume - already running -> return without further action
06.09.2008 10:45:19 :: Info :: Turn Display On - Trying to wake up the Display/TV
06.09.2008 10:45:19 :: Info :: OnResume - Done

 

Attachments

  • stnby manager.JPG
    stnby manager.JPG
    52.3 KB

Users who are viewing this thread

Back
Top Bottom