PowerScheduler++ 1.4.0.x - Stable versions for MediaPortal 1.4 (1 Viewer)

doveman

Portal Pro
February 12, 2008
2,326
178
Home Country
United Kingdom United Kingdom
I'm having trouble getting the right settings for my Nova-T 500.

After waking from standby, the tuner isn't available until after I stop and restart TVService. I've set the Delay for TV Card Detection to 20s and tried the PS++ "Reinitalise TV controller on wakeup" option but that didn't work, so now I'm trying "Run Command on System Power State change"instead, with it set to run the following batch file. This isn't doing anything though, neither shutting down MP before standby or restarting TVService after wake.

Code:
if "%1" == "suspend" goto OnSuspend
if "%1" == "wakeup" goto OnWakeUp
goto Done
 
:OnSuspend
taskkill /IM “MediaPortal.exe” /F
goto Done
 
:OnWakeUp
taskkill /IM “TVService.exe” /F
net start TVService
 
goto Done
 
:Done

I got this card working previously, presumably with this batch but it's been a while since I used it so I'm not sure exactly what I had to do.

Thinking about it, I believe I had to use MPStandby Handler before and never got the PS++ "Run command on" option to work then either.
 
Last edited:

doveman

Portal Pro
February 12, 2008
2,326
178
Home Country
United Kingdom United Kingdom
Hmm, still having trouble with it not going to standby. The only thing I see mentioned in the config is still this srvnet but as I said, that shouldn't be an issue as I've set an override on it. If you could check the logs to see if there's anything obvious, I'd be grateful.

I've found a program called "Windows 7 Suspend Resume Control v2" that looks like it might be a bit easier to use than MPStandby Handler and will hopefully deal with the problem with the tuner not working after standby, by restarting the TVService for me.

EDIT: Well that program doesn't seem to work that well. It stops TVService on resume but then doesn't restart it, saying that it's already running (it's not, as it's been stopped). I tried using the Process Stop/Start and then the Service Restart instead (it doesn't seem possible to use separate Stop/Start for a service) but with the Service Restart it just hung on stopping, so it needs to be killed and then restarted.

I'm going to try LM Remote Keymap next and see if that works.

EDIT: Hmm, that didn't seem to work either and the program's rather fussy for the simple task I need to do. I'll probably end up back with good old MP Standby Handler at this rate ;)

It did log these events in it's events.xml but although it looks like I'd set it up wrong and it would have run my batch twice, it didn't even run it once, so perhaps it doesn't support batch files, only exes.


<?xml version="1.0"?>
<events>
<event type="1" name="LM RKM Starting" data="" />
<event type="2" name="LM RKM Stopping" data="" />
<event type="3" name="PC Waking Up" data="">
<action type="5" command="C:\Tools\Resume.bat||false|Normal|false|true|false" position="1" />
</event>
<event type="10" name="PC Resuming Auto." data="">
<action type="5" command="C:\Tools\Resume.bat||false|Normal|false|true|false" position="1" />
</event>
<event type="4" name="PC Standing By" data="" />
<event type="11" name="PC Shutting Down" data="" />
<event type="5" name="Session Connect" data="" />
<event type="6" name="Session Disconnect" data="" />
<event type="9" name="Session Log Off" data="" />
<event type="12" name="PC Resume Sleeping" data="" />
</events>


The contents of resume.bat are just


taskkill /IM “TVService.exe” /F
net start TVService

EDIT: MP Standby Handler came through for me and I had it working in no time :)

I also found I can set the "Delay before TVServer detects card" back to 0s, as it seems to work fine both at first boot and on resume without needing any delay now (I'd increased it to 15-20-25s to try and fix the resume problem but only a restart of the service can fix that it seems).
 
Last edited:

michael_t

Portal Pro
November 30, 2008
1,258
813
Home Country
Germany Germany
HI :)

I've just updated from 1.2 to 1.4 and reinstalled Powerscheduler++

Is there a way to make the TVServer stay awake as long as a client machine is also awake? I'm sure I had this configured in 1.2, but cant remember how.
I have my music on a different server to the TVServer, and when its playing I end up getting the annoying 'Connection to TV Server lost'. So id like to just keep the TV Server awake as long as the client is on.

Any ideas?

Thanks!
You should have to configure nothing, because the TV server stays alive as long as any remote client is alive - but only if the PS++ client plugin is running on this client;)

Michael
 

revs

MP Donator
  • Premium Supporter
  • February 1, 2007
    1,274
    72
    The Sauce of Worcester
    Home Country
    Wales Wales
    HI :)

    I've just updated from 1.2 to 1.4 and reinstalled Powerscheduler++

    Is there a way to make the TVServer stay awake as long as a client machine is also awake? I'm sure I had this configured in 1.2, but cant remember how.
    I have my music on a different server to the TVServer, and when its playing I end up getting the annoying 'Connection to TV Server lost'. So id like to just keep the TV Server awake as long as the client is on.

    Any ideas?

    Thanks!
    You should have to configure nothing, because the TV server stays alive as long as any remote client is alive - but only if the PS++ client plugin is running on this client;)

    Michael



    I thought so... but its not working. Maybe ill uninstall both server and client and reinstall.
     

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    I'm having trouble getting the right settings for my Nova-T 500.



    After waking from standby, the tuner isn't available until after I stop and restart TVService. I've set the Delay for TV Card Detection to 20s and tried the PS++ "Reinitalise TV controller on wakeup" option but that didn't work, so now I'm trying "Run Command on System Power State change"instead, with it set to run the following batch file. This isn't doing anything though, neither shutting down MP before standby or restarting TVService after wake.

    ...
    I got this card working previously, presumably with this batch but it's been a while since I used it so I'm not sure exactly what I had to do.
    You cannot kill the tv service and restart it from a simple batch file that has been started by the tv service.

    Michael
     

    doveman

    Portal Pro
    February 12, 2008
    2,326
    178
    Home Country
    United Kingdom United Kingdom
    You cannot kill the tv service and restart it from a simple batch file that has been started by the tv service.

    Michael

    Yeah, I think I recall you explaining that to me before now ;)

    I've still had a couple of hiccups with it not working properly after resume even with MP Standby Handler, so I'm going to increase the "Delay before TVServer detects cards" again (stating at 10s) until it's completely reliable.
     

    revs

    MP Donator
  • Premium Supporter
  • February 1, 2007
    1,274
    72
    The Sauce of Worcester
    Home Country
    Wales Wales
    HI :)

    I've just updated from 1.2 to 1.4 and reinstalled Powerscheduler++

    Is there a way to make the TVServer stay awake as long as a client machine is also awake? I'm sure I had this configured in 1.2, but cant remember how.
    I have my music on a different server to the TVServer, and when its playing I end up getting the annoying 'Connection to TV Server lost'. So id like to just keep the TV Server awake as long as the client is on.

    Any ideas?

    Thanks!
    You should have to configure nothing, because the TV server stays alive as long as any remote client is alive - but only if the PS++ client plugin is running on this client;)

    Michael



    I thought so... but its not working. Maybe ill uninstall both server and client and reinstall.



    Reinstalled - didnt work :(
     

    doveman

    Portal Pro
    February 12, 2008
    2,326
    178
    Home Country
    United Kingdom United Kingdom
    Damn, it's done it again! It's changed my Power Options for the Balanced profile by itself to Display off - 20mins, Standby - Never, Request password on wake - Enabled.

    I had this problem ages ago but can't recall what the fix was. Is anyone able to help?
     

    astrapowerrr

    Portal Pro
    May 21, 2008
    180
    13
    47
    ijsselstein
    Home Country
    Netherlands Netherlands
    @revs. Same here. Powerscheduler can't install same version on tv server. At least not on a dedicated tv server.
    Since 1.4 always starting and sleeping server manually. Pff why change a program when it's working fine. Nice for the wife and kids. Waiting desperate for 1.5 with the hope that this is fixed.
     

    pünktchen

    Portal Pro
    October 26, 2010
    537
    201
    Home Country
    Germany Germany
    Damn, it's done it again! It's changed my Power Options for the Balanced profile by itself to Display off - 20mins, Standby - Never, Request password on wake - Enabled.

    I had this problem ages ago but can't recall what the fix was. Is anyone able to help?

    Do you have used "HD Tune" accidently?
     

    Users who are viewing this thread

    Top Bottom