MHN

Show HN: Multi-monitor KVM using just a USB switch

397 points by fiddyschmitt·1023 days ago·github.com·Show in HN

Simple KVM lets you control multiple PCs from one mouse, keyboard and monitor(s).

It is similar to Haimgel's display-switch (https://news.ycombinator.com/item?id=29608967), but it provides a GUI which hopefully makes it a bit easier to set up. It also supports hotkeys which effectively lets you alt+tab between computers.

I was surprised by the star-to-download ratio (55:400) on GitHub, so I thought I'd post it here as it might be useful to someone.

Feedback welcome!

Thanks,
Fidel

Add a comment on Hacker News →
1 of 181 comments
  1. Nice project.

    I wrote sth similar for myself, without requirement of USB switch or other hardware. it sends DDC command to HDMI/USB-C monitor and HID++ byte code to Logi MX keyboard and mouse.

    Code is too messy to share but here's snippet if anyone want to write their own:

        hid_devices = [
            {
                'name': 'Logi Bolt Receiver',
                'receivers': hid.enumerate(0x046D, 0xC548),
                'command': [  # MX Keys Mini as first device on the receiver
                    bytes([0x11, 0x01, 0x09, 0x1A, 0x00] + [0] * 15),  # change host to 1
                    bytes([0x11, 0x01, 0x09, 0x1F, 0x01] + [0] * 15),  # change host to 2
                    bytes([0x11, 0x01, 0x09, 0x1D, 0x02] + [0] * 15)]  # change host to 3
            }, {
                'name': 'Logitech Unified Receiver',
                'receivers': hid.enumerate(0x046D, 0xC52B),
                'command': [  # MX Anywhere 3 as first device on the receiver
                    bytes([0x11, 0x01, 0x0A, 0x1A, 0x00] + [0] * 15),  # change host to 1
                    bytes([0x11, 0x01, 0x0A, 0x1E, 0x01] + [0] * 15),  # change host to 2
                    bytes([0x11, 0x01, 0x0A, 0x19, 0x02] + [0] * 15)]  # change host to 3
            }, {
                'name': 'MX Keys Mini Bluetooth',
                'receivers': hid.enumerate(0x046D, 0xB36E),
                'command': [
                    bytes([0x11, 0xFF, 0x09, 0x1E, 0x00] + [0] * 15),  # change host to 1
                    bytes([0x11, 0x01, 0x09, 0x1F, 0x01] + [0] * 15),  # change host to 2
                    bytes([0x11, 0xFF, 0x09, 0x1D, 0x02] + [0] * 15)]  # change host to 3
            }, {
                'name': 'MX Anywhere 3 Bluetooth',
                'receivers': hid.enumerate(0x046D, 0xB025),
                'command': [
                    bytes([0x11, 0xFF, 0x0A, 0x1A, 0x00] + [0] * 15),  # change host to 1
                    bytes([0x11, 0x01, 0x0A, 0x1E, 0x01] + [0] * 15),  # change host to 2
                    bytes([0x11, 0xFF, 0x0A, 0x19, 0x02] + [0] * 15)]  # change host to 3
            }
        ]