Skip to content

Commit dce9d76

Browse files
Nicolas Pitregregkh
authored andcommitted
vt: add missing notification when switching back to text mode
[ 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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 7c77df2 commit dce9d76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/tty/vt/vt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4452,6 +4452,7 @@ void do_unblank_screen(int leaving_gfx)
44524452
set_palette(vc);
44534453
set_cursor(vc);
44544454
vt_event_post(VT_EVENT_UNBLANK, vc->vc_num, vc->vc_num);
4455+
notify_update(vc);
44554456
}
44564457
EXPORT_SYMBOL(do_unblank_screen);
44574458

0 commit comments

Comments
 (0)