Does MediaPortal resume from suspend if I kill Mediaportal.exe be PC suspends? (1 Viewer)

stounedi

Portal Pro
December 9, 2008
67
1
MediaPortal Version: 1.0.2.0
MediaPortal Skin: Default
Windows Version: Windows XP Pro SP3
CPU Type: Intel E4600
HDD: Samsung 750GB SATA
Memory: 4GB DDR800
Motherboard: Asus P5Q
Video Card: ATI HD2600 Pro
Video Card Driver:
Sound Card: Integrated
Sound Card AC3: Integrated
Sound Card Driver:
1. TV Card: AnySee USB E30
1. TV Card Type:
1. TV Card Driver: Latest
2. TV Card: TechnoTrend T-1500 + CI
2. TV Card Type:
2. TV Card Driver: Latest
3. TV Card:
3. TV Card Type:
3. TV Card Driver:
4. TV Card:
4. TV Card Type:
4. TV Card Driver:
MPEG2 Video Codec:
MPEG2 Audio Codec:
h.264 Video Codec:
Satelite/CableTV Provider:
HTPC Case: Zalman HD160
Cooling: CASE: 2x80mm, CPU: Noctua NH-92
Power Supply: Nexus 350W
Remote: Logitech Harmony 525
TV: Samsung 50"
TV - HTPC Connection: HDMI

---------------------------------------------------------------

I have been having problems with my TechnoTrend T-1500 + CI combination. It is the only DVB-card with CI on my HTPC, so I rely on it to record scrambled channels.

The problem is that every now and then I only get a "Cannot start graph" error after resuming from sleep.

What I have tried is:
1. Stop / Start TV-Service. After that nothing works, not even the AnySee.
2. MPstandbyhandler. It works if I boot up with remote, but if scheduled recording starts I get ".NET Expection"...

What I'd like to do now, manually:
1. Kill MediaPortal.exe on suspend
-
1. Stop & restart TechnoTrend device on resume from command line
2. Start MediaPortal.exe after TechnoTrend device is restarted

I know how to do this but I'm wondering if PC can resume from sleep if MediaPortal.exe is killed? Is it MediaPortal client that handles wake-ups or TVService or something else? I am ofc using PowerScheduler for wake-ups and was planning to use the "Execute after resume" for my restart TechnoTrend + start mediaportal .bat

Damn.. Annoying when I get ideas at work and need to wait several hours before I can test it out :D
 

Paranoid Delusion

Moderation Manager
  • Premium Supporter
  • June 13, 2005
    13,052
    2,978
    Cheshire
    Home Country
    United Kingdom United Kingdom
    TVService controls standby using its powerscheduler plugin.

    Two setting to try changing first is under delay detecting cards, give a 20 or 30 second delay, the other is in the powerscheduler plugin to rerinitiliase tuner on resume.

    Have you already tried these.
     

    stounedi

    Portal Pro
    December 9, 2008
    67
    1
    TVService controls standby using its powerscheduler plugin.

    Two setting to try changing first is under delay detecting cards, give a 20 or 30 second delay, the other is in the powerscheduler plugin to rerinitiliase tuner on resume.

    Have you already tried these.

    I tried the "reinitialize tuner" setting, but I had no delays set in. After using the "reinitialize" setting without delays my tuners didnt work at all.

    I will try these delays first, thanks for your advice!
     

    stounedi

    Portal Pro
    December 9, 2008
    67
    1
    Where is this "delay detecting cards" is located? I could not find it.

    Reinitializing caused my TechnoTrend to only give "no signal error". Without reinitialize it works for a few suspends until I get the "Cannot start graph" error...

    Very annoying.


    EDIT: Ok, I have tried about EVERYTHING... The problems are VERY annoying:

    1. If I stop/restart TVService everything is broken. (Cannot start graph / No signal / No free tuners)...
    2. I cannot stop/restart my TechnoTrend without restarting TVService. (To fix occasional "Canno start graph" error)
    3. MPstandybyhandler seemed promising but surprise surprise it gives ".net JIT exception" crap and doesnt work...

    I am now totally clueless and think I dont want to play around with MediaPortal anymore. I've used 2 months trying to get my HTPC work, but seems I'm just running out of luck. I have even checked that the components should be what other people recommended...


    EDIT2:
    Ok, I managed to create a bat that:

    1. net stop tvservice
    2. restart my TechnoTrend PCI card
    3. net start tvservice

    It works 100% when I run it from OS by double clicking it.

    But when I set it to run on PowerScheduler, it totally breaks TVService. After running it from PowerScheduler...
    1. Try to stop TVService = "TVService could not be stopped in its current state"
    2. Try to start TVService = "TVService is already running"

    How cant even a simple "net stop tvservice" -> "net start tvservice" work for me from the PowerScheduler? LOL... I even set MediaPortal to 30sec startup delay. I Also set the TVService to delay for 20sec before detecting tv-cards in general settings.

    EDIT3:
    Ok, now I got myself a program that will run tasks on standy and on wake-up events.

    I will make a batch file that would run with this program. After wake-up, I would:
    - taskkill mediaportal.exe (I didnt find an option in MP settings that it would not restart on wake-up)
    - net stop tvservice
    - taskkill tvservice
    - restart T-1500
    - net start tvservice
    - wait 30 seconds
    - launch mediaportal.exe

    ... Will come back later to report if I had any success.

    EDIT4: (I hope this is the final edit)

    I am now running a program that executes: OnStandby.bat and OnWakeup.bat on the same events.

    OnStandby.bat:
    1. taskkill mediaportal.exe

    OnWakeup.bat:
    1. delay 3 seconds
    2. net stop tvservice
    3. taskkill tvservice.exe
    4. delay 1 second
    5. restart my t-1500 dvb-t
    6. delay 1 second
    7. net start tvservice (10sec delay on detecting tuners)
    8. launch mediaportal

    So far everything seems good. I hope I dont need to come back for yet another edit :D


    OK I am now giving up.

    The .bat does run if I start the HTPC with my remote. But it DOESNT run if PC wakes up automatically for scheduled recording. My TechnoTrend PCI-card isnt working even after 1-2 standby's now. Seems like there's no luck for me creating a working PVR with any HTPC solutions :(

    I even tried to put tuner detection to 40 seconds and turning on "reinitialize" option but that resulted only giving me "No signal" and "Unknown error"...
     

    vecnar

    Portal Pro
    April 21, 2008
    129
    10
    Home Country
    Ireland Ireland
    Don't give up! I had similar problem as utility which i use doesn't kick in until you press a button on remote or keyboard when computer wakesup for recording without user input.
    Solution:
    Use utility to pass batch script when going to sleep and for resume use tv server power scheduler plugin.
    Open tv server configuration window>select plugins>power scheduler>advanced tab> at the bottom of the window there is "run command befor /after standby", click on the button "...", select batch file to run.
    Note that my batch script doesn't restart tv service so don't know if your one will work but give it a try and don't give up as it is possible one or the other way :)
     

    stounedi

    Portal Pro
    December 9, 2008
    67
    1

    Users who are viewing this thread

    Top Bottom