Back to Engineering Blog
Engineering Field Notes 3 min read

Dead Buttons, Healthy Touchscreen: Ruling Things Out on a Kiosk

On-screen buttons on the kiosk stopped responding to touch. Our own recent animation work was the obvious suspect, and it was innocent. A first test that appeared to show a dead digitizer was invalid, because the compositor holds an exclusive grab on the input devices.

Jason NevillBy , Houston, TX
#Kiosk#Wayland#Touch#Debugging

Key Architectural Takeaways

  • Check that your diagnostic is valid before trusting its result; a compositor holding an exclusive grab starves other readers.
  • Test each suspect directly: backend endpoints, the digitizer with the service stopped, and the page's event handling.
  • When the real fix is a large upgrade, a documented deferral with a workaround is a legitimate decision.

The symptom

The on-screen buttons on the kiosk did not respond to touch. The recent change was animation work, so it was the first suspect. We assumed regression.

What we ruled out

  • The animation changes. Every button's backend endpoint was called directly and behaved correctly.
  • The page's event handling. The 3D controls library is bound to the canvas element, which is a DOM sibling of the button panel and not an ancestor, so it structurally cannot intercept a tap on the buttons.
  • A dead digitizer. The first test read from the touch devices while someone tapped and got zero bytes on every one. That looked like dead hardware. It was an invalid test: the kiosk's Wayland compositor, cage, holds an exclusive grab on the input devices while it runs, so nothing else can read them. We repeated the test with the service stopped. A single real tap produced 2,544 bytes immediately. The hardware, kernel and driver are healthy.

Where it actually is

The fault sits somewhere in cage 0.1.4's forwarding of Wayland touch events to Chromium. The compositor offers no verbosity flag that would show more without patching and recompiling it.

Why we did not push further

We checked the upgrade path before proposing it. There is no backports build of cage for this release, and the next version exists only in newer releases with a much newer graphics library dependency, which means a cross-grade or a full OS upgrade, not a routine package install. The owner's decision was to defer again, using the mouse, trackpad or the physical hotkeys to verify kiosk work until a real OS upgrade of that machine is worthwhile. The deferral and the workaround are both recorded.

Instability we noted on the way

Two unrelated signs turned up while logging the session: every service stop crashed through a wl_display_terminate assertion instead of shutting down cleanly, and recurring DRM page-flip errors appeared every few minutes. Neither was caused by that day's work, and both went into the notes for later.

Verification

Each ruled-out suspect was tested directly, and the digitizer result came from the repeat with the service stopped.

Takeaway

A test that returns nothing may be a test that could not have returned anything. Ask whether your diagnostic could have succeeded before you believe its failure.

Follow the build on LinkedIn or by RSS.

All Articles

Follow the build

Questions about the build, or spotted something we got wrong? Find us on LinkedIn and GitHub.