linux-yocto/drivers/video
Thomas Zimmermann b6b5bcae7a dummycon: Trigger redraw when switching consoles with deferred takeover
[ Upstream commit 03bcbbb399 ]

Signal vt subsystem to redraw console when switching to dummycon
with deferred takeover enabled. Makes the console switch to fbcon
and displays the available output.

With deferred takeover enabled, dummycon acts as the placeholder
until the first output to the console happens. At that point, fbcon
takes over. If the output happens while dummycon is not active, it
cannot inform fbcon. This is the case if the vt subsystem runs in
graphics mode.

A typical graphical boot starts plymouth, a display manager and a
compositor; all while leaving out dummycon. Switching to a text-mode
console leaves the console with dummycon even if a getty terminal
has been started.

Returning true from dummycon's con_switch helper signals the vt
subsystem to redraw the screen. If there's output available dummycon's
con_putc{s} helpers trigger deferred takeover of fbcon, which sets a
display mode and displays the output. If no output is available,
dummycon remains active.

v2:
- make the comment slightly more verbose (Javier)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reported-by: Andrei Borzenkov <arvidjaar@gmail.com>
Closes: https://bugzilla.suse.com/show_bug.cgi?id=1242191
Tested-by: Andrei Borzenkov <arvidjaar@gmail.com>
Acked-by: Javier Martinez Canillas <javierm@redhat.com>
Fixes: 83d83bebf4 ("console/fbcon: Add support for deferred console takeover")
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: linux-fbdev@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Cc: <stable@vger.kernel.org> # v4.19+
Link: https://lore.kernel.org/r/20250520071418.8462-1-tzimmermann@suse.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-07-06 11:00:10 +02:00
..
backlight backlight: pm8941: Add NULL check in wled_configure() 2025-06-19 15:28:26 +02:00
console dummycon: Trigger redraw when switching consoles with deferred takeover 2025-07-06 11:00:10 +02:00
fbdev tty: vt: make consw::con_switch() return a bool 2025-07-06 11:00:10 +02:00
logo
aperture.c
cmdline.c
display_timing.c
hdmi.c
Kconfig
Makefile
nomodeset.c
of_display_timing.c
of_videomode.c
screen_info_generic.c
screen_info_pci.c video: screen_info: Relocate framebuffers behind PCI bridges 2025-06-27 11:08:50 +01:00
sticore.c
vgastate.c
videomode.c