Switch primary monitor to selected monitor on starting MP and back original on exit (1 Viewer)

red5goahead

MP Donator
  • Premium Supporter
  • November 24, 2007
    695
    144
    Italy, North West
    Home Country
    Italy Italy
    Follow my post about Evr+Aero jercky playblack:

    https://forum.team-mediaportal.com/...aero-performance-42496/index2.html#post312804

    "About jerky playback under Vista and Evr I've tried to switch Aero ON. it was off because I've always got jerk playback /stuttering (with or without reclock is not related).
    I've two monitor . the pc monitor on dvi-vga , a 19" Asus 1440x900 75HZ. the plasma panasonic 37" connected via hdmi dongle (on yellow dvi port) the monitors are in extend desktop mode.
    Tried with an mvk 720p 25 fps (so the monitors refresh match both). MP on the plasma (the secondary) I got random stuttering / jerky play. I switch the plasma as first monitor . the problems gone. work fine. I've 8.8 catalyst. this is a big issue because the tv can't be the main monitor.
    I've tried MPC-HC on 2^ monitor seems work fine (evr and same filtergraph).
    Is it possibile that issue is MP related? "

    Probably Ati card have this issue. When MP run under Vista+Evr+Aero ON work fine if the monitor is the primary.
    as secondary the play got jerky and stuttering.

    So the improvement could be this:

    Insert an option: "set start screen as primary monitor".

    When Media Portal start use ChangeDisplaySettingsEx WinAPI

    ChangeDisplaySettingsEx

    to set primary property to the selected monitor in Media Portal. The switching is very fast.
    On exiting Media Portal should reset to default state.

    Now I've created two Ati Catalyst profile "MediaPortalOnPlasma" and "AsusPrimaryToDefault"
    with the command

    "D:\Program Files\ATI Technologies\ATI.ACE\Core-Static\CLI.exe" Start Load profilename="MediaPortalOnPlasma"
    and
    "D:\Program Files\ATI Technologies\ATI.ACE\Core-Static\CLI.exe" Start Load profilename="AsusPrimaryDefault"

    to change quickly the configuration.
    ... but the switch is not very fast and manly I can't insert these command as OnEnter or OnExit Media Portal events because Media Portal do not have activate/exit events.
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    You could use a bat to;

    1) switch mode
    2) start MP (and wait for exit)
    3) switch mode

    The use case is so limited that it most likely wont ever be added to MP code line. Especially as MediaPortal is targeted to be aHTPC application, not an application that is run from a workstation.
     

    red5goahead

    MP Donator
  • Premium Supporter
  • November 24, 2007
    695
    144
    Italy, North West
    Home Country
    Italy Italy
    Especially as MediaPortal is targeted to be aHTPC application, not an application that is run from a workstation.

    mhh. so why a screenselector features is avaiable? Because a lot of users use Media Portal with a workstation pc connect to a monitor and a lcd/plasma/vpr. in the Italian Media Portal offical thread on Avmagazine.it forum
    (Media Portal: Il Media Center per gli appassionati di serie TV - Il forum di AV Magazine) we talk about that frequently

    The program you refer (an AutoIT executable script for example, often I develop system utility with that tool) should read screennumber of mediaportal xml screennumber and screennumber value, switch the primary monitor if usescreenselector is "yes" and wait for mediaportal.exe process to exit.
    But this program should be lunched from mediaportal I guess.
    A very simple startup commandline /startcmd could be enough maybe also usefull for other purpose.
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Especially as MediaPortal is targeted to be aHTPC application, not an application that is run from a workstation.

    mhh. so why a screenselector features is avaiable?

    As it works on some systems.

    Because a lot of users use Media Portal with a workstation pc connect to a monitor and a lcd/plasma/vpr.

    MediaPortal is still targeted on HTPCs (no matter on what users are using it). I guess no one is stying to run Mac OS on PCs? :) (of cource there are some geeks doing it, but its not the main targed...).
     

    red5goahead

    MP Donator
  • Premium Supporter
  • November 24, 2007
    695
    144
    Italy, North West
    Home Country
    Italy Italy
    I don't understand.
    My pc is a workstation with Vista Business and use it for work, internet, email games ecc.
    when I start Media Portal on the tv it become and htpc , with the remote control , a true htpc. When close MP it back as workstation. Why a pc should be a workstation OR an htpc?
    Right now the Ati based Vista hw with Media Portal seems do not work very well with the renderer evr+aero on the secondary monitor. it work much better on the primary monitor. This is a real limitation.
    So I'm trying to find out a solution. Waiting for a Media Portal or Ati drivers improvment.
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    I don't understand.
    My pc is a workstation with Vista Business and use it for work, internet, email games ecc.
    when I start Media Portal on the tv it become and htpc , with the remote control , a true htpc. When close MP it back as workstation. Why a pc should be a workstation OR an htpc?
    Right now the Ati based Vista hw with Media Portal seems do not work very well with the renderer evr+aero on the secondary monitor. it work much better on the primary monitor. This is a real limitation.
    So I'm trying to find out a solution. Waiting for a Media Portal or Ati drivers improvment.

    HTPC by definition is a PC that is only used for media playback. It already enough hard to try to support all the available configurations (impossible actually), so its good to leave all those party workstatations out of the "support clound".

    Media Player software (like VLC, MPC, ZoomPlayer...) are having a completely different user base (and targets). Those are much more suitable for the mixed environments.
     

    red5goahead

    MP Donator
  • Premium Supporter
  • November 24, 2007
    695
    144
    Italy, North West
    Home Country
    Italy Italy
    Media Player software (like VLC, MPC, ZoomPlayer...) are having a completely different user base (and targets). Those are much more suitable for the mixed environments.

    I disagree. I'm an htpc advanced user but I choose Media Portal after Kmplayer and Zoomplayer because M.P. it's awesome product, the ultimate one, and MPC or ZP do not offer more. Less option only the essential one it's the best choice always.
    Imho in internal player codec settings an mpg-4 generic so div3, divx, xvid ect. fourcc selection could be usefull for htpc user target you talking about. Finally and resuming the intial issuu under Vista and Evr+Aero renderer video (the best solution in that system) should be fired a warning when a secondary monitor is selected because not work very well. That's my two suggestions.
    Anyway best compliment to developers. :D

    And why 3 lines of batch file doesn't solve your problem?

    Yes, I'm a computer engineer so I will. But the accountant and the baker from Dusserdolf. ? :D
     

    Quickstyler

    Portal Member
    July 28, 2007
    13
    0
    39
    dead topic?

    is there any solution to switch primary monitor in running mediaportal modus via plugin?
     

    Users who are viewing this thread

    Top Bottom