[0.2] Fails to restart TV tuner after returning from suspend (2 Viewers)

infinite.loop

Retired Team Member
  • Premium Supporter
  • December 26, 2004
    16,154
    4,133
    127.0.0.1
    Home Country
    Austria Austria
    J-B-N said:
    1st time without thimeshift enabled, and that worked!

    2nd time with timeshift enabled, and that did not work!?!
    you are hibernating with running MyTV?
     

    J-B-N

    Portal Pro
    December 29, 2005
    196
    20
    Sweden
    Home Country
    Sweden Sweden
    I dont know the exact inner workings of MP but I guess in my second experiment I had MyTV running.

    What I did was:

    1. Start MP
    2. Go to MyTV
    3. Tune to a scrambled channel
    4. Enable Timeshift
    5. Exit to home screen and select Hibernate
    6. Hibernate and then resume MP
    7. Return to MyTV
    8. Tune to a scrambled channel (the same as in 3).
    9. Blank & Mute TV

    The result differed in steps 4 and 9 when I either enabled, or not, Timeshift.
     

    ziphnor

    Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    Area: Media Portal TV
    MP Version: 0.2 + the 2 patches ( 0.2.0.2 ) ALSO tested 0.2.0.3
    Skin: default
    Windows Version: WinXP SP2
    CPU Type: A64 3000+
    Memory: 768MB
    Motherboard Chipset: Asus A8N-E
    Video Card: Ati X550
    Video Card Driver: -
    Video Card Resolution: 720x576i
    Video Codec Type & Version: MPV
    Audio Codec Type & Version: MPA
    TV Card: Twinhan Cab CI(2031)
    TV Card Type: DVB-C
    TV Card Driver: 1.2.3.8

    Problem: (Same as described above)
    Normally i can watch the scrambled channels i have paid for without problems.
    If i ask mediaportal to go into standby( but same things happens when its powerscheduler that initiates standby), and then resume later on however,
    i cannot see those channels any more. In that case i need to restart MediaPortal which is very annoying.

    My logfile: http://mp.pastebin.com/756448

    All log info ( zip file generated my MP Test Tool):
    http://quick.dropfiles.net/download.php?file=3947cfcf2c3dd35c9555b31fee2f7c41

    What the log shows:
    1. i enter My TV and tune a scrambled channel. OK.
    2. i leave my tv and ask mp to 'sleep'(from the button on the outermost menu)
    3. i resume the HTPC
    4. I go to My tv and try to tune the same channel, no go.
    5. I tune a free channel, OK.
    6. I try to tune the scrambled channel again, no go.

    Btw, i know it says in my Sig that i have two tuners with a card splitter but i have also tried with only one card and the smartcard directly in the CAM,
    same thing happens.

    After installing 0.2.0.3 and updating my graphics drivers i tried again letting the powerscheduler enter standby, same result.
    That log file can be found here: http://mp.pastebin.com/762414

    Looking in error.txt i found the errors shown below, similar ones are also in my previous log file. If i look in the main
    log file the first error seems to occur right after resuming!

    Code:
    03-08-2006 09:56:18 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)
    03-08-2006 09:56:18 Exception   :Error in the application.
    03-08-2006 09:56:18   site      :Void PresentInternal(Microsoft.DirectX.PrivateImplementationDetails.tagRECT*, Microsoft.DirectX.PrivateImplementationDetails.tagRECT*, IntPtr)
    03-08-2006 09:56:18   source    :Microsoft.DirectX.Direct3D
    03-08-2006 09:56:18   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)

    I would also like to add that previous to 0.2 i didnt have this problem everytime i came out of standby. However i did occur sometimes.
    There might be more than one bug here, but i think the CAM needs to be reset after standby.

    UPDATE: Using hibernate is no different, the problem is exactly the same.
     

    infinite.loop

    Retired Team Member
  • Premium Supporter
  • December 26, 2004
    16,154
    4,133
    127.0.0.1
    Home Country
    Austria Austria
    ziphnor said:
    1. i enter My TV and tune a scrambled channel. OK.
    2. i leave my tv and ask mp to 'sleep'(from the button on the outermost menu)
    3. i resume the HTPC
    4. I go to My tv and try to tune the same channel, no go.
    5. what if you try to tune any other scrambled channel?
    i assume it works (as it does here).

    that looks like the "no signal" issue i have/had with the floppydtv
     

    ziphnor

    Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    5. what if you try to tune any other scrambled channel?
    i assume it works (as it does here).

    that looks like the "no signal" issue i have/had with the floppydtv

    Before standby all scrambled channels work, after resuming *No* scrambled channels work at all unless i restart MP.

    I turn off TV in MP before going into standby in all my tests.
     

    ziphnor

    Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    Btw, turns out that sometimes it does work when resuming from hibernation(while its 100% failure rate with S3/standby).
     

    ziphnor

    Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    A correction to the above, it looks like hibernation works fine(at least by far most of the time), while standby fails with 100% certainty(but remember, teh tuner CAN handle standby, since it works after restarting MP).
     

    rtv

    Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    it is nevertheless most likely a driver issue then :-/
     

    ziphnor

    Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    rtv said:
    it is nevertheless most likely a driver issue then :-/

    I actually dont think so, before 0.2 release i didnt have this problem(or rather it only failed 1 out of 10 times instead of 10/10), so it must have something to do with MP. Since restarting MP(restarting the PC is not necessary) restores functionality completely, its simply a matter of performing whatever initialization of the tuner is done at MP startup time, when resuming from standby.

    My guess is that this is an issue with the CAM's since i CAN watch unscrambled channels after standby. However the CAM probably just needs to be reset in order to work correctly again. It cant be that hard adding that to the resume processing in MP?

    I dont think its a good idea to ignore this issue, even if its limited to the Twinhan DVB-series, simply because they are alot of people with Twinhan cards out there.
     

    Users who are viewing this thread

    Top Bottom