logoalt Hacker News

Yondletoday at 3:47 AM1 replyview on HN

Thank you! I hadn't thought of using software to handle monitor switching.. I have a very similar setup but my monitor doesn't support usb upstream so I have a dumb usb hub with a button to switch sources then still have to manually use monitor input change.

You gave me the idea to setup scripts on the windows / macos system to 'react' to hub detach events (which I click the button) and execute cli commands to change the monitor source automatically to the other machine. Too good.


Replies

oncelertoday at 4:42 AM

This is the setup I (used to) use. My monitor doesn't do usb switching, so I got a cheap ($15ish?) usb switch (one downstream port (connected to a hub), two upstream ports, and a button to switch between them), and run a script on my desktop to send ddc commands to the monitor to switch inputs when it receives usb attach/detach notifications. No keyboard shortcuts, but one button next to my keyboard switches everything.

: I've since replaced the monitor, and found that the new one doesn't support input switching via ddc, at all. But it does switch if only one input is active, and I rarely use both computers at once, so I cope.