Skip to content

tools: judge the netbsd keyboard check by which screen rows change - #832

Merged
techomancer merged 1 commit into
techomancer:mainfrom
steigr:feature/765-netbsd-kbd-check-rows
Nov 22, 2026
Merged

techomancer merged 1 commit into
techomancer:mainfrom
steigr:feature/765-netbsd-kbd-check-rows

Conversation

@steigr

@steigr steigr commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Refs #765. Follow-up to #818.

The keyboard check merged in #818 only works where the console shows the text cursor and no glyphs. That is how NetBSD 11.1 looks under --ci. The 11.99.11 daily draws its menu text on Newport, so the old settle and cursor tracking never matched, and both builds stopped with a setup error instead of a verdict.

tools/tests/netbsd-indy-keyboard.py now judges each key by which screen rows it changes:

  • Down, Down, Up must each change exactly two adjacent text rows: one row further down for the second Down, then the same two rows again for Up.
  • After a the screen changes once and then stays still across six samples.
  • sysinst counts as up once four screenshots in a row are identical.

The change also updates TESTING.md and records the IRIX observation in clanker/devices/ip22-8042-translates-when-command-byte-bit-6-is-set.md. On IP28, IRIX 6.5 leaves the command byte at 0x03 with the keyboard in set 3, so it never translates, and clogin takes letters, Left and Return with the fix.

Results (R4400 Indy, Newport, local runs)

CD before #818 with #818
NetBSD 11.1 FAIL: arrows change nothing; screen changes 5 of 5 times after a PASS: rows (208,239), (224,255), (224,255); 0 changes after a
NetBSD 11.99.11 daily FAIL (same) PASS (same rows)

NetBSD 11.99.10 is no longer published, so 11.99.11 stands in for it. No emulator code changes.

🤖 Generated with Claude Code

NetBSD 11.99.11 draws its console text on Newport under --ci, where 11.1
draws only the text cursor, so the check no longer looks for a lone cursor
block. It waits for the screen to stop changing after the kernel starts,
and requires Down, Down, Up to change exactly two adjacent text rows each:
the highlight moving one row down, one more, and back.

Before and after the 8042 fix, on the 11.1 release and the 11.99.11 daily
(20261122013554Z): fails without it (Down changes nothing, the screen keeps
changing after `a`) and passes with it.

Record in the clanker note that IRIX 6.5 on an Indigo2 IP28 leaves the
command byte at 0x03 with the keyboard in set 3, and that its clogin took
letters, Left and Return with the fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@techomancer
techomancer merged commit 6ec1ebf into techomancer:main Nov 22, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants