You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
default/splash/session: HiDPI output * scale 2 is skipped on native KMS, leaving LUKS unlock tiny on 3K/4K laptops with early KMS #22008
In default/splash/session, write_output_conf() returns early on line 193 whenever the active DRM device is not the firmware framebuffer (simpledrm/efidrm):
[ "$devices"="$firmware" ] ||return 0
When early KMS drivers (such as i915, xe, or amdgpu in MODULES=(...), which is common on laptops needing apple_gmux + i915 boot ordering or flicker-free early KMS) bind in initramfs before omarchy-splash starts Sway, $devices is native KMS, write_output_conf() leaves $run/output.conf empty, and Sway defaults to scale 1. On a 3072×1920, 2880×1800, or 3840×2400 laptop panel, the LUKS password prompt renders tiny at 1× scale.
# simpledrm reports no EDID, so sway defaults to scale 1 even on HiDPI panels.# Pick scale 2 from the framebuffer's shorter side and chassis type while on# firmware, and record "W H SCALE" for shell/startup-cover.qml so the handoff# matches only monitors at that mode. Clear both on native KMS.write_output_conf() {
local card=${devices%%:*} modes mode="" w="" h="" short=0 chassis="" scale=1
>"$run/output.conf"
rm -f /run/omarchy-splash-scale
[ "$devices"="$firmware" ] ||return 0
formodesin /sys/class/drm/"${card##*/}"-*/modes;doread -r mode 2>/dev/null <"$modes"&& [ -n"$mode" ] &&breakdone
Even when native KMS exposes EDID physical dimensions, sway (wlroots) does not automatically apply HiDPI scale 2 unless configured in output.conf — it always defaults to scale 1! The early return skips writing output * scale 2 for native KMS completely, even though /sys/class/drm/${card##*/}-*/modes already contains the exact native mode (3072x1920).
Meanwhile, /run/omarchy-splash-scale only needs to be restricted to $firmware (so shell/startup-cover.qml matches the firmware handoff only when needed).
Steps to Reproduce
Boot a HiDPI laptop (3072×1920, 2880×1800, or 3840×2160) with i915 (or amdgpu / xe) in /etc/mkinitcpio.conf.d/*.confMODULES+=(...) and LUKS root encryption.
Observe the Omarchy LUKS boot prompt (omarchy-splash): the prompt renders at scale 1 (half-size / tiny text) because write_output_conf exited at line 193 without writing output * scale 2.
Expected Behavior
Compute scale=2 from the connected DRM connector's mode (/sys/class/drm/${card##*/}-*/modes) and chassis type on both firmware (simpledrm) and native KMS, and write output * scale 2 to $run/output.conf when scale=2.
Keep /run/omarchy-splash-scale written only when [ "$devices" = "$firmware" ] (or when desired for handoff) so native KMS handoff behavior stays clean.
Native KMS leaves the splash scale to Sway, which uses each output’s mode and reported physical size. With simulated DRM connectors on a disposable worker, a connected 4K external display made #22012 generate a 2× override for both it and a 1080p internal panel. The fix needs to scope the override to the affected output. Sway’s scale calculation
Could you share /run/omarchy-splash/session.log from an affected boot with omarchy.splash.debug on the kernel command line, and say whether an external display was connected? That will help identify the device and mode Sway used at unlock.
Codex High, Opus 5.5 High and muse-wonder via pi, thinking high reviewed the diagnosis.
Activity
omarchybot commentedon Dec 6, 2026
Native KMS leaves the splash scale to Sway, which uses each output’s mode and reported physical size. With simulated DRM connectors on a disposable worker, a connected 4K external display made #22012 generate a 2× override for both it and a 1080p internal panel. The fix needs to scope the override to the affected output. Sway’s scale calculation
Could you share
/run/omarchy-splash/session.logfrom an affected boot withomarchy.splash.debugon the kernel command line, and say whether an external display was connected? That will help identify the device and mode Sway used at unlock.Codex High, Opus 5.5 High and muse-wonder via pi, thinking high reviewed the diagnosis.