# deskisplay

> An old mini PC on my desk that netboots NixOS into RAM and shows notifications and cameras. It dims when I leave, takes AirPlay, and works by hand gestures it reads off a webcam, on a 2017 Pentium.

- Source: https://nabkey.com/tinkerings/deskisplay
- Author: Chris Nabkey
- Published: 2026-11-04
- Built: 2026
- Status: shipped
- Stack: NixOS, iPXE, Go, Chromium, cage, OpenCV, YuNet, MediaPipe, shairport-sync, Frigate, Home Assistant, k3s

<figure>
  <video controls playsinline preload="metadata" poster="/tinkerings/deskisplay/poster.jpg" src="/tinkerings/deskisplay/deskisplay-demo.mp4"></video>
  <figcaption>Almost three minutes off the display's own screen and webcam. The sound is only the chimes, and some of it is doctored, which I get to below.</figcaption>
</figure>

I had an old mini PC and wanted something at my desk that could show
notifications, and bring up the driveway camera when somebody walks up. I built
it with Claude Code (Opus 5.5) over a couple of evenings.

It has no OS installed. Nothing on the machine persists at all, and a reboot is both
the only update and the only repair.

> **The mini PC**: Pentium G4560 (2 cores, 4 threads), 32 GB of DDR4, HD Graphics
> 610, on the newest firmware I could find for it, from 2019. Plus a Logitech C920
> and a 3440×1440 Samsung ultrawide.

<figure>
  <img src="/tinkerings/deskisplay/feed.jpg" alt="The display: a large clock on the left, six notification cards on the right with a red-edged storm warning on top, the Vision readout in the corner and an AirPlay badge." loading="lazy" />
  <figcaption>The idle screen, with the Vision readout on. These notifications are made up for the picture, see below.</figcaption>
</figure>

## Architecture

<figure class="diagram">
  *Diagram: deskisplay architecture: a pod on the k3s node serves the boot files over TFTP and HTTP. A service on the same node takes notifications and Frigate and Home Assistant events and serves the page. The display runs Chromium showing that page, and its webcam agent reports presence and gestures back as numbers only.* ([view it on nabkey.com](https://nabkey.com/tinkerings/deskisplay))
  <figcaption>Once it has booted it doesn't need the boot pod again. The page comes from the service, so most changes reach the screen without a reboot.</figcaption>
</figure>

## Netbooting on the stock firmware

I looked at coreboot first. Mainline supports the H110M-DVS and not this board, and
the one patch for it was abandoned without ever being tested on hardware, so that
was the end of that. The stock UEFI can PXE boot, which turned out to be plenty. It
pulls a 310 KB `snponly.efi` over TFTP, and that's iPXE, which then fetches a 14 MB
kernel and the initrd over HTTP, from a pod on my k3s node.

The first initrd was 1.6 GB, because `linux-firmware` is enormous, and it wouldn't
load in 4 GB of RAM in a test VM. Cutting firmware down to only i915's Skylake and
Kaby Lake files got it to 724 MB.

Anyone on my LAN can download that image, so it holds no secrets. A merge to `main`
builds a new one in CI, and the display picks it up next time it reboots.

## Sound

The AirPlay receiver was running and connecting and I couldn't hear any music. Two
software volumes were stacked on top of each other, one at −24 dB and one at −29 dB. Then the status badge in the corner of the screen ignored pause and
disconnect, because it was watching port 7000 and the phone just keeps that
connection open. It reads shairport-sync's metadata events now.

The volume unit failed too. It ran too early, because `sound.target`
fired for the webcam's microphone before the actual sound card showed up.

Music dips under a chime now. It took a few tries to get the levels right.

## Seeing me, cheaply

A G4560 doesn't have AVX, and it's going to be doing this all day, so I cared about
the cost. These are measured on the machine:

| Model | Finds | Per look |
|---|---|---|
| YuNet at 320×240 | a face | 10.7 ms |
| MediaPipe person detector | a body | 69 ms |
| MediaPipe palm detector | a hand | 55 ms |
| MediaPipe hand landmarks | 21 points | 28 ms |

YuNet runs once a second. The body detector only runs if there's no face (I might
be looking away), and when the room is empty it waits for something in the frame to
change, because it cost about 9% of a core otherwise. After 3 minutes with nobody
there, the monitor dims to 0 over DDC/CI and notifications stop chiming and wait
for me. Sitting here with my hands down it uses about 4% of a core.

<figure>
  <img src="/tinkerings/deskisplay/back.gif" alt="The dim screen brightening when someone comes back to the desk." loading="lazy" />
  <figcaption>Coming back to the desk.</figcaption>
</figure>


No frame gets written or sent anywhere. Only "present", "away" and some numbers
leave the box. I did break that once on purpose, with my OK, saving hand crops to
RAM for tuning, and a few of them caught part of my face. We deleted them, and that
tool isn't in the image.

## Gestures

The display needs some input on an already-occupied desk,
but I don't want another keyboard cluttering it up, or to have to reach for one while
I'm working on something else. So I hold up a hand without looking away from what I'm doing.

A fist opens a menu, you hold up one, two or three fingers to pick, a thumbs down
goes back, and an open palm dismisses or closes whatever's up. They're plain rules
over the hand landmarks, with no trained classifier, and each one has to be held for
a second. The edges of the screen brighten toward the moment it fires, and little
icons along the bottom say what each gesture does on the current screen.

<figure>
  <img src="/tinkerings/deskisplay/menu.jpg" alt="The menu open over the clock, offering Cameras, Notifications and Display, with the hand drawn in the readout." loading="lazy" />
  <figcaption>A fist opens the menu.</figcaption>
</figure>

<figure>
  <img src="/tinkerings/deskisplay/dismiss.gif" alt="An open palm is held, a bar fills, the edges glow blue, and the top notification is dismissed." loading="lazy" />
  <figcaption>Hold an open palm: the bar fills, it fires, and the top card goes away.</figcaption>
</figure>

<figure>
  <img src="/tinkerings/deskisplay/menu-nav.gif" alt="One finger held on the menu moves it to the cameras list." loading="lazy" />
  <figcaption>One finger on the menu picks the first thing on it.</figcaption>
</figure>


The first version was jittery. It looked at 5 frames a second, ran the palm search on
every one, and blanked the display on any missed frame. Now, once it has a hand, it follows the crop from the last
frame's landmarks at 10 fps and skips the palm search, which is how MediaPipe's own
pipeline does it. It looks really good for now. It uses about 10% of a core over a minute of
some hand movement.

A menu item called Vision readout draws what it sees in the corner, with the scores
and the skeleton of my hand. It's off by default, and it definitely belongs in the demo.

<figure>
  <img src="/tinkerings/deskisplay/readout.gif" alt="The Vision readout as a real hand goes from one finger to a fist to a thumbs down, with the skeleton following it and the screen edge glowing." loading="lazy" />
  <figcaption>This one is real, from a recording of my actual hand (one finger, a fist, a thumbs down). The picture in that box is only numbers. No frame leaves the machine.</figcaption>
</figure>


## The demo is doctored, a little

So you know what you're watching: the video comes off the display's own webcam and
screen, with a REC badge up the whole time. The person and van in the driveway
clip are blurred, because neither of them agreed to be in this. My garage needs to be cleaned, and it was easier to remove some
clutter with an image model than with my hands like some sort of barbarian. Gemini
cleaned up one frame of it, and that frame sits under the real overlays with some added grain to look live. The
caption says it's retouched.

I also muted the music in that video. And the chime when I walk back in was layered in afterward,
because that take doesn't have one.

I don't know why yet. It's supposed to chime, and it did in an earlier test, so that
could be a side effect of how the recording starts, or a real bug.

The stills and most of the GIFs here are the real page, in Chrome on another machine,
fed made-up data by a throwaway copy of the service. I wrote those notifications, and
the hand in those is a test fixture with a little wobble. The piano piece on the badge
was never playing either.

<figure>
  <img src="/tinkerings/deskisplay/driveway.jpg" alt="A driveway camera replay with a person and a van blurred out, next to the notification list." loading="lazy" />
  <figcaption>The driveway replay, same clip as the video, same blurs.</figcaption>
</figure>

## What's left

- A real person in the driveway, start to finish. So far that's only been a replayed clip.
- Sitting at the desk with my face out of view. The body detector might not catch that.
- It's running 50 Hz over HDMI. DisplayPort may do better. I haven't tried.
- Facial recognition, maybe. I haven't built it.
