What does HackerNews think of display-switch?

Turn a $30 USB switch into a full-featured multi-monitor KVM switch

Language: Rust

#15 in macOS
#2 in Rust
#11 in Windows
The best option I've found is to hook both computers up to a USB-only KVM, and plug them in via separate video cables to the monitor. Then set up the computers to tell the monitor to change inputs (via DDC commands, which most but not all monitors support) when you change devices on the KVM

There's software to help do this automatically (https://github.com/haimgel/display-switch)

I have the same setup and use the following software to send the switch signal to the monitor.

https://github.com/haimgel/display-switch

I have a lo-fi version of this using a 4port usb-switcher and display-switch [0]

[0] https://github.com/haimgel/display-switch

The only thing you’d need to figure out is the standing desk part. My usb switch came with a wireless controller which is the main way I interact with it.

I have a personal computer, a work computer and a gaming computer and I switch between them using an Aten USB switch [1] and this software that switches monitor inputs when your plug/unplug USB devices [2]. Works quite well and costs less than 50€.

[1] https://www.amazon.de/dp/B00B1SENTE/

[2] https://github.com/haimgel/display-switch

In conjunction with a KVM for switching the USB between devices, you can use this software to automatically swap the inputs on the monitor (if your monitors support the command protocol, most do but one of mine doesn't support the "change input" instruction): https://github.com/haimgel/display-switch

Otherwise you'd need a KVM that supports 3 monitors which I'd imagine is a compatibility nightmare if they're beyond 1080p@60hz

I do the same thing (plug both computers directly into different inputs on the monitor but use a USB switch to switch the mouse & keyboard). If you install this software on both computers, you can eliminate the "switching via OSD" step, because it will watch for the USB connect / disconnect events and initiate the input switch automatically via the DDC connection to the monitors, so it gives you true one-touch KVM switching at the cost of a USB switch.

This works especially well in cases where an actual KVM switch would be expensive or unavailable (in my case, I'm switching three 4K HDR DisplayPort monitors, which would require a very expensive KVM switch).

https://github.com/haimgel/display-switch

As someone who is using display-switch[0] to imitate a hardware KVM switch in software I can say I’ve seen many of these issues in trying to debug the random issues that using ddc creates.

Ddc is to http what your county clerk’s website is to (current) healthcare.gov essentially. There’s no standardization at all, it’s maintained by 1000 different people who don’t communicate and don’t care how anyone else is doing it because only like 1/10000 people have heard of it and 1/100000 uses it.

[0] https://github.com/haimgel/display-switch

Are you thinking of the display-switch[0] script? Achieves K/V/M-switching with only a cheap USB-switch for hardware K/M-switching, and then this script detects such peripheral switching and emits DDC-commands for monitors to switch accordingly.

I saw it posted here on HN[1], and have been using it since then with great success.

[0] https://github.com/haimgel/display-switch [1] https://news.ycombinator.com/item?id=29608967

Not quite what you are asking for, but perhaps display-switch[0] can help. I'm too cheap to get a KVM which supports 2 4k monitors so I'm using display-switch instead. Works wonders.

[0] https://github.com/haimgel/display-switch

Even outside of impedence issues, you can't just use relays because then every switch is basically an unplug/replug, meaning that:

a) the display will flip out and spend multiple seconds re-syncing itself, and

b) the sources may take actions such as resizing the desktop, switching to the internal display, pausing the game, whatever.

Part of the point of a hardware KVM is that it negotiates its own connection to all of the devices involved, and only changes which signals are passed through at any given moment, resulting in instantaneous switchovers.

Now, a multi-input monitor can also do this, but then you have to deal with whatever compat issues are involved in commanding it to switch over DDC (see for example https://github.com/haimgel/display-switch), and it typically also won't be as fast as a hardware solution since input switching speed isn't a metric most people care about when monitor shopping.

There was a post[0] from a couple months ago for a piece of software called 'display-switch'[1]. It turns a simple/cheap USB switch into a n-computer KVM (however many systems the USB switch supports) by detecting the presence of the USB switch device on either system and switching the video input of the monitors using DDC/CI.

I've been using it for a couple of months and it's been a game changer. No more fiddling with monitor menus to switch inputs or wondering if the monitor is currently set to one computer or the other. You have to make sure your monitors support DDC/CI, though.

[0] https://news.ycombinator.com/item?id=29608967 [1] https://github.com/haimgel/display-switch

Looks like that board is the sole option for Thunderbolt && AMD && ITX. Bummer that there are no options with passively-cooled B550 chipsets.

I do something similar to the post's two-cable configuration:

- Mac to Caldigit TB dock to two displays. - PC to one of the displays - Keyboard and mouse to a USB switch, which connects to the PC and the TB dock

It's kind of a pain to manually flip both the USB switch and the monitor's input.

This app can theoretically help by programmatically toggling the display's input when particular USB devices are dis/connected:

https://github.com/haimgel/display-switch

.. but compatibility is spotty, relying on a rarely-used hardware feature in the display that seems to not be reliably implemented ("DDC/CI").