Repository navigation
display: skip the panel wait on a Mac with no internal panel - #21
Merged
Merged
Conversation
A MacBook with its panel disconnected (the headless M1 Pro, J316s) gets iBoot's 640x1136 dummy framebuffer, so display_init() starts the DCP and polls it for a display for the full 2 s, in Stage 1 and again in Stage 2, before giving up with connected:0. iBoot records the panel it found in the ADT. On the panel-less M1 Pro /arm-io/disp0 has dot-pitch 0 and /product has no raw-panel-serial-number. The M2 (J413) with its panel has dot-pitch 224 and a panel serial. When both say there is no panel, leave the display as iBoot set it up and skip the modeset. Anything else keeps the old path: a nonzero or missing dot-pitch, a panel serial, no /product node, or an external display node. The T8140, T8132 and T8152 paths return before this check as before. Measured on the M1 Pro Stage 2 log (aura 1.0.0b1): "rtkit(dcp): booting" at 19.302 s, "waited 2000 ms for display status" at 21.213 s, then "connected:0". That is 1.91 s of Stage 2 and the same again in each aura Stage 1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
A MacBook with its internal panel disconnected (the headless M1 Pro, J316s) gets iBoot's 640x1136 dummy framebuffer.
display_init()then starts the DCP and polls it for a display for the full 2 s in every aura stage before it gives up withconnected:0.iBoot records the panel it found in the ADT:
/arm-io/disp0dot-pitch/productraw-panel-serial-numberWhen both say there is no panel, Stage 1 and Stage 2 leave the display as iBoot set it up and skip the modeset. Everything else keeps the old path: a nonzero, missing or malformed dot-pitch, a panel serial, no
/productnode, or an external display node. T8140, T8132 and T8152 return before the check as before. No new options.Numbers
M1 Pro Stage 2 log, aura 1.0.0b1:
rtkit(dcp): bootingat 19.302 s,waited 2000 ms for display statusat 21.213 s, thenconnected:0. That is 1.91 s per aura stage. The M1 Pro's Stage 1 is still m1n1 v1.5.2, so today this saves the Stage 2 wait. An aura Stage 1 there saves its own wait too.Tests
tests/python/test_display_panel_absent.pycompilesdisplay_init()with an ADT stub. It covers the panel-less M1 Pro, the M2, each half-sign, missing data, an external node and a real firmware framebuffer.test_display_inherited_only.pynow compiles the new helper.make format-checkis clean. Stage 1 and Stage 2 build.Not yet booted on hardware. Test order: J616s, then M2 (both should be unchanged), then the M1 Pro (should print
display: no internal panel ..., skipping display setupand save about 1.9 s).🤖 Generated with Claude Code