Re: Console fixes for 2.1.108

Geert Uytterhoeven (Geert.Uytterhoeven@cs.kuleuven.ac.be)
Sat, 11 Jul 1998 21:08:59 +0200 (CEST)


On Fri, 10 Jul 1998, Daniel Engstrom wrote:
> Once booted (with vgafb) I still have a version of the black-on-black
> problem. Kernel console messages appear right, but any output though
> the tty seems to be written with the current background color. But if I
> switch to another VC and then back the screen content is updated and
> appears correct, but any updates while focused only affects the cursor
> position.

drivers/char/console.c is optimized too agressively if you also enable
CONFIG_VGA_CONSOLE. This patch fixes that:

--- geert-2.1.108b/include/linux/vt_buffer.h.orig Sat Jul 11 15:34:19 1998
+++ geert-2.1.108b/include/linux/vt_buffer.h Sat Jul 11 20:43:20 1998
@@ -16,7 +16,7 @@
#include <linux/config.h>

#ifdef CONFIG_VGA_CONSOLE
-#ifndef CONFIG_FB_MODULE
+#if !defined(CONFIG_FB) && !defined(CONFIG_FB_MODULE)
#define VT_BUF_VRAM_ONLY
#endif
#include <asm/vga.h>

Greetings,

Geert

--
Geert Uytterhoeven                     Geert.Uytterhoeven@cs.kuleuven.ac.be
Wavelets, Linux/{m68k~Amiga,PPC~CHRP}  http://www.cs.kuleuven.ac.be/~geert/
Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html