Repository navigation
headless: no window and a serial console on every machine - #895
Open
jamesbraid wants to merge 2 commits into
Open
jamesbraid wants to merge 2 commits into
jamesbraid wants to merge 2 commits into
Conversation
jamesbraid
marked this pull request as ready for review
November 28, 2026 04:02
jamesbraid
force-pushed
the
headless
branch
3 times, most recently
from
November 29, 2026 11:30
6aebba6 to
f3f5439
Compare
jamesbraid
marked this pull request as draft
November 29, 2026 17:47
headless meant something different on each machine. It dropped the Indy's and Indigo2's Newport, unplugged the O2's keyboard and did nothing for the rest. A PROM that finds no keyboard can fall back to its serial console, which is what a run with no window wants, but only the O2 could be put in that state. Every machine with a keyboard now has a keyboard slot and a default keyboard device placed in it, the way the default serial listeners are placed. The Origin 200, Origin 2000 and Onyx2 have no keyboard and no slot. headless leaves the slot empty unless an entry places a keyboard, and --list-slots shows it. The PS/2 controller drops the host's keys and leaves keyboard commands, and the self-test's keyboard byte, unanswered once unplugged, which is what an empty port does. The mouse stays. On the machines whose keyboard is USB (the Origin 3200, Onyx 3000, Tezro and a Fuel with usb_input) the USB keyboard is not attached. workstation::build applies this to every machine's controller. The O2 builds its MACE ports empty as before, from the same placement instead of from headless. A none entry at keyboard leaves the slot empty too, as it does at graphics. With the keyboard left out and a board fitted, the built-in Indy, Indigo2 (IP22 and IP28) and O2 PROMs print their maintenance menu on serial. The same PROMs with a keyboard placed print nothing there. The IP27 and IP35 PROMs use serial either way. The Octane's PROM sends its console to serial itself. A power-on with blank NVRAM stops at "Diagnostics failed. [Press any key to continue.]" until one key arrives on serial1. Whether real hardware stops there too is unknown. The unplugged IOC3 keyboard port reads with bits 31:29 of its receive register clear and answers nothing to 0xf2, 0xff or 0xf4, which is what the PROM's absent-device check looks for; a test pins that. iris-gui opens its serial console when a headless machine starts, since that machine has no keyboard to type at the screen with. Production lines: +96 -29
headless was the only way to a machine with no graphics board, so it also removed the Newport, and a few callers used it for that and nothing else. A run that only wants no window, and so no keyboard, got a different machine from a windowed run: the PROM saw no graphics board and the guest's hinv recorded none. headless now changes the window and the keyboard and nothing else. The Indy and Indigo2 keep their Newport, and a second head stays at gio0 where its entry put it. The callers that wanted no graphics say so with a none entry at graphics: the bench and cpu-test machines, the snapshot fixtures, the monitor readiness test and the GUI's storage tests. The bare-metal suites' helper appends its serial entries as [[devices]] tables, since an inline `devices = [...]` now duplicates the machine file's own key. The windowed Newport tests set the board they use, since the bench configuration no longer reaches them with one. The O2 chime test sets headless, which is what it relied on to lose its keyboard. The GR2 snapshot test builds its machine with no GR2 from a board of none, because a Newport answers that load with another error. iris-gui's overview no longer reports a headless machine as having no graphics, and the resolution picker no longer hides for one. HELP.md's headless example no longer calls it the lightest server mode. Production lines: +22 -27
jamesbraid
marked this pull request as ready for review
November 29, 2026 21:08
jamesbraid
marked this pull request as draft
November 29, 2026 22:16
jamesbraid
force-pushed
the
headless
branch
5 times, most recently
from
November 30, 2026 10:22
ba794f2 to
08e91f0
Compare
jamesbraid
marked this pull request as ready for review
November 30, 2026 10:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 1 of 3: headless, then input devices, then one control path.
headlessmeant something different on every machine. It dropped the Indy's and Indigo2's Newport, unplugged the O2's keyboard and did nothing for the Octane. A headless Octane with a graphics board therefore sent its PROM output to a screen nobody was looking at.After this,
headlessmeans no window and no keyboard, on every machine, and nothing else changes. The graphics board stays. A PROM that finds no keyboard falls back to its serial console by itself, so nothing is written into the guest's NVRAM and a later windowed run is unaffected.The keyboard goes through the same placement as the other devices. Every machine that has a keyboard (all but the Origin 200, Origin 2000 and Onyx2) has a
keyboardslot with a default keyboard in it (--list-slotsshows it).headlessleaves the slot empty unless a[[devices]]entry of typekeyboardfills it. The PS/2 controller then ignores keyboard commands, including the self-test's keyboard byte, and drops the host's keys. On the machines whose keyboard is USB (Origin 3200, Onyx 3000, Tezro, and a Fuel withusb_input) the USB keyboard is not attached. The mouse stays.Two commits:
headlessunplugs the keyboard on every machine. iris-gui keeps its Headless checkbox and opens its serial console when a headless machine starts. Anoneentry atkeyboardleaves the slot empty too, as it does atgraphics.headlessstops dropping the Newport. The bench, cpu-test, snapshot-fixture and test configs that used it to get no graphics now placenoneatgraphics.A third commit, accepting
board = "none"on the Indy and Indigo2, is gone: the graphics-board entries change already lets the Indy and Indigo2 takenoneatgraphics.Scrutinize
Option?within 60 s. The PROM probed the keyboard four times and read the receive register clear on every poll, so the model reads as an empty port; the same build with the keyboard placed passes the diagnostics and reaches its autoboot. Whether a real Octane stops at that prompt with no keyboard is not known. docs/octane-ip30.md and the first commit say the same. A test pins that an unplugged IOC3 keyboard port reads with bits 31:29 clear and answers nothing to 0xf2, 0xff or 0xf4. No special case in code.~/.iris. headless adds no writes of its own, but scripts that used--headlessas a cheap run now get that file.Tested
--list-slotsbeside the keyboard). No conflicts.cargo check --all-targetson each commit.cargo nextest run(dev profile) at the head (6f84923): 5289 passed on default features; at 08e91f0, 6017 passed with--features jitv2 --features rex-jit --features gputrace.-p iris-gui-core: 184 passed.Option?after 6 s.