MPstandbyHandler (1 Viewer)

Is there any way of doing a check that the TV card is actually available? I have had an issue recently whereby sometime the machine will quite happily come out of standby and work fine but sometime I get it where I just get an error when trying to tune to a channel.

What would be really nice is a check to see whether the TV card is actually able to tune to a channel and if not reboot (given that the machine wakes up 5 mins prior to recording this should be plenty of time to perform a reboot if necessary.

This is not the same problem as the Nova-T 500 presenting itself as a USB device and taking a while to be recognised as the card is there and setup I just can not tune it.
 
Nova-T

Hey jameson,
not sure if I had the same problem or not, machine went in and out of standby/hibernate fine but tuner could not tune to a station.
Stopping & Starting the TVservice did the trick but MPStandbyhandler would not run the stop, start commands on resume.

I solved the by using wosb.exe from here; Downloads - WakeupOnStandBy.

This excellent exe works every time out of resume to run this batch file
net stop tvservice
taskkill /IM tvservice.exe /F
start C:\wakeup\wosb.exe /run /systray tm="" file="C:\wakeup\start.bat" /ptowu
c:\wakeup\sleep.exe 30
net start tvservice

The utility can also be configured to reboot after resume if required.
Obviously won't detect whether the tuner card is OK but at least MP records reliably, for me anyway!
 
Finding it a bit tricky to run an external command with v2.0.0.7. I need to run this command on resume to restart the WinTV IR remote app, as it doesn't work otherwise: ("C:\Program Files\WinTV\Ir.exe" /QUIET) but MPSH doesn't like it, with or without the quotes. If I stick it in a .bat file and call that with MPSH, that works fine when I test it with MPSH's Test Resume button and MPSH rather cleverly suppresses the cmd window, which keeps things nice and tidy.

However, if I go into standby and resume, nothing happens and the log shows:
26/02/2009 10:50:46 - INFO Job Load - Loaded RESUME job ExternalCommand
26/02/2009 10:50:46 - INFO Command Start - Starting (2s):
26/02/2009 10:50:46 - INFO Command Start - Cannot start process because a file name has not been provided.
26/02/2009 10:55:17 - INFO OnResume - Done
26/02/2009 10:55:19 - INFO System PowerEvent: ResumeAutomatic
26/02/2009 10:55:19 - INFO OnResume - Already resumed
26/02/2009 10:55:23 - INFO System Session Change: SessionUnlock

This is with a delay of 0 and a timeout of 2 but I tried it with a delay of 2 and timeout of 6 and it didn't make any difference. I also tried with the External Command just set to C:\Program Files\WinTV\Ir.exe but that didn't work either.
 
Finding it a bit tricky to run an external command with v2.0.0.7. I need to run this command on resume to restart the WinTV IR remote app, as it doesn't work otherwise: ("C:\Program Files\WinTV\Ir.exe" /QUIET) but MPSH doesn't like it, with or without the quotes. If I stick it in a .bat file and call that with MPSH, that works fine when I test it with MPSH's Test Resume button and MPSH rather cleverly suppresses the cmd window, which keeps things nice and tidy.

However, if I go into standby and resume, nothing happens and the log shows:
26/02/2009 10:50:46 - INFO Job Load - Loaded RESUME job ExternalCommand
26/02/2009 10:50:46 - INFO Command Start - Starting (2s):
26/02/2009 10:50:46 - INFO Command Start - Cannot start process because a file name has not been provided.
26/02/2009 10:55:17 - INFO OnResume - Done
26/02/2009 10:55:19 - INFO System PowerEvent: ResumeAutomatic
26/02/2009 10:55:19 - INFO OnResume - Already resumed
26/02/2009 10:55:23 - INFO System Session Change: SessionUnlock

This is with a delay of 0 and a timeout of 2 but I tried it with a delay of 2 and timeout of 6 and it didn't make any difference. I also tried with the External Command just set to C:\Program Files\WinTV\Ir.exe but that didn't work either.

Seems to be similar to my experience, see post #299. I've reverted to StartOnWake until this is fixed.

/jayrock
 
If I stick it in a .bat file and call that with MPSH, that works fine when I test it with MPSH's Test Resume button and MPSH rather cleverly suppresses the cmd window, which keeps things nice and tidy.

However, if I go into standby and resume, nothing happens and the log shows:

I can confirm that, same here!
 
I will check this...

Edit:
ok, i think i know what the problem with external command can be.
I tried it again on my system with a simple windows .bat file which contains only "dir > d:\test.txt".
This works with the test button and also on resume.

I think that you guys want to run applications which try to interact in some way with the Windows GUI -> and this is to my mind the problem, because a windows service has no permission to interact with the gui or call any other app which interacts with the gui. That is the reason why the stop/start job for MP are done by the MPSH User Exe which resides in the system tray and is a user depended application. The MPSH service sends the MP start/stop job to the MPSH User Exe.

That is why your commands work when pressing the test button within the MPSH config.
And this is also the reason why your commands or apps work with the other standby/wakeup tools.

This is not really a bug. I will think of a solution how to get those apps working.
 
I will check this...

I think that you guys want to run applications which try to interact in some way with the Windows GUI -> and this is to my mind the problem, because a windows service has no permission to interact with the gui or call any other app which interacts with the gui.

In the service properties there is the option "Allow Service to Interact With Desktop", perhaps this helps?
 
Hi,

is use MPStandbyHandler to stop TVService before Standby and restart it at Resume

Settings
Suspend: TVServiceStop, Killemmidiately
Resume: TVServiceStart, Delay 3s.

It solves my standby problem but now i get the problem that PowerScheduler is not working any more.
What can i do?
 

Users who are viewing this thread

Back
Top Bottom