evidence · 6.2 KiB

README.md

Committed at docs/evidence/interaction-jank/drawer-scroll/README.md. This is what grounds the requirements that cite it.

Open raw source

Sustained app-drawer scroll on the installed board: about 10 frames per second

Evidence class: board, injected native touch. A persistent uinput touchscreen sent one report every 8.14 ms, the measured real-finger rate (touch-rate). There was no real-glass interaction and no camera recording for this measurement.

The runs took place on 2026-10-22 between 03:23Z and 03:37Z. The system was /nix/store/8xkkpma4fvgw4fi6pl8qaz7d9d75kcdi-nixos-system-nixos-26.11.20260919.20b1ddd, the persistent profile installed by the 12 ms allowance change. Output DSI-1 was in landscape (1232x568, transform 270) with max_render_time 12. One CPU was online, and 19 apps were in the drawer.

Result

The drawer misses its ~20 ms target, and also exceeds the top of the design’s 17.3–34.6 ms estimate (app-drawer review §3.4).

RunK230_DRAWER_FRAME ms= during contact, median / p95 / maxSamplesPresented frames per second during contactFrame interval within one drag, median / p95
run238.86 / 53.35 / 57.65 ms728.3197.4 / 118.4 ms
run339.49 / 53.37 / 75.78 ms728.3595.3 / 110.0 ms
run439.06 / 52.88 / 54.73 ms728.3597.2 / 111.4 ms
run6 (traced, 30 s)39.56 / 52.64 / 55.25 ms368.35100.7 / 124.7 ms

Every one of the 252 contact samples is over 34.6 ms.

CPU over the 60.6 s of run4, of which 31.4 s was contact (fractions of the one core): shell-ui 0.291, sway 0.098, systemd-journald 0.031, injector 0.016. Whole-system busy time was 0.481. Almost all of that load falls inside the contact windows, so the core is close to saturated while the finger is down.

Where the time goes (traced run6)

The installed client’s opt-in recorder (runtime_trace.rs, thread-CPU and wall time per span) was enabled with a volatile drop-in for one 45 s window. Over the 15.7 s of contact, with no dropped events (trace-analysis.json):

Workload and commands

drawer-scroll.py is run as root under the exclusive board lock:

flock -n /tmp/k230-board.lock "$PY" drawer-scroll.py RUN_DIR "$SYSTEM" 60

$PY is the system closure’s python3. The script:

  1. Checks the installed system and the landscape output.
  2. Opens the drawer with k230-shell-rust --surface drawer.
  3. Repeats four drags at x=616 for the given duration, with 600 ms between them:
    • a 250 ms flick from y=470 to y=130;
    • the same flick back;
    • a 900 ms drag from y=450 to y=150, held for 150 ms;
    • the same slow drag back.
  4. Closes the drawer with --surface hide.
  5. Saves gesture windows, cgroup CPU counters (from run3 on), grim captures, and the shell-ui journal.

analyze.py replays each run:

python3 analyze.py.txt runN

traced-run.py wraps a 30 s workload. It writes /run/systemd/system/shell-ui.service.d/90-drawer-jank-trace.conf (K230_TRACE_PATH, K230_TRACE_SECONDS=45) and restarts shell-ui once. It then removes the drop-in and restarts shell-ui normally. The sway PID was unchanged (1049) throughout. trace-analyze.py replays the trace:

python3 trace-analyze.py.txt run6 run6/trace.json

Captures from run4 show the drawer open (drawer-open.png), scrolled (mid-scroll.png) and closed afterwards (after-close.png).

Discarded and failed attempts

Owned board files (/var/lib/k230/drawer-jank, /var/tmp/drawer-jank-*) were removed afterwards. Both services were active, and no shell-ui drop-in remained.

Limits