]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
vt: add missing notification when switching back to text mode
authorNicolas Pitre <npitre@baylibre.com>
Wed, 11 Jun 2025 01:41:44 +0000 (21:41 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2025 16:28:00 +0000 (18:28 +0200)
[ Upstream commit ff78538e07fa284ce08cbbcb0730daa91ed16722 ]

Programs using poll() on /dev/vcsa to be notified when VT changes occur
were missing one case: the switch from gfx to text mode.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
Link: https://lore.kernel.org/r/9o5ro928-0pp4-05rq-70p4-ro385n21n723@onlyvoer.pbz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/vt/vt.c

index 5d9de3a53548b18e07e11881d37c7bb5c623ae6d..98ca54330d7713b7735ebab1e9282f1f4726fe58 100644 (file)
@@ -4452,6 +4452,7 @@ void do_unblank_screen(int leaving_gfx)
        set_palette(vc);
        set_cursor(vc);
        vt_event_post(VT_EVENT_UNBLANK, vc->vc_num, vc->vc_num);
+       notify_update(vc);
 }
 EXPORT_SYMBOL(do_unblank_screen);