lg-input-switcher
Switches a monitor's input over DDC/CI and follows a USB KVM, built for LG monitors.
| Ref | Part no. | Description | Qty |
|---|---|---|---|
| 1 | LGS-01 | LG monitorInput switched over DDC/CI | 1 |
| 2 | LGS-02 | Plasma widgetSwitch by hand from the panel | 1 |
| 3 | LGS-03 | USB KVMIts hub leaving triggers the switch | 1 |
| 4 | LGS-04 | Two hostsLinux and a Mac or laptop | 2 |
| 5 | LGS-05 | Keyboard, mouseMove with the KVM | 1 |
| 6 | LGS-06 | DDC/CI over videoSame HDMI or DisplayPort cable | 1 |
What it is
A tool that switches a monitor’s input between two computers from Linux, and makes it follow a USB KVM switch automatically.
It comes with a Plasma 6 panel widget for switching by hand.
Why
Cheap KVMs switch the keyboard and mouse, and often the monitor is wired straight to both computers.
Then every KVM press needs a second trip to the monitor’s input button. This tool removes that step.
How it works
When the KVM’s USB hub leaves the Linux machine, the tool sends the monitor an input command over DDC/CI, on the same HDMI or DisplayPort cable.
When the hub comes back, it switches the monitor back.
Many LG monitors ignore the standard command, so the tool uses LG’s own command and falls back to the standard one for other brands.
It does not read the input back, because many monitors, LG’s included, report a wrong one. Instead it remembers the last input it set.
Status
Tested on an LG 45GR65DC-B (UltraGear 45-inch OLED), switching between HDMI-1 and HDMI-2.
DDC input switching depends on the monitor’s firmware, so expect to run lg-input probe on a new model.
Specifications.
- Language
- Shell
- Year
- 2026
- Runs on
- Linux; the widget needs KDE Plasma 6
- Needs
- ddcutil 2.0 or newer; python3 and python-pyudev
- Monitor
- DDC/CI turned on in its on-screen menu
- Install
- KDE Store widget
- Licence
- MIT
Operating procedure.
- Edit the config file to say which input this Linux machine uses and which input the other computer uses.
- Run lg-input probe to find the switching command your monitor obeys.
- Run lg-input find-kvm, then press the KVM button to switch away and back.
- Turn on auto-switching with lg-input auto on.