plymouth/src
Hans de Goede 9b9d7e1b3a ply-text-display: Fix bottom pixels of fbcon not getting cleared
When fbcon is used for the console then there might be some unused
rows of pixels at the bottom because the screen's height in pixel
is not fully divideable by the font height. So the remaining few
rows of pixels at the bottom are unused.

The "text" splash changes the background color of the terminal and
then does a ply_text_display_clear_screen () to clear the console
to the new background color.

ply_text_display_clear_screen () was using "ESC [ 2 J" as control-sequence
to clear the screen. Which means "clear the entire screen" but fbcon
seems to not always count the unused bottom rows part of the "entire
screen", leaving them black.

Also send an "ESC [ 3 J" control-sequence when clearing the screen,
which means "clear the entire screen; and the scrollback-buffer".
Using this does consistenly result in the unused bottom rows always
being set to the background color.

This new behavior is esp. important when hiding the splash (e.g.
when quiting) because under some circumstances (1) the "ESC [ 2 J"
would clear the unused bottom rows to plymouth's background color
and then when hiding the splash it would not clear the unused rows,
leaving the unused rows set to plymouth's background color after
plymouth has quit.

Note the "ESC [ 2 J" control sequences is also still send because older
(serial) terminals may not support the "ESC [ 3 J" control sequence.

1) The exact circumstances when this happens are unclear

Related: https://bugzilla.redhat.com/show_bug.cgi?id=1933378
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2021-03-29 09:25:29 +02:00
..
client client: Don't wait forever for a ping reply 2020-10-28 10:07:27 -04:00
libply ply-logger: Add a ply_is_tracing_to_terminal () helper 2021-03-29 09:24:45 +02:00
libply-splash-core ply-text-display: Fix bottom pixels of fbcon not getting cleared 2021-03-29 09:25:29 +02:00
libply-splash-graphics Rename 'percent_done' to 'fraction_done' 2020-04-21 13:38:21 +08:00
plugins two-step: Links against libintl.so if LNS 2021-03-23 10:51:31 +01:00
upstart-bridge Reindent 2014-05-20 15:16:48 -04:00
main.c main: Redirect stdio/stderr to null when tracing to a file 2021-03-29 09:25:29 +02:00
Makefile.am Initialize the translations on start if they are available 2020-08-07 16:51:35 +02:00
ply-boot-protocol.h Revert "Add support for operation log messages" 2014-04-21 11:18:19 -04:00
ply-boot-server.c boot-server: Handle client disconnecting while trigger pending 2020-09-18 20:48:59 +00:00
ply-boot-server.h Reindent 2014-05-20 15:16:48 -04:00
ply-splash-core.pc.in ulibc: Change the link order + add -ldl 2012-03-21 10:35:37 -04:00
ply-splash-graphics.pc.in ply-splash-graphics: ensure link in config file 2012-03-17 02:38:00 -04:00
plymouthd.conf [daemon] Ship default configuration files 2010-03-23 18:00:50 -04:00
plymouthd.defaults plymouthd.defaults: Bump default DeviceTimeout to 8 seconds 2019-09-08 15:44:35 +02:00