Home

Note ·

DaveKVM: remote access to a PC for around $14

A budget KVM for a home lab: video, keyboard, mouse and automation.

Have a server or a few in your homelab, and tired of running up to the attic or down to the basement whenever one of them refuses to boot? I certainly was. What I needed was a KVM like the ones you get with servers, so I could see what was going on and deal with it without leaving my desk.

For a while, the power on my street kept going out. I had my BIOS set to turn the computer back on when power returned, but sometimes an outage was followed by a BIOS/UEFI settings checksum error. The machine would stop during startup with “Hit F1 to continue”. So I had to go over there, hook up a monitor and press F1. Or figure out what else had gone wrong, like the time an Intel LAN driver crashed under Linux.

The solution has been around for years: a KVM over the network. You can see the screen and control the computer before the operating system starts, where RDP can’t help. Ready-made devices can be expensive, though. The ones I looked at started at around 1,500 PLN, roughly $364. Some solutions are also designed for specific server hardware and won’t necessarily work with an ordinary motherboard.

That’s how DaveKVM came about: my cheap, slightly improvised KVM that does most of what I need. And if I find a feature missing, I can always add it.

What can it do?

The basics are video over the network and mouse and keyboard control, both in BIOS/UEFI and later in the operating system. The panel is available in Polish, English, German and Czech. You can find its source on GitHub .

And if you’re wondering why Czech: I simply like Czech culture.

I also put together a simple web panel. It lets me watch several devices, enable control and choose how the video is encoded, depending on the available hardware and the latency I’m aiming for.

Automation matters to me too. I wanted an agent to be able to capture a screen and send keystrokes to a real computer, for example when diagnosing a failure or working on software. Sometimes access to a physical machine is more useful than a VM or RDP, especially when Direct3D or OpenGL is involved.

Automation in Python

In my setup, video and control are available over SSH. Here’s an example using pony-grabber and pony-kvm. Change the host name and device ID to match your own setup. SSH uses your existing configuration and keys, so there is no password in the code.

Why “pony” in the command names? One of the computers running my lab is a mini PC that I simply named Pony. The name stuck, haha.

python
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import json
import subprocess
from pathlib import Path

host = "kvm-host"
device = "video0"

frame = subprocess.run(
    ["ssh", "-T", host, "pony-grabber", "snapshot", device],
    check=True,
    capture_output=True,
)
Path("frame.jpg").write_bytes(frame.stdout)

with subprocess.Popen(
    ["ssh", "-T", host, "pony-kvm", "--device", device],
    stdin=subprocess.PIPE,
    stdout=subprocess.PIPE,
    text=True,
) as session:
    ready = json.loads(session.stdout.readline())
    if ready.get("event") != "ready" or ready.get("device") != device:
        raise RuntimeError("KVM session is not ready for the selected device")

    command = {"action": "key", "key": "F1"}
    session.stdin.write(json.dumps(command) + "\n")
    session.stdin.flush()
    response = json.loads(session.stdout.readline())
    if not response.get("ok"):
        raise RuntimeError(response.get("error", "KVM command failed"))

The example saves a frame and presses F1 on the selected computer. Naturally, it’s worth checking what’s on screen first. The interface also supports typing text and moving the mouse. This is an example from my setup, so command and device names may differ in yours.

What went into it?

One setup with the cheaper capture device cost me around 58 PLN, or about $14. The prices below add up to 57.39 PLN, excluding delivery and any extra cables. The more expensive capture device raises the total. Dollar conversions are approximate, based on the exchange rate in early December 2026; prices and availability can change. You also need a computer to run the capture device and panel, which isn’t included in that total.

There is a downside: on the capture devices under 100 PLN that I tried, MJPEG was the only way to get a decent frame rate. Uncompressed video topped out at 10 frames per second. You can see the compression in the image, but the capture device still does the job for viewing and controlling a server.

To make matters worse, sellers advertise uncompressed 1080p at 60 frames per second, but after plugging the device in, it turns out to max out at 10. The advertised 60 only works with MJPEG. So the hunt for a decent capture device without JPEG artifacts is still on.

It’s not the most elegant box in the world, but when the computer stops and asks me to press F1, I no longer have to find a monitor and run up to the attic. That’s exactly what I wanted.

Comments

I support a safe internet. You are welcome to join a thoughtful discussion with respect for others.

The Polish and English versions share one discussion. Comments remain in their original language; nicknames are not verified identities.

No comments yet. You can be the first to contribute.