Subject: Re: Diamond Stealth 64 PCI
To: None <netbsd-help@NetBSD.ORG>
From: Christos Zoulas <christos@deshaw.com>
List: netbsd-help
Date: 02/12/1996 05:56:26
In article <199602110432.PAA11516@mallee.awadi> blymn@awadi.com.AU (Brett Lymn) writes:
>
>Folks,
>      I am trying to use a diamond stealth 64 PCI card in a P100
>running netbsd1.1 and XFree-3.1 but I am not having any success.  The
>xserver just quits on me.  I have tried using both the SVGA server and
>the S3 server but both do the same thing - ramble on about the config
>(no errors here...) and then nothing execpt errors about the server
>quitting with n events not processed.  Can anyone send me a config
>that works for this guy????
>
>BTW The computer I am putting this on is owned by a NT fanatic, I
>wanted to show him how much NT sucks by demonstrating the speed
>difference.  So getting the Stealth working would be nice otherwise I
>will have to wimp out and use a bog standard SVGA card.
>
>ABTW Since this was at work the computer is on the network, I was able
>to boot from the floppies, run through the floppy install stuff,
>ifconfig up the network interface, nfs mount my home partition from
>the main server and then just extract all the tar files onto the IDE
>disk.  Took less than 45 minutes to get the thing running multiuser
>(this includes my stuffing around coz I did not read the install
>instructions ;-).  Very very Cool :-)
>
>

This is from my old Xconfig file [not the current XF86Config format.
#
# The graphics drivers
# First the 8-bit colour SVGA driver
#
vga256
  Virtual       1024  768
#  vendor  "nolinear"
Clocks 25.2 28.3 74.6 74.4 42.9 0 74.3 0 0 0 0 0 0 0 0 74.5
Modes "1024x768"  "640x480" "1024x768i"
Videoram        1024

ModeDB

# clock  horizontal timing      vertical timing
 "640x480"   25     640  672  768  800    480  490  492  525
# "1024x768"  28     640  672  768  800    480  490  492  525
  "1024x768"     74     1024 1024 1192 1368      768  768  779  806
 "1024x768i"   74.40  1024 1040 1216 1264    768  777  785  817  Interlace


The stealth was not supported in the version of XFree86 I had, so I used
to run an external program called freq to set the frequency. I don't use
this card anymore, so all this might not needed...  Appended you'll find
a shell script wrapper for the X server:

#!/bin/sh -x

cleanup() {
        kill $XPID
        wait $XPID
        $XDIR/freq 41999 2
        $XDIR/kbd_mode -a
        sleep 2
        exit 0
}

startup() {
    $XDIR/freq 66997 2
    $XDIR/XF86_SVGA "$@" &
    XPID=$!
    wait $XPID
}

XDIR=/usr/local/X/bin
XPID=
echo $$

trap cleanup 1 2 3 15

startup "$@"
cleanup "$@"


Freq is a small program you can fetch from the linux archives. Sorry I don't
have the source for it anymore.

christos