Skip to content

Draw boot splash immediately on simpledrm when UKI omits kms - #20616

Merged
emirb merged 2 commits into
quattrofrom
splash-no-kms-fast-fallback
Nov 28, 2026
Merged

emirb merged 2 commits into
quattrofrom
splash-no-kms-fast-fallback

Conversation

@emirb

@emirb emirb commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Problem

default/splash/session waits up to 8 seconds (wait_native 80) for a native KMS driver before falling back to the firmware framebuffer (simpledrm, efidrm, or vesadrm). That makes sense on installed systems whose UKI includes the kms hook, where i915, xe, or amdgpu probes within a second or two.

On a generic pre-built omarchy-splash UKI that omits kms (re-enabled in omacom/omarchy-iso#611; bundling every GPU driver and firmware blows past the 128 MiB Limine ceiling), no native GPU driver ever loads during early boot on real Intel or AMD hardware. Waiting 8 seconds adds a full 8-second black screen to every boot before the splash or LUKS unlock prompt appears.

Fix

  • Add an optional any mode to wait_native in default/splash/session that breaks as soon as a firmware framebuffer with connected outputs is present while still preferring a native GPU when already bound.
  • Add an explicit OMARCHY_SPLASH_NO_KMS=1 opt-in in etc/initcpio/install/omarchy-splash that writes /usr/lib/omarchy-splash/no-kms via add_file /dev/null /usr/lib/omarchy-splash/no-kms 644.
  • When /usr/lib/omarchy-splash/no-kms is present, call wait_native 80 any; otherwise preserve the existing wait_native 80 behavior unchanged.
  • Cover both the runtime polling path in test/shell.d/boot-splash-session-test.sh and the build-hook opt-in in test/shell.d/boot-splash-hook-test.sh.

Scope and risk

  • Default behavior is unchanged: without OMARCHY_SPLASH_NO_KMS=1, etc/initcpio/install/omarchy-splash omits /usr/lib/omarchy-splash/no-kms and default/splash/session waits up to 8 seconds for a native GPU driver as before.
  • Paired with Re-enable pre-built UKIs for omarchy-splash images omarchy-iso#611, which sets OMARCHY_SPLASH_NO_KMS=1 when pre-building generic omarchy-splash UKIs without kms.

Evidence

  • bash test/shell.d/boot-splash-session-test.sh — passed (including immediate simpledrm fallback with no-kms and native preference when both exist).
  • bash test/shell.d/boot-splash-hook-test.sh — passed (verifies OMARCHY_SPLASH_NO_KMS=1 emits /usr/lib/omarchy-splash/no-kms and leaves it absent by default).
  • bash test/shell.d/boot-splash-hold-test.sh, boot-splash-layouts-test.sh, boot-splash-password-test.sh — passed.

Pre-built generic UKIs omit the kms hook so they stay below Limine's
128 MiB ceiling, leaving only the firmware framebuffer (simpledrm) in
the initramfs. On real Intel and AMD laptops, wait_native 80 then sleeps
a full 8 seconds waiting for a native DRM driver that is not bundled
before falling back to simpledrm.

When /usr/lib/omarchy-splash/no-kms exists in the initramfs, let
wait_native settle as soon as a firmware framebuffer is present while
still preferring any native GPU that appears first and still waiting if
no display has registered yet.
@greptile-apps

greptile-apps Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no blocking issue remains.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no blocking issue remains.

Summary

Adds an explicit build-time option to show the boot splash without waiting for a native GPU driver.

  • No-KMS boot images show the splash as soon as firmware graphics appear.

Reviews (2) · Last reviewed commit: "Add OMARCHY_SPLASH_NO_KMS opt-in to omar..." · Reviewed by Greptile

Comment thread default/splash/session Resolved
@omarchybot

Copy link
Copy Markdown
Collaborator

GPT-6.2 Sol (high effort, in Codex) classified the reported eight-second wait as a bug. DeepSeek deepseek-v4p1-flash (Pi default effort) classified the patch as an enhancement, so the classification is unsettled.

I traced the current ISO build. When the root image includes omarchy-splash, the installer builds a UKI on the target machine. The generic prebuilt UKI uses Plymouth, which never runs default/splash/session. The patch’s test supplies the no-kms marker itself, so it only exercises the script with that marker present. I reviewed the source without running a worker. A supported image that runs this session script and still shows the delay would help settle the classification. ISO change #599

@emirb

emirb commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

Updated in ec4119c to add the explicit OMARCHY_SPLASH_NO_KMS=1 build-hook opt-in directly to etc/initcpio/install/omarchy-splash (with unit coverage in test/shell.d/boot-splash-hook-test.sh), paired with omacom/omarchy-iso#611 which re-enables pre-built omarchy-splash UKIs and passes OMARCHY_SPLASH_NO_KMS=1 on the generic UKI without kms.

@omarchybot omarchybot added the enhancement New feature or request label Nov 28, 2026
@emirb
emirb merged commit 0fcb418 into quattro Nov 28, 2026
5 checks passed
@emirb
emirb deleted the splash-no-kms-fast-fallback branch November 28, 2026 17:18
cursor Bot pushed a commit to mark-groves/omarchy that referenced this pull request Nov 28, 2026
…20616)

* Draw boot splash immediately on simpledrm when UKI omits kms

Pre-built generic UKIs omit the kms hook so they stay below Limine's
128 MiB ceiling, leaving only the firmware framebuffer (simpledrm) in
the initramfs. On real Intel and AMD laptops, wait_native 80 then sleeps
a full 8 seconds waiting for a native DRM driver that is not bundled
before falling back to simpledrm.

When /usr/lib/omarchy-splash/no-kms exists in the initramfs, let
wait_native settle as soon as a firmware framebuffer is present while
still preferring any native GPU that appears first and still waiting if
no display has registered yet.

* Add OMARCHY_SPLASH_NO_KMS opt-in to omarchy-splash build hook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants