Package: plymouth Version: 26.134.222-1 Severity: normal Tags: patch upstream Forwarded: https://gitlab.freedesktop.org/plymouth/plymouth/-/work_items/363
Hi, With the bgrt theme on a 2560x1440 display, the LUKS2 token PIN prompt shows only the entry box, with no text above or below it. So there is no way to tell if it wants the PIN or the passphrase. two-step's view_show_prompt() means to make the prompt label 80% of the screen width, but it computes screen_width * 100 / 80. The label is 125% wide and starts at x = -320. label-freetype keeps pixel positions in an unsigned 26-bit field, the negative x wraps there, and the text is placed far off screen. plymouth.debug shows it: Text 'Please enter LUKS2 token PIN' has dimensions 67109089x23 That is 2^26 + 225. The usual "Please enter passphrase for disk ..." is wide enough to escape it, a short prompt on a wide display is not. This is in the two-step plugin, so bgrt, spinner, glow and spinfinity are all affected. The initramfs carries label-freetype, not label-pango. I reported it upstream with two patches, and they are attached here too: 0001 two-step: make the prompt label 80% of the screen width 0002 label-freetype: measure the line width correctly when x is negative Both apply to 26.134.222-1 as they are. I tested them on Debian sid with dracut and systemd-boot, on a Radxa X4. With 0001 the prompt reads "Please enter LUKS2 token PIN" under the entry box. With only 0002, every measurement of the prompt in the trace reads 225x23 instead of 67109089x23. Thanks, Kel -- System Information: Debian Release: forky/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 7.3.0-6.slh.3-aptosid-amd64 (SMP w/20 CPU threads; PREEMPT) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled
0001-two-step-Make-the-prompt-label-80-of-the-screen-widt.patch
Description: application/mbox
0002-label-freetype-Fix-line-width-when-the-label-starts-.patch
Description: application/mbox

