Re: [PATCH] Fix VT mode change vs. fbcon

From: James Simmons
Date: Fri Feb 27 2004 - 20:07:34 EST



> --- 1.34/drivers/char/vt_ioctl.c Wed Feb 25 21:31:13 2004
> +++ edited/drivers/char/vt_ioctl.c Fri Feb 27 17:27:21 2004
> @@ -497,7 +497,7 @@
> */
> acquire_console_sem();
> if (arg == KD_TEXT)
> - unblank_screen();
> + do_unblank_screen(1);
> else
> do_blank_screen(1);
> release_console_sem();
> @@ -1103,7 +1103,7 @@
> if (old_vc_mode != vt_cons[new_console]->vc_mode)
> {
> if (vt_cons[new_console]->vc_mode == KD_TEXT)
> - unblank_screen();
> + do_unblank_screen(1);
> else
> do_blank_screen(1);
> }
> @@ -1138,7 +1138,7 @@
> if (old_vc_mode != vt_cons[new_console]->vc_mode)
> {
> if (vt_cons[new_console]->vc_mode == KD_TEXT)
> - unblank_screen();
> + do_unblank_screen(1);
> else
> do_blank_screen(1);
> }

How about calling resize_screen in vt.c instead in this function. This way
fbcon could reset the hardware state :-)


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/