- Published
- 10 November 2026
- Project
- hyper-sync
- Tags
- Rust, Linux, Hardware
The LED strip behind my monitor has 65 LEDs: 17 up the right side, 31 across the top and 17 down the left. hyper-sync, the daemon I wrote for it, either runs an effect or mirrors the edges of the screen. Either way, every frame crosses the same USB serial line, and that line sets the speed limit.
One frame on the wire
The Skydimo controller takes a frame of six header bytes followed by red, green and blue for each LED: 201 bytes for 65 LEDs. The line runs at 115200 baud with 8N1 framing, so every byte costs ten bits on the wire.
header 'A' 'd' 'a' 0x00 0x00 0x41 6 bytes
colours R G B × 65 195 bytes
frame 201 bytes = 2010 bits
on wire 2010 bits ÷ 115200 bit/s ≈ 17.4 ms # about 57 frames a second
The controller, a model SK0127 that answers to Moni-A, only accepts 115200. From 230400 baud up to 2 Mbaud it gives no reply.
Why 55 and not 57
Writes don’t wait for the wire, so asking for more frames than the line carries doesn’t fail. The frames queue up instead, and the queue shows up as lag between the screen and the wall. hyper-sync caps the rate at 55, a little under the ceiling, and the frame loop sleeps only for what’s left of each interval. Measured, it holds 45.0 frames a second at 45 and 55.1 at 55, for effects and screen sync alike.
The strip only sees the edges
Screen sync doesn’t need the whole picture, only the zones along the edges where the LEDs sit. The same goes for the animations ported from Hyperion.ng: they draw on an image, and each LED takes the colour at its spot on the edge. That’s why their frames are stored shrunk to 32×18, about 210 KB for all of them.
Screen colours need one more step on the way. They are encoded for monitors, while LEDs are linear, so without a gamma of 2.2 the mid-tones look washed out on the wall.
What it costs
Running an effect at 55 frames a second, with a sound mode on and nothing playing, the daemon uses about 0.8% of one core. Screen sync on a mostly still desktop takes about 2%, and KWin adds about 5% to produce the frames. The lag from screen to wall is one serial frame, about 17 ms, plus up to one frame interval.
The light around the screens on this site uses the same 65-point layout. The real one is on GitHub.