MPstandbyHandler (1 Viewer)

adams79

MP Donator
  • Premium Supporter
  • June 23, 2008
    54
    3
    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
     

    josch.hh

    MP Donator
  • Premium Supporter
  • March 29, 2008
    476
    77
    Hamburg
    Home Country
    Germany Germany
    Hi Folks,

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

    Paranoid Delusion

    Moderation Manager
  • Premium Supporter
  • June 13, 2005
    13,062
    2,978
    Cheshire
    Home Country
    United Kingdom United Kingdom
    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 :)
     

    J-B-N

    Portal Pro
    December 29, 2005
    196
    20
    Sweden
    Home Country
    Sweden Sweden
    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.
     

    josch.hh

    MP Donator
  • Premium Supporter
  • March 29, 2008
    476
    77
    Hamburg
    Home Country
    Germany Germany
    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.
     

    adams79

    MP Donator
  • Premium Supporter
  • June 23, 2008
    54
    3
    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
     

    josch.hh

    MP Donator
  • Premium Supporter
  • March 29, 2008
    476
    77
    Hamburg
    Home Country
    Germany Germany
    I can, but i would prefer a c# integrated solution. Let me find out...
     

    josch.hh

    MP Donator
  • Premium Supporter
  • March 29, 2008
    476
    77
    Hamburg
    Home Country
    Germany Germany
    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

    Top Bottom