I need to stop and restart TVservice on resume for my Nova-T 500 PCI tuner card to work and unfortunately PS++ can't do this, so I have to use something else. In the past I was using MPStandbyHandler but I can't seem to get it to work now, so I hope someone can help me fix it or find another way to achieve this.
The log shows
The resume jobs are in Program Data\MPStandbyHandler\Jobs and are
RESUME_000_TVServiceStop.xml
and
RESUME_001_TVServiceStart.xml
The log shows
I set a simple NetworkCheck job on Suspend to give it something to do but as you can see, it's not doing that when I send the PC to sleep, nor is it doing the TVService stop and start jobs on Resume. It says "OnResume called but not suspended" which is why I guess it's not doing the resume jobs but I've unticked the option "Check Suspend State during Resume" and the fact it shows System PowerEvent: ResumeAutomatic and System PowerEvent: ResumeSuspend makes it hard to see why it think the PC was not suspended.27/08/2013 14:15:56 - INFOSystem PowerEvent: Suspend
27/08/2013 14:15:56 - INFOOnSuspend
27/08/2013 14:15:56 - DEBUGJobTools Load - Loading SUSPEND jobs from C:\ProgramData\MPstandbyHandler\Jobs
27/08/2013 14:15:56 - DEBUGJobTools Load - Loaded 0 SUSPEND jobs
27/08/2013 14:15:56 - DEBUGJobTools Load - Loading RESUME jobs from C:\ProgramData\MPstandbyHandler\Jobs
27/08/2013 14:15:56 - DEBUGJob Load - Job TVServiceStop has 6 properties
27/08/2013 14:15:56 - INFOJob Load - Loaded RESUME job TVServiceStop
27/08/2013 14:15:56 - DEBUGJob Load - Job TVServiceStart has 5 properties
27/08/2013 14:15:56 - INFOJob Load - Loaded RESUME job TVServiceStart
27/08/2013 14:15:56 - DEBUGJobTools Load - Loaded 2 RESUME jobs
27/08/2013 14:15:56 - INFOFlags Load - Loading flags from C:\ProgramData\MPstandbyHandler\Flags-Service.xml
27/08/2013 14:15:56 - WARNINGFlags Load - Error loading flags Root element is missing.
27/08/2013 14:16:11 - INFOSystem PowerEvent: ResumeAutomatic
27/08/2013 14:16:11 - WARNINGOnResume - OnResume called but not suspended
27/08/2013 14:16:11 - INFOSystem PowerEvent: ResumeSuspend
27/08/2013 14:16:11 - WARNINGOnResume - OnResume called but not suspended
The resume jobs are in Program Data\MPStandbyHandler\Jobs and are
RESUME_000_TVServiceStop.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<!--Jobfile RESUME_000_TVServiceStop.xml-->
<JobProperties>
<Order TypeCode="9" ReadOnly="False">0</Order>
<Usage TypeCode="9" ReadOnly="False">100</Usage>
<RebootAllowed TypeCode="3" ReadOnly="False">False</RebootAllowed>
<Delay TypeCode="9" ReadOnly="False">0</Delay>
<Timeout TypeCode="9" ReadOnly="False">20</Timeout>
<KillImmediately TypeCode="3" ReadOnly="False">True</KillImmediately>
</JobProperties>
and
RESUME_001_TVServiceStart.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<!--Jobfile RESUME_001_TVServiceStart.xml-->
<JobProperties>
<Order TypeCode="9" ReadOnly="False">1</Order>
<Usage TypeCode="9" ReadOnly="False">100</Usage>
<RebootAllowed TypeCode="3" ReadOnly="False">False</RebootAllowed>
<Delay TypeCode="9" ReadOnly="False">5</Delay>
<Timeout TypeCode="9" ReadOnly="False">20</Timeout>
</JobProperties>