Is it possible to switch the monitor input (analog/digital) programmatically?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Finomosec
    New Member
    • Jul 2007
    • 7

    Is it possible to switch the monitor input (analog/digital) programmatically?

    Hi,

    i have the following constellation:
    I have two PCs an only one Monitor.

    Earlier i had two monitors and used "Synergy" to use my single Mouse & Keyboard for both PCs.
    This worked fine.

    But now i gave one of the monitors away, so only one is left.

    What i am trying to now is:
    I want to add a command to synergy that tells the monitor to switch between its both inputs (analog & digital).

    With this i could easily use the functionality of Synergy and the performance of a directly connected monitor (instead of using RDP or something similar which tunnels the output over LAN).

    So again in short:
    Is it possible to tell the monitor from inside windows to switch its input?

    ---------------
    I just got an idea:
    Maybe the monitor switches its input by itself when i tell windows to disable the video output (energy-save mode for the monitor).
    ---------------

    Greetings Finomosec;
  • Finomosec
    New Member
    • Jul 2007
    • 7

    #2
    I found a solution.

    Ugly but working:
    I found the tool http://www.skynergy.com/hotkeyz.html .
    And i am using http://synergy2.sourceforge.net .

    I installed Synergy-Server on prometheus and Synergy-Client on andromeda and configured it like this:
    Code:
    section: screens
    	andromeda:
    	prometheus:
    end
    section: options
    	keystroke(Control+Alt+3) = switchToScreen(andromeda) ; keystroke(Control, andromeda)
    	keystroke(Control+Alt+2) = switchToScreen(prometheus) ; keystroke(Control, prometheus) ; keystroke(Control+Alt+2, andromeda)
    end
    Then i installed HotKeyz on both PCs and configured it like this:
    PC: prometheus
    name: Switch to Andromeda
    hotkey: Control + Alt + 1
    command: Multiple Commands
    command 1: Remap
    params 1: [ControlD][AltD][3][AltU][ControlU]
    command 2: Monitor Off

    PC: andromeda
    name: Switch to Prometheus
    hotkey: Control + Alt + 2
    command: Monitor Off

    How it works ...
    When i hit Control+Alt+1 on prometheus
    1.) HotKeyz executes Control+Alt+3
    2.) [1.] triggers Synergy to send a keystroke to andromeda to wake it up
    3.) [1.] triggers Synergy to switchToScreen( andromeda), which sends all following keyboard an mouse activity to andromeda
    4.) HotKeyz turns the monitor off
    5.) Now the monitor notices, that there is no signal from prometheus anymore and switches to andromeda

    When i hit Control+Alt+2 on andromeda
    1.) Synergy calls switchToScreen( prometheus)
    2.) Synergy sends a keystroke to prometheus to wake it up
    3.) Synergy sends Control+Alt+2 to andromeda
    4.) [3.] triggers HotKeyz on andromeda which turns of the monitor
    5.) Now the monitor notices, that there is no signal from andromeda anymore and switches to prometheus

    voilĂ  ...

    Tipp:
    Hold the mouse still while switching. Otherwise it may happen, that the switch doesn't work as expected. (Instead the focus switches, but the monitor does not.)

    Greetings Finomosec;

    Comment

    Working...