# The study behind "Liner 1.9: now-playing e-paper for Volumio 4" # https://ry-ops.dev/posts/2026-11-08-liner-1-9-now-playing-e-paper-for-volumio-4/ # # Two kinds of evidence. Files labeled kind: run were captured live on # 2026-11-08 against the author's Liner (v1.9.0) on the home network, or against # the Liner git repo. Files labeled kind: transcript were copied from the # 2026-11-07/08 Claude Code session in which v1.6.0 to v1.9.0 were built and # measured; they were not re-run. v1.5.0 was not re-flashed: its cells come from # its source code at the v1.5.0 tag. [study] title = "Liner 1.9: now-playing e-paper for Volumio 4" date = "2026-11-08" tester = "Claude Code, on the author's Mac, driving the author's Liner over the home network" platform = "M5Stack PaperColor (ESP32-S3R8, Spectra 6 e-paper) running Liner v1.9.0; Volumio 4 on a Raspberry Pi; macOS for the captures" setup = "Liner v1.9.0 was already flashed (over the air) on the device. Nothing was installed for the captures; they use curl, dns-sd, git and the macOS image APIs already on the Mac." not_tested = "v1.5.0 on hardware (it was not re-flashed; its cells come from its source); album art from local files or Spotify; a pre-fetched cover being used on a real playlist change; the captive-portal pop-up on a phone; the 5-second button hold." url = "https://ry-ops.dev/posts/2026-11-08-liner-1-9-now-playing-e-paper-for-volumio-4/" [redact] "~/Projects" = "~/ry-ops/projects" "~" = "~/ry-ops" [[subject]] id = "v150" name = "Liner 1.5.0" version = "1.5.0" repo = "https://github.com/m5stack-lab/Liner/tree/v1.5.0" site = "https://github.com/m5stack-lab/Liner/releases/tag/v1.5.0" color = "#94a3b8" [[subject]] id = "v190" name = "Liner 1.9.0" version = "1.9.0" repo = "https://github.com/m5stack-lab/Liner/tree/v1.9.0" site = "https://github.com/m5stack-lab/Liner/releases/tag/v1.9.0" color = "#2dd4bf" # ---------------------------------------------------------------- capabilities [[capability]] id = "dashboard-during-refresh" label = "The web page answers while the e-paper refreshes" [capability.cells] v150 = { status = "not-found", note = "Each redraw ends in waitDisplay(), which blocks until the 15 s refresh is over; nothing serves the web page meanwhile.", looked = "src/main.cpp at v1.5.0", evidence = ["006"] } v190 = { status = "tested", note = "panelBusy was true and /api/status still answered in 35 to 167 ms.", evidence = ["012", "006"], excerpt = "08:24:46 \"volumio\":true \"panelBusy\":true 200 0.035053s" } [[capability]] id = "cover-cache" label = "Album covers are cached" [capability.cells] v150 = { status = "not-found", note = "Every redraw downloads its cover and frees it.", looked = "src/main.cpp at v1.5.0", evidence = ["008"] } v190 = { status = "tested", note = "The last redraw's cover came from the cache, with no download.", evidence = ["001", "016"], excerpt = "\"artCached\": true" } [[capability]] id = "prefetch" label = "The next covers are fetched from Volumio's queue ahead of time" [capability.cells] v150 = { status = "not-found", note = "No queue request.", looked = "src/main.cpp at v1.5.0", evidence = ["008"] } v190 = { status = "documented", note = "getQueue and PREFETCH_AHEAD = 2 are in the source. A pre-fetched cover being used on a playlist change wasn't observed.", source = "https://github.com/m5stack-lab/Liner/blob/v1.9.0/src/main.cpp", evidence = ["008"] } [[capability]] id = "poll-2s" label = "Notices a track change within 2 seconds" [capability.cells] v150 = { status = "not-found", note = "Polls every 5 s.", looked = "include/config.h at v1.5.0", evidence = ["007"] } v190 = { status = "tested", note = "Manual track changes were noticed 0.5 s in. Album tracks running into the next read about 15 s; the cause isn't confirmed.", evidence = ["016", "017", "007"], excerpt = " 501 2125 false 594 3189 14760 a newly loaded album" } [[capability]] id = "ota-switch" label = "Turning OTA off stops it, advert and all" [capability.cells] v150 = { status = "not-found", note = "ArduinoOTA.begin() runs whatever the switch says; the switch only skips handle().", looked = "src/main.cpp at v1.5.0", evidence = ["009"] } v190 = { status = "tested", note = "Off: 0 adverts and liner.local still resolved. On: the advert is back.", evidence = ["014", "003", "009"], excerpt = "arduino adverts while off: 0" } [[capability]] id = "password" label = "Optional password for the web page" [capability.cells] v150 = { status = "not-found", note = "No authentication calls.", looked = "src/main.cpp at v1.5.0", evidence = ["010"] } v190 = { status = "tested", note = "HTTP Digest: 401 without the password, in with it.", evidence = ["015", "010"], excerpt = "401 Digest realm=\"Liner\"" } [[capability]] id = "cross-site" label = "Other websites can't change its settings" [capability.cells] v150 = { status = "not-found", note = "No header or origin check.", looked = "src/main.cpp at v1.5.0", evidence = ["010"] } v190 = { status = "tested", note = "A POST without the X-Liner header is refused.", evidence = ["002", "010"], excerpt = "HTTP/1.1 403 Forbidden" } [[capability]] id = "qr" label = "QR codes on the screen and in the dashboard" [capability.cells] v150 = { status = "not-found", note = "No QR drawing.", looked = "src/main.cpp at v1.5.0", evidence = ["010"] } v190 = { status = "tested", note = "The dashboard's QR code decodes to Liner's own address.", evidence = ["004", "005"], excerpt = "decoded: http:///" } [[capability]] id = "volumio-down" label = "Stays reachable when Volumio is down" [capability.cells] v150 = { status = "not-found", note = "Polls a dead host every 5 s with no back-off; each failed poll blocks the loop.", looked = "src/main.cpp and include/config.h at v1.5.0", evidence = ["007"] } v190 = { status = "tested", note = "47 of 50 dashboard requests answered over 100 s; recovered 3 s after the host was fixed.", evidence = ["013"], excerpt = "answered 47 / 50" } [[capability]] id = "toolchain" label = "Built on Arduino-ESP32 3.3 (CVE-2026-42854 fixed)" [capability.cells] v150 = { status = "documented", note = "Built on Arduino-ESP32 2.0.17; the platform wasn't pinned.", source = "https://github.com/m5stack-lab/Liner/blob/main/ROADMAP.md", evidence = ["011"] } v190 = { status = "documented", note = "Pins espressif32 8.0.0, which is Arduino-ESP32 3.3.x.", source = "https://github.com/m5stack-lab/Liner/blob/v1.9.0/platformio.ini", evidence = ["011"] } # The gap: what neither version does. [[capability]] id = "faster-refresh" label = "A faster e-paper refresh" gap = true [capability.cells] v150 = { status = "not-found", note = "The panel runs one fixed cycle.", looked = "M5GFX 0.3.0 Panel_ED2208 driver" } v190 = { status = "not-found", note = "Still 14.76 s on every redraw measured; Liner only stopped waiting on it.", looked = "M5GFX 0.3.0 Panel_ED2208 driver; lastRender timings", evidence = ["016"] } # ---------------------------------------------------------------------- quotes [[quote]] text = "Starts a refresh and returns without waiting for it (15 to 30 s; BUSY is low meanwhile)." url = "https://raw.githubusercontent.com/m5stack/M5GFX/0.3.0/src/lgfx/v1/panel/Panel_ED2208.inl" [[quote]] text = "typedef unsigned char bool;" url = "https://raw.githubusercontent.com/m5stack/M5GFX/0.3.0/src/lgfx/utility/lgfx_qrcode.h" # ---------------------------------------------------------------- replay steps # One track change on v1.9.0, from the last redraw in evidence 001. [[step]] title = "Volumio says the track changed" sub = "Liner polls getState every 2 s" evidence = ["007"] excerpt = "v1.9.0:include/config.h:16:#define POLL_INTERVAL_MS 2000" [[step]] title = "The cover is already in memory" sub = "no download, 0 ms" evidence = ["001"] excerpt = " \"artMs\": 0," [[step]] title = "Decode the cover, draw the text" sub = "about 0.6 s" evidence = ["001"] excerpt = " \"decodeMs\": 565," [[step]] title = "Dither to six inks and send it to the panel" sub = "about 3.2 s" evidence = ["001"] excerpt = " \"transferMs\": 3194," [[step]] title = "The panel refreshes on its own" sub = "14.76 s, while the dashboard keeps answering" evidence = ["001", "012"] excerpt = " \"refreshMs\": 14760,"