chips driver users -- please test

Search this archive.

From: Christian Groessler (cpg@aladdin.de)
Date: Fri 24 Jul 1998 - 01:50:37 IDT


Hi chips users,
---------------

I had problems on my notebook (with C&T 65550):
when leaving a SVGALib app, the text mode was
not restored correctly.

I'd used SVGATextMode to set my text resolution
to about 100x40. There was no character stretching
needed to fill the 800x600 display.

But when exiting a SVGA app, the display had
stretching enabled, showing me only the first
xxx lines with rather funny huge chars.
This didn't happen when leaving X.

I fixed this in the attached patch (for
svgalib-1.3.1), so if you have similar problems,
please check out this patch and tell me your
results (good and bad).

Here's the patch:

-----------------------------------------
--- vga.c.org	Thu Jul 23 11:52:58 1998
+++ vga.c	Thu Jul 23 12:47:10 1998
@@ -1874,15 +1874,18 @@
 	    vga_claimvideomemory(12);
 	}
 
-	usleep(MODESWITCHDELAY);	/* wait for signal to stabilize */
-
-	/* enable video */
-	vga_screenon();
-
 /*      if (!flip) */
 	/* enable text output - restores the screen contents */
         if (!__svgalib_secondary)
 	    ioctl(__svgalib_tty_fd, KDSETMODE, KD_TEXT);
+
+        /* now wait for signal to stabilize, but don't do it on C&T chips. */
+        /* This is needed to restore correct text mode stretching.         */
+	if (__svgalib_chipset != CHIPS)
+	    usleep(MODESWITCHDELAY);
+
+	/* enable video */
+	vga_screenon();
 
 	if (!flip)
 	    /* restore text mode termio */
-----------------------------------------


have a nice day,
chris


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:22 IST