MPstandbyHandler (3 Viewers)

Excellent work...
Can I suggest a new feature?
It's possible to add the ability to shell&wait an external command before start tvserver?
This is very useful for people that owns a tv card that need to be restarted (e.g skystar) with the devcon utility... obviousely to allows the card to restart the tv service must be stopped...

Thank you very much!!:D:D:D
 
Hi Folks,

hope this one will work better then the last, sorry for that.
Feedback plz. :)
 
josch.hh

Downloading now, don't expect feedback for at least 24 hours though, as kids still on there school break :mad::D
Just a pointer because i'm using dualboot, the 1.0.0.5 version works a treat with XP but not Vista32, also love the new features :)

edit: just to let you know 1.0.0.6, now runs with Vista :)
 
I just resumed the computer after the night and it worked nicely with the exception that MP is not establishing contact with the TV-service. After that I simply restartarted every thing the same way and it worked.

I havn't checked the network part in details so a few questions:
In my setup it seems the network interface actually needs to be up before the TVS. But the delaying of the tvservice is before the check for network? Accoding to the loglines the start of TV-service is after the check for network being up. So:
How do you check that the interface is up? A ping to Google

adams79: I just tried pointing the option Mediaportal Executable to a .bat file and that worked. It generated these loglines but worked:
2008-09-01 06:13:40 :: Info :: Process Start - Starting (20000ms): E:\My Documents\MP saker\start_tv_MPStandbyhandler.bat
2008-09-01 06:13:40 :: Info :: Process Start - WaitForInputIdle failed. This could be because the process does not have a graphical interface.
 
In my setup it seems the network interface actually needs to be up before the TVS. But the delaying of the tvservice is before the check for network? Accoding to the loglines the start of TV-service is after the check for network being up. So:
How do you check that the interface is up?

Your are right, the delay for TVS is before the network connection check. I did this because if a TVS delay is set the network interface has time to start (wlan + dhcp) and could be ready until the connection check is running. I doesn't matter if the delay is set to zero, because the network check has it's own delay (that might not be needed if the connection is ready within the TVS delay). The network check delay is only a max value, i.e. it check ever 0,5s for a connection and continues if the connection is up. The TVS start is of course AFTER the connection check.
I check the network only be the interface state - means if the interface cable or wlan is up and dhcp (if any) is ready. I dont't ping anything.
 
J-B-N: I tried this, but because the TvService is already started, i can't restart the device in the bat file...
josch: Can you add this option to start a process (and wait the end) before the start of tvservice?
thank you
 
I can, but i would prefer a c# integrated solution. Let me find out...
 
So here it is, plz try it.
It now is able to start a custom command like .bat .cmd .vbs etc. at beginning of the resume process.
I had a much better and integrated solution to reinitialize a device driver but this does not work well with Vista because of Vista's UAC and some other things.
It worked nice with XP, but what can i do ... so we can use some shell scripts.

By the way, doesn't devcon under vista ask for admin rights, .. i think it should?
 

Users who are viewing this thread

Back
Top Bottom