Repository navigation
Draw boot splash immediately on simpledrm when UKI omits kms - #20616
Conversation
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.
[Medium impact] The PR appears safe to merge; no blocking issue remains. SummaryAdds an explicit build-time option to show the boot splash without waiting for a native GPU driver.
Reviews (2) · Last reviewed commit: "Add OMARCHY_SPLASH_NO_KMS opt-in to omar..." · Reviewed by Greptile |
|
GPT-6.2 Sol (high effort, in Codex) classified the reported eight-second wait as a bug. DeepSeek I traced the current ISO build. When the root image includes |
|
Updated in |
…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
Problem
default/splash/sessionwaits up to 8 seconds (wait_native 80) for a native KMS driver before falling back to the firmware framebuffer (simpledrm,efidrm, orvesadrm). That makes sense on installed systems whose UKI includes thekmshook, wherei915,xe, oramdgpuprobes within a second or two.On a generic pre-built
omarchy-splashUKI that omitskms(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
anymode towait_nativeindefault/splash/sessionthat breaks as soon as a firmware framebuffer with connected outputs is present while still preferring a native GPU when already bound.OMARCHY_SPLASH_NO_KMS=1opt-in inetc/initcpio/install/omarchy-splashthat writes/usr/lib/omarchy-splash/no-kmsviaadd_file /dev/null /usr/lib/omarchy-splash/no-kms 644./usr/lib/omarchy-splash/no-kmsis present, callwait_native 80 any; otherwise preserve the existingwait_native 80behavior unchanged.test/shell.d/boot-splash-session-test.shand the build-hook opt-in intest/shell.d/boot-splash-hook-test.sh.Scope and risk
OMARCHY_SPLASH_NO_KMS=1,etc/initcpio/install/omarchy-splashomits/usr/lib/omarchy-splash/no-kmsanddefault/splash/sessionwaits up to 8 seconds for a native GPU driver as before.OMARCHY_SPLASH_NO_KMS=1when pre-building genericomarchy-splashUKIs withoutkms.Evidence
bash test/shell.d/boot-splash-session-test.sh— passed (including immediatesimpledrmfallback withno-kmsand native preference when both exist).bash test/shell.d/boot-splash-hook-test.sh— passed (verifiesOMARCHY_SPLASH_NO_KMS=1emits/usr/lib/omarchy-splash/no-kmsand 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.