MP 1 Hangs on resume fro sleep (TV) (1 Viewer)

joecrow

Test Group
  • Team MediaPortal
  • August 9, 2012
    1,640
    1,233
    Germany Germany
    Country flag
    When I finish watching TV I always stop the playback and exit to the home gui before putting the HTPC to sleep and have no problems. I currently have some non computer savvy guests staying with me who like to watch TV, I have done my best to give them instructions on using the HTPC but they frequently simply hit the standby button on the remote without stopping and closing TV, with the result on resume from sleep that MP is hung either with a black screen or a frozen still of the TV program. The only way out is to close MP1 using the Taskmanager or reboot, Watchdog is no help. I do appreciate that failing to stop playback prior to putting the HTPC to sleep and expecting a full recovery may be unreasonable but I do not think a complete hang is a reasonable result either.
    Is this a bug (MP 1.25), my setup or some other issue.
    Logs attached.

    Update:-
    The problem seems to be related to the use of Madvr, selecting the option "Use EVR for TV" in MP Config can be used as a workaround to avoid the failure.
     

    Attachments

    Last edited:

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    2,017
    1,250
    Southampton
    United Kingdom United Kingdom
    Country flag
    When I finish watching TV I always stop the playback and exit to the home gui before putting the HTPC to sleep and have no problems.
    Me too! (y) :)

    they frequently simply hit the standby button on the remote without stopping and closing TV, with the result on resume from sleep that MP is hung either with a black screen or a frozen still of the TV program.
    I occasionally do this. As well as using MP, I also sometimes watch live TV using the TV's tuner :eek:. I switch it off by pressing the OFF button on my Logitech Harmony 650 remote, which switches everything off. But if I am actually using MP to watch TV, the OFF button does not stop live TV playing, with the result that my system never hibernates (it runs continuously).

    To avoid my HTPC running all night, I have set up another AutoHotKey script to use with my hibernation controller. When invoked, this script sends the keystrokes for STOP, HOME, and EXIT (ALT_F4) (the script contains a bit more than this):
    • STOP stops playback of live TV, video, radio, music.
    • HOME displays the "Home" panel (required because there is a config setting that prevents sleep or hibernation if not on the "Home" panel).
    • EXIT (ALT_F4) either exits MP, or displays the exit pop-up (depends on your remote control config). If your remote control config displays the "Exit" pop-up in response to ALT_F4, you need to send ENTER too, in order to select the first item on the pop-up.
    The problem now is how to cause this script to be invoked when the system is about to sleep or hibernate. I use my weird hibernation controller, but in the absence of that, you might be able to use PowerScheduler to invoke a progam when the system is about to sleep or hibernate. It is the Run command on system power state change on the "Advanced" tab in PowerScheduler config (you need to be in expert mode).

    The catch here is that the command needs to have admin authority, and AutoHotKey scripts do not have admin authority. The way that I think that you can get around this is to use "Task Scheduler" to set up a "run on request" task, and create a shortcut on the desktop to invoke it. The task runs the AutoHotKey script, and the reason this works (I think) is that you can select a setting on the task properties panel that allows the task to run with admin authority. So:
    • When the system is about to sleep or hibernate, PowerScheduler invokes the desktop shortcut.
    • The desktop shortcut starts the task.
    • The task runs the AutoHotKey script with admin authority.
    • The script sends the commands to stop playback and close MP.
    Well... it might work o_O (I have not actually tried it :D).

    -- from CyberSimian in the UK
     

    joecrow

    Test Group
  • Team MediaPortal
  • August 9, 2012
    1,640
    1,233
    Germany Germany
    Country flag
    Thanks for that but it does seem to me that Madvr is the issue here, I guess it is not as robust as the EVR or does not get shut down as elegantly, I also suspect, though I have not tried it, that the result would be the same for playback of any video, i.e. not just TV.
    Given that German TV is now all transmitted as full HD, the need to use Madvr for upscalling is no longer there, EVR looks really good too.
    I think for now I will keep the option to use EVR for tv enabled as a workaround with the added bonus that I can use the D3D11 Hardware Decoder in LAV which seems more efficient but has a problem with Madvr and TV channel changing, but no problem with EVR.:)
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    M MovingPictures: Hang at retrieving details (connection fails) ? Moving Pictures 23
    B loading input devices hang General Support 3
    horned_reaper [solved] Music playback hangs General Support 58
    joecrow Win 10 crash, hang and freeze with USB Tuner. General Support 13
    M [solved] Setup Issue - Hanging on Starting Services General 3
    A Hanging in Recorded TV menu General Support 1
    C MP hangs after suspend or TV off General Support 72
    E Hanging on Initializing Directx General Support 6
    S Resume Playback Annoyance Newcomers Forum 4
    joecrow 1.25.0 Radio Time plugin fails after Resume from Sleep with MP 1.25 Bugreports 4
    F After resume, TV Server connection screen is shown General Support 4
    Dark Eyes TVService locks up or fails to restart on resuming from sleep, and crashes when grabbing EPG Installation, configuration support 7
    P MP2 Client Screen Flickering on Resume General 2
    HTPCSourcer [fixed] [MP2-815] User not logged in when resuming from standby MediaPortal 2 17
    J Resume from Standby Last Module TV Showing TV Server Settings Television (MyTV frontend and TV-Server) 2
    R Media portal resumes with wrong screen resolution General Support 3
    B resume from within a folder Watch / Listen Media 0
    joecrow No Audio after MP Start/Resume from Sleep General Support 0
    R Weird sleep/resume loop General Support 4
    joecrow Further problem on resume from sleep (MP Crash) 1.21 5
    joecrow Loss of Navigation Sounds on Resume from Sleep Mp 1.21 General Support 10
    D [further infos missing] Problems switching to live tv channel after resume 2.2 Archive 1
    stirlinghart [duplicate] Mp not focused on after resuming from sleep 2.2 Archive 7
    P Multiple clients - share resume/watched data General 1
    stirlinghart FOCUS not on MP after resuming from sleep General 11
    Similar threads

























    Top Bottom