On Thu, Oct 03, 2024 at 03:23:08PM +0800, Michael Chang via Grub-devel wrote:
> A regression in grub 2.12 causes the grub screen to become cluttered
> with artifacts from the previous screen, whether it's the UEFI post ui,
> UEFI shell, or any graphical UI running before grub. this issue occurs
> in situations like booting grub from the UEFI shell and going straight
> to the rescue or command shell, causing visual discomfort.
>
> The regression was introduced by commit 2d7c3abd8 (efi/console: Do not
> set text-mode until it is actually needed). To address the screen
> flickering issue, this commit suppresses the text-mode setting until the
> first output is requested. Before text-mode is set, any attempt to clear
> the screen has no effect. This inactive period renders the clear screen
> ineffective in early boot stages, potentially leaving leftover artifacts
> that will clutter the grub console display, as there is no guarantee
> there will always be a clear screen after the first output.
>
> The issue is fixed by ensuring grub_console_cls() to work through lazy
> mode-setting, while also avoiding screen clearing for the hidden menu,
> which the flicker-free patch aims to improve.
>
> Fixes: 2d7c3abd8 (efi/console: Do not set text-mode until we actually need it)
> Signed-off-by: Michael Chang <mch...@suse.com>

Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com>

Daniel

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to