[0.2] Fails to restart TV tuner after returning from suspend (1 Viewer)

mrmojo666

MP Donator
  • Premium Supporter
  • January 24, 2006
    603
    182
    Turin
    Home Country
    Italy Italy
    To mrmojo666:
    Do you have any logs after applying the SVN that contains the patch? Looking at the last log in the thread you linked to it doesnt seem that way.

    if you need i can do it, but the error mp displays is the same.
    please wait until i go at home this night , i hope......or tomorrow :)
     

    ziphnor

    Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    mrmojo666:
    The logs contains alot of information beside the error message which can be helpful.

    Just noticed in your error description that you say its recording correctly after resume(so the tuner is working), but that your remote isnt working. The patch doesnt do anything related to the remote, it only aims to fix the tuner failing after resuming. The remote problem is a completely seperate issue.

    Otherwise, if you ARE having problems with the TUNER after wake-up, please check the following:

    1. Did you enable the 'fix' in the PowerScheduler config?
    2. Can you watch unscrambled Live TV after resuming?
    3. Can you watch scrambled Live TV after resuming?
    4. Is the problem fixed if you restart MP(WITHOUT rebooting)?
     

    mrmojo666

    MP Donator
  • Premium Supporter
  • January 24, 2006
    603
    182
    Turin
    Home Country
    Italy Italy
    I found this code on other 3d...
    can be usefull ?

    https://forum.team-mediaportal.com/showthread.php?p=76985&highlight=technotrend#post76985



    Quote:



    Originally Posted by mrmojo666

    View Post



    I have a tt s-1500 but support is no full, my card don't works after resume, for me is impossibile scheduling recording......... ((



    I'm not a MP user but have been looking at the source a bit lately. I believe some additional code needs to be added to ConditionalAccess/TechnoTrend.cs for CI/CAM support to work properly after standby/resume, something along the following lines (pseudo code):

    private void SystemEvents_PowerModeChanged(object sender, PowerModeChangedEventArgs e)
    {
    switch (e.Mode)
    {

    case PowerModes.Suspend:
    bdaapiCloseCI(_handle);
    bdaapiClose(_handle);
    return;

    case PowerModes.Resume:
    _handle = bdaapiOpenHWIdx(xxx,xxx);
    bdaapiOpenCISlim(_handle, xxx;
    return;

    }
    }

    Essentially closing CI before suspending and reinitialising on restart. Don't know who looks after this part of the engine but you might want to give them a nudge.
     

    mrmojo666

    MP Donator
  • Premium Supporter
  • January 24, 2006
    603
    182
    Turin
    Home Country
    Italy Italy
    mrmojo666:
    Otherwise, if you ARE having problems with the TUNER after wake-up, please check the following:

    1. Did you enable the 'fix' in the PowerScheduler config?
    2. Can you watch unscrambled Live TV after resuming?
    3. Can you watch scrambled Live TV after resuming?
    4. Is the problem fixed if you restart MP(WITHOUT rebooting)?

    1. Yes.
    2. no, with this patch, after resume when start tv got a black screen.
    3. no, with this patch, after resume when start tv got a black screen.
    4. Yes

    here two logfiles, first with egp grabber on second with epf off to cleaning logs :)
    same test procedure

    reboot pc
    Mp start
    Start tv
    stop tv--> go to home and wait hibernation
    resume by MCE remote button
    mp goes up
    start tv ---> error
     

    ziphnor

    Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    Interesting, thats a slightly different problem than what i used to use suffer from. I used to have the problem that only unscrambled TV worked afterwards, probably because the CAM didnt wake-up properly. But you cant even watch unscrambled TV afterwards. I must admit that this was really an attempt at a 'black-box' fix, i guess somewhere MP must be doing more initialization of tuners than in Recorder.start().
     

    mrmojo666

    MP Donator
  • Premium Supporter
  • January 24, 2006
    603
    182
    Turin
    Home Country
    Italy Italy
    what i don't understand is why MP developers don't consider dvb-s resume issues, not open a bug and don't try to fix or don't help us (someone try to help me but he can't fix issues)......i think we can provide a good feedback.
     

    jgowron

    Portal Member
    September 14, 2006
    19
    0
    Hi everyone,

    I am having a similar problem here, but I'm not sure if it's exactly the same problem.

    If I restart my PC from hibernate, I can't use MyTV anymore. I only get an error message saying "Live TV cannot be started; unable to connect mpg2 pin"

    If I exit MP and restart it, everything is fine again. I tried one of the latest svn-builds, but choosing "re-init tuners on startup" in powerscheduler didn't solve the problem.

    Here's a copy of my error.log:

    15.09.2006 17:03:46 281 [ERROR] Exception :Error in the application.
    -2005530520 (D3DERR_DEVICELOST)
    at Microsoft.DirectX.Direct3D.Device.PresentInternal(tagRECT* sourceRectangle, tagRECT* destRectangle, IntPtr overrideWindow)
    at Microsoft.DirectX.Direct3D.Device.PresentInternal(tagRECT* sourceRectangle, tagRECT* destRectangle, Control overrideWindow)
    at Microsoft.DirectX.Direct3D.Device.Present()
    at MediaPortalApp.Render(Single timePassed)
    15.09.2006 17:03:46 281 [ERROR] Exception :Error in the application.
    15.09.2006 17:03:46 281 [ERROR] site :Void PresentInternal(Microsoft.DirectX.PrivateImplementationDetails.tagRECT*, Microsoft.DirectX.PrivateImplementationDetails.tagRECT*, IntPtr)
    15.09.2006 17:03:46 281 [ERROR] source :Microsoft.DirectX.Direct3D
    15.09.2006 17:03:46 296 [ERROR] stacktrace: at Microsoft.DirectX.Direct3D.Device.PresentInternal(tagRECT* sourceRectangle, tagRECT* destRectangle, IntPtr overrideWindow)
    at Microsoft.DirectX.Direct3D.Device.PresentInternal(tagRECT* sourceRectangle, tagRECT* destRectangle, Control overrideWindow)
    at Microsoft.DirectX.Direct3D.Device.Present()
    at MediaPortalApp.Render(Single timePassed)
    15.09.2006 17:03:56 968 [ERROR] DVBGraph:Failed to render video out pin MPEG-2 Demultiplexer
    15.09.2006 17:03:56 968 [ERROR] Command:MediaPortal.TV.Recording.ViewTvCommand failed reason:Live-Fernsehen konnte nicht aktiviert werden
    Unable to connect MPG2 pin time:609,375 msec
     

    Paranoid Delusion

    Moderation Manager
  • Premium Supporter
  • June 13, 2005
    13,052
    2,978
    Cheshire
    Home Country
    United Kingdom United Kingdom
    Hi All

    Just a quick thanks to everyone who contributed to this FIX,

    USB TVcard now works fine for me with last couple of days SVN's.

    Work much appreciated, and of course special thanks to ziphnor.

    :D
     

    rgies

    Portal Member
    August 30, 2006
    16
    0
    Home Country
    Germany Germany
    Hi everyone,

    I am having a similar problem here, but I'm not sure if it's exactly the same problem.

    If I restart my PC from hibernate, I can't use MyTV anymore. I only get an error message saying "Live TV cannot be started; unable to connect mpg2 pin"

    If I exit MP and restart it, everything is fine again. I tried one of the latest svn-builds, but choosing "re-init tuners on startup" in powerscheduler didn't solve the problem.

    Here's a copy of my error.log:

    15.09.2006 17:03:46 281 [ERROR] Exception :Error in the application.
    -2005530520 (D3DERR_DEVICELOST)
    at Microsoft.DirectX.Direct3D.Device.PresentInternal(tagRECT* sourceRectangle, tagRECT* destRectangle, IntPtr overrideWindow)
    at Microsoft.DirectX.Direct3D.Device.PresentInternal(tagRECT* sourceRectangle, tagRECT* destRectangle, Control overrideWindow)
    at Microsoft.DirectX.Direct3D.Device.Present()
    at MediaPortalApp.Render(Single timePassed)
    15.09.2006 17:03:46 281 [ERROR] Exception :Error in the application.
    15.09.2006 17:03:46 281 [ERROR] site :Void PresentInternal(Microsoft.DirectX.PrivateImplementationDetails.tagRECT*, Microsoft.DirectX.PrivateImplementationDetails.tagRECT*, IntPtr)
    15.09.2006 17:03:46 281 [ERROR] source :Microsoft.DirectX.Direct3D
    15.09.2006 17:03:46 296 [ERROR] stacktrace: at Microsoft.DirectX.Direct3D.Device.PresentInternal(tagRECT* sourceRectangle, tagRECT* destRectangle, IntPtr overrideWindow)
    at Microsoft.DirectX.Direct3D.Device.PresentInternal(tagRECT* sourceRectangle, tagRECT* destRectangle, Control overrideWindow)
    at Microsoft.DirectX.Direct3D.Device.Present()
    at MediaPortalApp.Render(Single timePassed)
    15.09.2006 17:03:56 968 [ERROR] DVBGraph:Failed to render video out pin MPEG-2 Demultiplexer
    15.09.2006 17:03:56 968 [ERROR] Command:MediaPortal.TV.Recording.ViewTvCommand failed reason:Live-Fernsehen konnte nicht aktiviert werden
    Unable to connect MPG2 pin time:609,375 msec

    Hi,

    I have exactly the same problem. I use also DVB-S TT 1500 budget.

    Thanks
    Robert
     

    Users who are viewing this thread

    Top Bottom