evidence · 6.2 KiB

README.md

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

Open raw source

Notification-shade pulls after the compositor change

Evidence class: board, injected native touch. All captures were taken on 2026-10-22 on the board’s DSI panel in landscape: 1232x568 logical pixels, 52.19 Hz (19.16 ms per refresh), max_render_time 12 unless noted, one online CPU. There was no real glass and no camera.

Workload

shade-pull.py is derived from the drawer workload. It drives a persistent uinput touchscreen at the measured real-finger report rate (8.14 ms). Each of 10 pulls:

  1. starts one contact in the top edge band, at y 4;
  2. drags it down 400 px over 400 ms and releases;
  3. leaves the shade open for 1.5 s;
  4. hides it with k230-shell-rust --surface hide, then pauses 1 s.

run.sh runs the workload and then cadence.py, which reports frames presented during contact. For n3 and later it also armed the compositor benchmark. gaps.py reports presented-frame gaps from the start of each pull until 600 ms after release; its output is in gaps.txt.

RunBuildNotes
baseg2yjvzv4boot default after the compositor change
n, n2, n3sgjam1h0k230-settings status without pgrep, test-activated; n3 with the compositor benchmark
n-mrt15, n-mrtoffsgjam1h0max_render_time 15 / off at runtime, restored to 12 afterwards
bootsgjam1h0boot default, ordinary boot after promotion; compositor benchmark armed

The pgrep cost

prof-base profiled the shell’s processes and their children during the 10 pulls on g2yjvzv4. pgrep used 789 ms of sampled CPU, about 79 ms per pull. The native status helper, k230-settings and k230-settings-s, used 282 ms between them.

The helper (nix/settings-status.c) ran pgrep -u UID -x wvkbd-mobintl to decide whether to offer the keyboard toggle. procps reads every /proc entry in full, and its stacks show glibc loading gconv modules to compile its regular expression.

The replacement reads each /proc/PID/comm. Only for a name match does it read status, to compare the effective UID. Host tests check it against a fake /proc (tests/test_settings_status.py).

On the board, as the shell user, five consecutive k230-settings status calls averaged:

Both reported the keyboard as action, with wvkbd running.

Results

RunDistinct fps in contactInterval median / p95Client callback → commit medianPull + 600 ms: median / p90 / max gapSway repaint median
base33.422 / 32 ms21 ms23 / 38 / 53 msnot armed
n33.624 / 38 ms6 ms33 / 38 / 50 msnot armed
n233.233 / 38 ms5 ms34 / 38 / 53 msnot armed
n334.820 / 37 ms7 ms22 / 36 / 39 ms13.1 ms, 699,776 px every frame
n-mrt1534.820 / 38 ms20 ms—13.0 ms
n-mrtoff34.322 / 33 ms18 ms—13.0 ms
boot34.020 / 37 ms8 ms29 / 37 / 58 ms13.0 ms, 699,776 px on 155 of 158 frames

Promotion to the boot default

On 2026-10-22, sgjam1h0 (built from commit 31fbcb61; master at e7673f86 evaluates to the same path) replaced g2yjvzv4 as the persistent system. promote.py is the compositor promotion script with the two system paths and the state directory changed. It ran as root under the board lock, swapped the one system reference in each of /boot/k230-tdisplay.dtb and /boot/bootargs.txt, kept rollback copies, rooted both systems, checked that no other /boot file changed, and set the system profile to system-87-link.

An SSH-initiated reboot booted sgjam1h0 as both /run/booted-system and /run/current-system, with shell and shell-ui active, no failed units, sway at SCHED_RR 1, and k230-settings status reporting the keyboard as action. See the receipt, boot ID 8c8c0609….

run-boot repeated the ten pulls on that boot. It matches n3: 34.0 distinct fps, interval median 20 ms, client callback → commit median 8 ms, sway repaint median 13.0 ms. One pull had a 58 ms gap (three refreshes). Its grim captures (before, shade-open, after-close) were normal and are not committed.

Rollback: write the copies under /var/lib/k230/status-promote-20261022/promotion/rollback/ back to /boot, then run nix-env --profile /nix/var/nix/profiles/system --set with g2yjvzv4.

Limits