Skip to content

250. Why the screen stays up until the batteries come out, and what the invalidate is really for

Date: 3 September 2026, with its control run on 4 September. Status: read out of the Harmony One 3.4 application image, with tests/test_status_screens.py behind every claim, and confirmed on hardware: the control this section specified was run and all three of its predictions held, two of them read out of the remote's own memory. It corrects section 249's account of the bench and section 248's attribution, both of which were written the day before and both of which read the mechanism backwards.

The correction first

Section 249 said the invalidate must change what the cookie read sees, reasoning that the flash held the right cookies and the remote said otherwise, so the read had to be at fault. The reasoning was sound and the conclusion is wrong. None of the validator's six read helpers can reach the module that owns the cached descriptors, at any depth a call chain search follows, while the invalidate's own executor reaches it immediately, which is the control that makes the search an answer rather than a failure. So clearing a descriptor cannot change whether a cookie matches, and the sentence "the read that fed the cookie check was not seeing the flash the write had left" has nothing behind it.

What is true is better, and it explains something no previous section could.

A status screen needs the verdict already gone

Both configuration screens sit behind one test of the verified bit. If the remote already counts its configuration as verified, a validation that fails displays nothing at all: the jump goes past both calls. So a screen means the bit was clear at the moment the validator ran.

The bit is written in exactly five places, and this is the fact everything else turns on:

what it is
0x2C860 the boot initialisation, which clears it
0x28AB6 the boot arm that fails a licence check
0x28FFA a trailer checksum that disagrees
0x29006 a trailer checksum that agrees, which sets it
0x266B8 the WRITE_MISC invalidate

No erase, write or transfer handler touches it. So a configuration write, on its own, leaves the remote's old verdict standing, and the remote goes on believing a configuration it has not looked at.

The latch, which is the part nobody had explained

The main routine, reached from the reset vector, polls one routine in its loop. That routine has two halves and they are gated on the cable, which is PORTA bit 4.

The two cable states below are the wrong way round and section 251 corrects them. This said "the routine that answers whether USB is up refuses on that bit before it even reads the USB control register, so set means a cable and clear means none", and that routine answers the opposite question: 0x20354 reports one only when the bit is set and the USB module is disabled or suspended, so it asks whether USB is absent and quiet. Bit 4 clear means a cable, measured on the register of a connected remote twice. Section 99 refused to claim this polarity and was right to. Every instruction quoted in this section is correct; what was wrong is the name given to a predicate.

  • While the cable is out and the verdict stands, it arms a flag. Corrected: while the cable is in.
  • While the cable is in, the flag is armed and the verdict has gone, it validates both containers, and then clears the flag whatever it found. No branch protects that clear. Corrected: while the cable is out.

The latch below survives the correction intact, since swapping the two states changes which half runs when and changes nothing about a condition that can never be met again.

Put those together and the behaviour follows. A validation that fails leaves the verdict clear and the flag cleared, so the arming condition, cable out and verdict standing, can never be met again. The remote never looks at its configuration again. No amount of unplugging, replugging or writing will move it, and a power cycle is the only way out, because only the boot path validates without needing an armed flag.

That is the "until a battery pull" that sections 242, 244 and 247 all recorded as an observation.

So what is the invalidate for

It is what makes the remote check our work. Sending it clears the verdict, the validator runs over the configuration we just wrote, and a configuration that passes gets the verdict set again. Without it the remote keeps a verdict it earned against different bytes.

This said the re-check fires "while the cable is still in", which is refuted by measurement in section 251: the verdict sat dropped for six minutes with the cable in and came back the moment the cable moved. It fires on the cable transition, so on this bench it fires when the operator unplugs the remote.

That is a better reason to send it than the one section 248 gave, and it reverses the sign of the advice. A write with no invalidate does not avoid the screen by being safer. It avoids the screen by not looking, and the state it leaves behind, a verdict that was never re-earned, is the state that turns into a stuck screen the moment the remote does boot.

Section 248's control, re-read

That section wrote the same container again with the invalidate and the restart withheld, got the ordinary screen, and concluded the invalidate is what closes the screen. The observation stands and the conclusion does not follow. What the run actually shows is that a write with the invalidate leaves a remote whose verdict has been re-earned against the bytes on the flash, which is the outcome to want. It does not show what a write without the invalidate would have done from the same starting state, because that was never run.

The experiment that would separate them was specified here and then run, the same evening, and the next subsection is its score.

The control, run on 4 September 2026, and all three predictions held

Three predictions were written down before the run and two of them are readable out of the remote's own memory, which is what makes this more than another look at a screen. From a remote whose state was measured rather than assumed, write two blocks with neither the invalidate nor the restart:

predicted measured
the verdict byte unchanged, since no write handler clears it 0x2E before, 0x2E after
the re-check flag still armed, since no re-check can fire 0x01 before, 0x01 after
the cached descriptors untouched identical, all three records
the screen, off the cable ordinary ordinary, no battery pull

The starting state is worth stating because nothing had ever measured it: the verdict byte read 0x2E, so both containers were verified and the user configuration was selected; the re-check flag read 0x01, armed; and all three descriptors had bit 0 clear, the previous run's invalidate still in effect. Two erases and two block writes later, not one of those bytes had moved, and the whole configuration read back identical to the file.

So the reading above is measured rather than reasoned. A configuration write clears nothing, fires no re-check, and leaves the remote holding a verdict it earned against different bytes. And section 248's conclusion is refuted by experiment as well as by the firmware: the screen stays away with the invalidate withheld, so the invalidate was never what kept it away.

The log is beside the configuration in the lab, and the remote is left with that device's power on delay at 65 tenths again.

What the bench episode was, then

Section 242's writes crashed the remote mid-erase, which its own notes record, and arch 12 executes its configuration in place out of the flash being erased. On the boot that followed, the boot path validated an incomplete configuration with the verdict cleared by the boot initialisation, failed, put a screen up and latched. A later clean write could not clear it, and did not: only the battery pull did. That accounts for the corrupted screen after the killed attempt, the website screen after the others, and the fact that a clean write appeared not to help.

What is still open

  • Which of the two failures the bench actually hit, since a cookie and a checksum are distinguishable on the screen but nobody read the screen at each boot. The control above cannot answer it either, because it never produced a screen to read.
  • Whether a write with the invalidate really does re-validate. ~~Unrun.~~ Run on 4 September 2026 and it does, section 251, and the prediction was right except in one byte and one condition. The verdict does come back to 0x2E with no power cycle, so the invalidate does not leave the remote without a verdict. It goes to 0x22 rather than the predicted 0x2A, since bit 3 goes with bit 2, and it comes back on the cable transition rather than while the cable is in.
  • What the descriptors are for, which is now a separate question rather than part of this one: three records of five bytes, byte 0 bit 0 marking one live, thirty sites addressing them inside one module, and no reader in the validator's path.
  • Whether arch 14 latches the same way. ~~Its display routine and its validator have the same shape, and neither its poll nor its flag has been read.~~ Answered in the negative, section 252: the poll, the flag and the validator all transfer, and the arming condition does not. Arch 14 arms without consulting the verdict, so a failed validation re-arms on the next pass and a Harmony 600 should not have a Harmony One's stuck screen. Read from the image and corroborated by the resting state of a connected Harmony 600; the experiment that would settle it needs a write command and arch 14 has no write target. (It has one since section 281, the Harmony 650, and this experiment is on the 600's resting state, which the 650 does not answer.)

Where it lands

  • tests/test_status_screens.py: the five writers of the verified bit and the erase and write handlers being outside them, the guard in front of both screen calls, the poll's two halves, the unconditional clear of the flag, the cable bit's polarity from the USB routine, and the negative that no read helper reaches the descriptor module with the invalidate's executor as its control. The polarity test asserted the bit test and not the routine's meaning, which is why it passed while the claim it was named for was wrong; section 251 replaces it with one that asserts the whole predicate, both UCON bits included. The control run adds no test, deliberately: every claim it scores is one of those, and the run itself is a hardware observation of three data addresses that this repository stores no fixture for. What it changes is the status of the claims, from read to measured.
  • Sections 248 and 249, corrected in place, and reference/superseded.md.

Section 249 | the archive | section 251. Section 250 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.