Repository navigation
Conversation
…k to plain VT if narrow On Touch Bar Macs (Apple Silicon `adp` -> `DSI-1`, Intel T2 `appletbdrm` -> `USB-*`), kmscon v10.1.3 defaults to `multi-monitor=scaled`, which computes the minimum column/row count across all screens and shrinks the main display during first-boot owner setup to ~4 columns, causing `gum filter` in the timezone prompt to exit non-zero and loop back to keyboard setup (omacom/omarchy-mac-pkgs#269). - Detect `adp` and `appletbdrm` DRM cards in `kmscon.sh` and pass `--screen=[<connector>]disabled` while leaving normal displays on `scaled`. - Guard `omarchy-provision-owner` against any narrow kmscon grid (`< 40` columns) both after `wait_console_stable` and after `greeter_screen`, falling through once to plain VT1, skipping the kmscon finished-icon painter, clearing both `shell` and `plain-vt` markers on wrapper entry so recovery-shell retries work, and reapplying the saved keymap on plain-VT resume from `KMSCON_RESUME`. - Add unit tests in `test/shell.d/provision-owner-keyboard-test.sh`. Signed-off-by: Marcelo Alcantara <maralc@gmail.com>
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; no actionable defects were found. SummaryThis PR keeps Touch Bar displays out of
No actionable issues were found. Review was based on source inspection; no runtime or visual verification was performed.
|
There was a problem hiding this comment.
🔵 Needs a closer look
The tests do not exercise the real narrow-console handoff, boundary and resize behavior, or saved-keymap resume outcomes, leaving regressions in these paths undetected.
No open issues 🎉
What changed in this PR
Prevents Touch Bar displays from shrinking Omarchy’s provisioning console and adds a plain-VT fallback when kmscon remains too narrow.
Changes:
- Disable connectors belonging to Touch Bar DRM drivers.
- Fall back to plain VT, restore the saved keymap, and suppress the kmscon completion icon.
- Add connector-filtering and icon-suppression tests.
| File | Description |
|---|---|
test/shell.d/provision-owner-keyboard-test.sh |
Tests Touch Bar connector exclusion and plain-VT icon suppression. |
install/provisioning/kmscon.sh |
Detects Touch Bar drivers and disables their connectors. |
bin/omarchy-provision-owner |
Adds narrow-console fallback, retry cleanup, and keymap restoration. |
Review effort: Balanced
|
Recommend: Hold — waiting for first-boot confirmation on an affected Touch Bar Mac. @D-Pagey or a maintainer, please install a candidate image with Omarchy runtime commit The CLI and focused provisioning tests passed on an ISO worker, and a simulated four-column console exercised the VT fallback. Codex High, Opus 5.5 High and muse-wonder via pi, thinking high confirmed that the fallback adds a second console-settle wait before the greeter ( |
Fixes the upstream
omacom/omarchyside of omacom/omarchy-mac-pkgs#269 (paired with the Apple Silicon boot-package drop-in in omacom/omarchy-mac-pkgs#275; complements #21189).Root Cause
kmsconv10.1.3 defaults tomulti-monitor=scaled, which computes the minimum column and row count across all active displays (terminal_update_size_scaled->terminal_update_size_clone). On Touch Bar Macs (adpexposingDSI-1on Apple Silicon J293/J493,appletbdrmexposingUSB-*on Intel T2), the ~60 px Touch Bar collapses the main panel grid to ~4 columns, causinggum filterin the timezone prompt to exit non-zero and loopKeyboard -> Timezone -> Keyboardindefinitely.Changes
install/provisioning/kmscon.sh: addomarchy_kmscon_touchbar_args()scanning/sys/class/drm/card*foradporappletbdrmdrivers and passing--screen=[<connector>]disabledfor each of their connectors (leaving internal/external monitors onscaledinstead of globally switching tolargest, which would blank laptop panels when paired with a 4K external monitor).bin/omarchy-provision-owner:< 40columns) checked afterwait_console_stableand again aftergreeter_screen(covering late resize events), dropping out ofkmscononce onto plain VT1 via$KMSCON_STATE/plain-vt.record_finished_iconwhen$KMSCON_STATE/plain-vtis present.$KMSCON_STATE/shelland$KMSCON_STATE/plain-vton outer-wrapper entry so retryingomarchy-provision-ownerfrom the recovery shell works.apply_keyboardwhen resuming from$KMSCON_RESUMEon plain VT.test/shell.d/provision-owner-keyboard-test.sh: coveradp/appletbdrmconnector disabling (leavingeDP-1enabled) and plain-VT finished-icon suppression.Verification
test/shell.d/provision-owner-keyboard-test.shand 32/32 tests intest/shell.d/setup-form-test.shpass on Linuxaarch64(m1-proand Arch Linux ARM container withgum 2.0.2).gpt-6.2-astra) completed and every finding addressed (including keepinggum filterstrict mode so city search likeLondon->Europe/Londondoes not regress).