Lights Pi 2.24: the show features were the easy part featured image

Lights Pi 2.24: the show features were the easy part

December 04, 2026 · 9 min read

Twenty-one releases of show features, and the bugs that mattered most were in a power supply, a green lock and QLC+’s own web server.

From 7:29 PM on November 20, every scene change on the studio rig failed. So did every colour change and every channel read. QLC+ was fine, the lights held their look, and the control server’s /healthz said qlc_ws: true the whole time. It stayed that way for three days.

Lights Pi turns a Raspberry Pi, an ENTTEC DMX USB Pro and a headless QLC+ into a lighting controller people can use without learning DMX. The first post covered provisioning, the landing page, fixture groups, AI scene generation and the Wi-Fi watchdog. It ended on an MCP server as the next step.

Since then there have been 21 releases, v2.14.1 to v2.24.4, across 275 commits. Eighteen of those releases landed between November 12 and December 2. The control server has 1,768 tests and the MCP server has 87 tools.

Most of the release notes are show features. The work that decided whether any of them could survive a show sat lower down, in a Pi 3 that browns out dozens of times a day, an event loop that froze for good, and a QLC+ build that stops taking connections after its 30th.

From scene buttons to a show you can call

In July, Lights Pi was scene buttons and a chat box. An operator running a show needs cues taken one at a time on the stage manager’s call, with fades that keep going if the tablet drops off Wi-Fi. Most of v2.19 to v2.22 built that.

The cue stack editor for "Act 1": a now and next panel with GO, Back and Release, and rows of numbered cues (1, 1.5, 2, 2.5, 3) with label, scene, fade, out, delay and follow times, a cue note, and effects to start or stop on GO.
A cue stack in the editor. Cue 2 is fading in over 20 seconds. Cue 2.5 stops every effect when it fires.
  • Cue stacks. Numbered cues fired with GO, each with its own fade, delay and follow, with room for a 2.5 between 2 and 3. Fades run on the Pi, so a dropped iPad doesn’t stop one halfway.
  • Show mode. /show is a locked page for the iPad. It has the current and next cue in large type, a big GO, Back and Blackout, and a red banner when the Pi stops answering for two seconds. A Bluetooth page-turner pedal works as GO, and leaving takes a long press on Exit.
  • Pre-show check and snapshots. One verdict on the DMX interface, the QLC+ link, power, temperature, disk and Wi-Fi, plus a fixture walk that flashes each light in turn. A snapshot saves the whole show in one file. Restoring one saves the current show first, so a restore can be undone.
  • Cue list timelines. Drag cues to re-time them, scrub the ruler to preview a moment on the lights, and see the show’s audio as a waveform. The browser draws the waveform, so the audio never goes to the Pi. Over OSC, a cue list can follow QLab’s or a DAW’s playhead.
  • Palettes and effects. Change a palette once and every cue that uses it changes. Effects run on top of the look and spread left to right across the room plan. There are four kinds: dimmer wave, dimmer pulse, rainbow and two-colour fade.
  • Crossfades and a blind console. Scenes fade in over their QLC+ fade time. Blind holds fader moves back from the rig until you send them or save them to a cue.
Lights Pi show mode on a dark screen: cue 2 "Sunset wash" fading with 13.4 seconds left, cue 2.5 "Ocean" up next, a large orange GO button, and Back and Blackout buttons.
Show mode, the locked page for the iPad.
The cue stacks list with Act 1 running on cue 2, and below it the palettes list: Warm wash, Opening look, Cool blue (used by one cue) and Half intensity, each with Apply, Update and Rename.
Cue stacks and palettes. Each palette shows which cues use it.
The Effects panel: "Front wave", a dimmer wave on three fixtures at 123 BPM, marked running, and "Back rainbow" stopped, each with its OSC address, above a form for a new effect with type, fixtures, BPM, beats per cycle, size, spread and order.
Effects run on top of whatever look is up, each with its own OSC address.

More ways to press GO

The MIDI and OSC listeners call the same lighting functions the web UI and the MCP server already use. Neither has lighting logic of its own.

  • MIDI. The MIDI tab shows connected devices and live values. Press Learn, move a control, and it’s bound. A foot pedal can take stack GO and Back.
  • OSC and TouchOSC. The Pi listens on UDP 8000 and sends feedback to whichever device sent the last message. A TouchOSC button on /scene/6 lights up whenever scene 6 is active, with no scripting.
  • Audio. A USB mic drives a flash on kicks or snares that fades back to the look, colour that follows loudness, or bass, mids and highs split across the fixtures.
  • Stage. A plan of the room shows each fixture in the colour it’s putting out right now. Select fixtures on the plan and typed commands reach only those.
  • Agents. The MCP server’s 87 tools cover cue stacks, palettes, effects, the pre-show check and resuming a show. The in-app chat got the cue stack tools too.
The OSC panel in Diagnostics: listening on UDP 8000, feedback sent back to the last sender on port 9000, and a list of recent messages such as /stack/go, /master 0.65, /scene/sunset and /effect/front-wave with what each one did.
The OSC panel lists every message that arrived and what it did.

The phone layout was rebuilt in v2.17 around a thumb: a bottom tab bar, a full-width Blackout bar on every tab, and 44px grab areas on sliders. Each install can set its own name and accent colour in .env. Fonts come from the Pi, so the page looks the same with no internet, and gzip took the main page from about 250 KB to about 47 KB.

The Pi is the weakest fixture

The studio Pi is a Pi 3 Model B driving the ENTTEC over USB. Its kernel logged 1,104 under-voltage events in about 12 days of uptime before December 2. A quiet day has 31 to 51. November 25 and 26 had between 148 and 198 each.

A brown-out can restart the control server, QLC+ or the whole Pi in the middle of a show. The Pi has no clock battery either, so after a cold boot it doesn’t know the time until NTP answers. The real fix is a better power supply, and that’s still open. Until then the software’s job is to make a restart cheap.

  • The server saves where the show is: the cue stack position, Blackout, running effects and cue list clocks. After a restart the stack comes back on the right cue, and show mode offers Hold to resume for the rest.
  • Blackout survives a reboot. Before v2.23 the last lit look came back up.
  • Every data file is written atomically. A file that can’t be read is set aside instead of overwritten.
  • The pre-show check reads the kernel log and says how many brown-outs there were in the last hour and the last day.

Three days of failed scenes

Back to November 20. The control server runs under gunicorn with an eventlet worker, which swaps ordinary locks, queues and futures for single-threaded “green” versions. The QLC+ link runs its asyncio loop on a real OS thread, and that thread was using some of the green versions without anyone meaning it to. Logging did it, live UI events did it, and so did handing results back to requests.

When that thread and a web request wanted the same lock, eventlet tried to switch threads and raised greenlet.error: Cannot switch to a different thread. The QLC+ thread stayed parked forever. /healthz only checked that the WebSocket was open, and it was.

v2.16.2 took every green primitive off the QLC+ thread. It added a watchdog that probes the link after three timeouts in a row and replaces it if it can’t answer, and /healthz now returns 503 while calls stall. The tests run the link under a real eventlet monkey-patch in a subprocess, the way gunicorn runs it on the Pi. With the fix reverted, the logging test reproduces the freeze.

A watchdog that caused what it watched for

v2.23 added a second watchdog, for QLC+ itself. Every 30 seconds it opened QLC+’s web page to check the server still took connections. From then on, QLC+ stopped accepting connections 14 to 16 minutes after every start. Before, the same lockup took six to ten days.

Thirty connections, one every 30 seconds, is 15 minutes. QLC+ 4.14.1, the version Debian trixie ships, stops accepting connections after its 30th. Upstream fixed it in 4.14.2. The watchdog had turned a weekly lockup into a quarter-hourly one.

v2.24.1 stopped the watchdog polling QLC+. The real fix needed a newer QLC+, and there wasn’t one to install. Debian’s 4.14.4 packages need a newer Qt than trixie has, there’s no trixie backport, and the Raspberry Pi archive doesn’t carry QLC+ at all.

So v2.24.4 ships its own. scripts/qlcplus/build-debs.sh rebuilds 4.14.4 for armhf and arm64 from Debian’s source and trixie’s packaging, in Docker, so anyone can reproduce the packages. setup.sh downloads them from a GitHub release, checks each SHA-256, and holds them so apt upgrade can’t swap them back. If the download fails, it installs the distro’s 4.14.1 and says so.

Newer QLC+ brought one more surprise. From 4.14.2, its channel-value replies carry an extra override flag per channel, and the old parser misread every channel. After a QLC+ restart, the last-look restore thought the lights were already on and skipped them. Then the saver wrote the misread values over the saved look. v2.24.3 reads both formats, and its upgrade notes say to deploy it before upgrading QLC+.

Honesty check: none of this has run a show

Every feature above passes in CI. Almost none of it has been tried on the real fixtures from the iPad. Cue stacks, show mode, palettes and effects haven’t been through a full-length show. The MIDI tab was tested with a virtual controller, audio reactivity hasn’t heard a real microphone, and the generated TouchOSC layout in PR #131 has only been opened in TouchOSC on a Mac.

The v2.24 audit is the other admission. A review of everything built so far filed 21 issues, #161 to #181, and most of them only bite during a show. Blackout didn’t stop audio effects. Two level reads at the same moment both timed out, so a fade could start from zero. Password mode shut out the MCP server. They’re fixed, and every one was found by reading code, not by running a show.

There’s now a rig run sheet that goes through all of it in one sitting, with pass criteria for each step. The power supply still needs replacing.


The features went roughly to plan. The time went into the layer underneath. A Pi on a weak supply, an event loop that swallowed a thread and a QLC+ that counts to 30 all looked healthy from the top. A show feature is only worth something once a restart in the middle of a cue costs one button press.

To upgrade an existing install from your workstation, deploy first, then move QLC+ to 4.14.4:

git pull origin main
bash scripts/deploy.sh
./lightsctl.sh update-qlc

If you run QLC+ headless on Debian trixie, I’d like to know whether you’ve hit the 30-connection wall and what you did about it. And if you’ve taken a Pi 3 through a full show on a marginal supply, tell me what failed first.

Griffen Fargo headshot

Griffen Fargo

Published

Share
Keep Reading

Discussion

Have thoughts? Drop them in.

Comments are powered by Disqus. Sign in once, comment anywhere.

Loading comments…