Fig. 1  lg-input-switcher, general arrangementT-1.2
123456
Back to sheet T-1

lg-input-switcher

Switches a monitor's input over DDC/CI and follows a USB KVM, built for LG monitors.

Parts list — Fig. 1
RefPart no.DescriptionQty
1LGS-01LG monitorInput switched over DDC/CI1
2LGS-02Plasma widgetSwitch by hand from the panel1
3LGS-03USB KVMIts hub leaving triggers the switch1
4LGS-04Two hostsLinux and a Mac or laptop2
5LGS-05Keyboard, mouseMove with the KVM1
6LGS-06DDC/CI over videoSame HDMI or DisplayPort cable1

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.

SourceNext part: software-foundry
Schedule 1  SpecificationsT-1.3

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
Schedule 2  Operating procedureT-1.4

Operating procedure.

  1. Edit the config file to say which input this Linux machine uses and which input the other computer uses.
  2. Run lg-input probe to find the switching command your monitor obeys.
  3. Run lg-input find-kvm, then press the KVM button to switch away and back.
  4. Turn on auto-switching with lg-input auto on.