From: Gilbert Nardo (gil@netcom.com)
Date: 08/02/93


From: gil@netcom.com (Gilbert Nardo)
Subject: Re: VGALIB and 0.99.10 linux
Date: Mon, 2 Aug 1993 23:43:58 GMT

levinson@vax.sonoma.edu wrote:
: I ftp'd the VGALIB file from sunsite. WHen I run the test program using my
: ET4000 card, I can only get the standard VGA part to work. The SVGA modes
: (which are listed) cause major screen problems and I have to reboot.

        The problem lies with the register values that are
being set for the TSENG SVGA modes. You'll have to regenerate the
values for the following:

        static char g640x480x256_regs[70] = { ...
        static char g800x600x256_regs[70] = { ...
        static char g1024x768x256_regs[70] = { ...

        I had to use tseng.exe with dos (the source tseng.c should come
with vgalib12.tar.z) to regenerate the register values. Also, you'll
have to fix the following by hand (sorry, my changes make patching difficult)

<search for>
    if (et4000 && prv_mode == G1024x768x256)
        set_regs(g640x480x256_regs, G640x480x256);

<replace with this>
    if (et4000 && ((prv_mode == G1024x768x256) || (prv_mode == G800x600x256)))
        set_regs(g640x480x256_regs, G640x480x256);

        The above fix is needed to return safely to text mode
from 800x600x256 mode. I believe these changes should allow you to
use vgatest with the TSENG SVGA modes. Good luck.

-- 
Gil Nardo                  | gil@netcom.com
Migrant Computing Services | (415)664-1032 (voice)
1032 Irving Street, #435   |-----------------
San Francisco, 94122       | Save the Universe: Stop Entropy Now!