There are many ways to do this, but the best and most documented one right now is to use the ezCoo KVM switch.
Also, Pi-KVM can be connected to a multi-port HDMI/USB switch and the switch's buttons can be connected via optocouplers to the Pi's GPIO to switch channels.
If your KVM switches channels using keyboard shortcuts, there is a chance that it will not be able to work with OTG (v2 platform, see below), since it does not fully implement the USB stack. In this case, you will have to use an Arduino board to emulate the keyboard & mouse (Pi-KVM supports this configuration).
❗WARNING:exclamation: - AiMOS has a back powering issue that makes the Pi behave differently, there is a work around here
Here the status is:
- ✔ - Everything is working as expected. There may be some subtleties.
- ☹ - The switch does not work with OTG (v2) and requires an Arduino HID or soldering GPIO to switch channels or something like that.
- ✘ - The keyboard or mouse does not work at all, the switch loses the image, etc.
Model | Status | Notes |
---|---|---|
ezCoo SW41HA HDMI 4x1 switch | ✔ | Using with Pi-KVM |
Ali's noname | ✔ | Here are the details |
Aimos 8-port HDMI USB-C KVM Switch | ✔ | Similar to Ali's noname model, available in 4/8port editions, has same HDMI bridge boot problem/solution using a Marmitek 312 UHD HDMI splitter See here for details |
TESmart 8 PORT - HDMI KVM SWITCH | ✔ | Use OTG with USB 2.0 Hub only, no hotkey support. Switching available with serial or IP-to-serial interface using fixed IP (/31 peer-to-peer addressing supported). Sample script on GitHub |