[PATCH] 2.4.0-test6-pre8 - dark vga textmode console problem in RIVA TNT 2

From: Dan Aloni (karrde@callisto.yi.org)
Date: Tue Aug 08 2000 - 11:37:14 EST


Fixes the problem of getting a dark text mode console after switching
from X, under systems which have the RIVA TNT 2 chipset (could be other
systems as well, didn't check). More details about the problem was
posted by me in lkml a few days ago.

This patch was tested and it works. The problem could have been sorted
out in another way, but I'm not much of a skilled kernel hacker to find
out how, although I guess it is somewhere in the code that handles the
RIVA TNT 2 chipset.

Dan Aloni (dax)
karrde@callisto.yi.org

--- linux/drivers/char/console.c Tue Aug 8 19:29:09 2000
+++ linux/drivers/char/console.c Tue Aug 8 18:33:50 2000
@@ -587,10 +587,10 @@
 
         if (redraw) {
                 set_origin(currcons);
+ set_palette(currcons);
 
                 if (sw->con_switch(vc_cons[currcons].d) && vcmode != KD_GRAPHICS) {
                         /* Update the screen contents */
- set_palette(currcons);
                         do_update_region(currcons, origin, screenbuf_size/2);
                 }
         }

-
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.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Aug 15 2000 - 21:00:16 EST