TV server does not record when resuming from hibernate (1 Viewer)

Santy

Portal Pro
September 4, 2007
51
1
Home Country
United Kingdom United Kingdom
My computer is resuming from hibernate to begin a scheduled recording, but although it is waking up on time, the actual recording never starts. This only happens some of the time and is not a reproducible problem. Last night (22/08/12) it switched on at 20:52 but failed to begin recording. I restarted the TV server manually but this still did not work, and only when I reset the computer did it start.

This has been a long running issue for me, which I managed to resolve with the help of the forum - in this thread:
https://forum.team-mediaportal.com/threads/no-free-card-available-after-hibernate.101856/

However, I've now switched over to Windows 7 Pro, instead of XP and although I'm using a static IP address and have edited the hosts file it still doesn't work.

For info, I have set a delay of 35 seconds for the card to initialise as I know the Nova-T-500 has issues!

Any suggestions will be greatly appreciated
 

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,578
    8,228
    Home Country
    New Zealand New Zealand
    Hello Santy

    I thought we had sorted the issue in the other thread. Ah well - I guess not huh?
    The error that causes the failed recording is:
    2012-08-22 20:53:02.506169 [scheduler thread(10)]: dvb: RunGraph returns: 0x8007001F

    In non technical terms: TV Server failed to start receiving the stream from the tuner.
    Whenever I have seen this error in the past (and I have seen it reported maybe half a dozen times) I have always considered it to mean issues with the tuner driver handling standby/resume cycles. There are some tuners out there that just simply can't do it and maintain stability.

    There is a slim chance that it could be caused by issues with MediaPortal's TsWriter component, however that really is an outside chance - I'd have expected to see it reported more frequently if that were the case.

    My only suggestion to you is to create a devcon script that stops the tuner driver before sleep/suspend/hibernate and restarts it on resume/wake.
    Don't be too intimidated by the technical nature of the topic - it really isn't too bad.
    There are examples of the sorts of commands that you can use in the link above, and -->here<-- is an example of the sort of commands you would need to put in the script.
    It seems you use PowerScheduler so it should be possible to configure the commands with that. Here is a thread that will help:
    https://forum.team-mediaportal.com/threads/how-to-run-a-command-on-wakeup-from-hibernation.74859/

    mm
     

    Santy

    Portal Pro
    September 4, 2007
    51
    1
    Home Country
    United Kingdom United Kingdom
    Hello,

    Thank you for the reply... Well, with your help last time it did fix the problem - 100% of the time. It's only started again now I've changed to Windows 7 and it would appear to be a different cause this time :( I knew I shouldn't have upgraded!

    I'll have a look at the devcon script then and report back once I've a) managed to work out how to do it and b) had a chance to test it

    Thanks
    Santy
     

    Santy

    Portal Pro
    September 4, 2007
    51
    1
    Home Country
    United Kingdom United Kingdom
    It seems you use PowerScheduler so it should be possible to configure the commands with that. Here is a thread that will help:
    https://forum.team-mediaportal.com/threads/how-to-run-a-command-on-wakeup-from-hibernation.74859/

    Sorry about this - The link to DevCon doesn't work when you try to download it. From your quote above am I right in thinking I can create a simple .bat file, and within the PowerScheduler "Run command before standby / after wakeup" box I can link to this file and it will run it?

    If that is the case will I just need to create a batch file containing the path for the tvservice.exe file?
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,578
    8,228
    Home Country
    New Zealand New Zealand
    It seems you use PowerScheduler so it should be possible to configure the commands with that. Here is a thread that will help:
    https://forum.team-mediaportal.com/threads/how-to-run-a-command-on-wakeup-from-hibernation.74859/

    Sorry about this - The link to DevCon doesn't work when you try to download it.
    Hmm - doesn't work for me either. I guess MS need to update their link. As it turns out, I'm not sure that it would be that helpful for you anyway as you're using W7 64 bit. My turn to apologise. Officially speaking, the latest versions of devcon are distributed with Windows SDK updates (latest - approximately 0.5 GB download). It seems a bit of a waste of bandwidth to download that much just to get a 1 or 2 MB file. Try googling for devcon x64 and you may get lucky.

    From your quote above am I right in thinking I can create a simple .bat file, and within the PowerScheduler "Run command before standby / after wakeup" box I can link to this file and it will run it?
    That is my understanding, yes.

    If that is the case will I just need to create a batch file containing the path for the tvservice.exe file?
    Not quite. The tvservice.exe process will start itself. The batch file will include devcon commands (eg. devcon stop <device>, devcon start <device>) to stop or start the driver.

    mm
     

    Users who are viewing this thread

    Top Bottom