From: kfisher3@mach1.wlu.ca (kevin fisher U)
Subject: How I got TVGA&X working!
Summary: Whew....       
Organization: Wilfrid Laurier University
Date: Wed, 13 Jan 1993 02:06:22 GMT

Ok, due to the fact that several people have mailed me wanting to know how I
got my TVGA working (well!) with X, I'm posting this....

First, my equipment:
386-40 AMD, no co-pro, 8meg
TTX SVGA (2 fixed scan rates) monitor
TVGA8900C (1meg)
running Linux .98pl5 (nice!)



First, I would reccomend you get the latest version of Xfree86 from tsx-11,
namely Xfree 1.1.  However, I did get the TVGA working ok with the one that
comes with SLS (1.0y I believe?), only thing is, when you leave X, you get a
blank screen..


Ok, by popular demand, here's my Xconfig:


# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
#
# Author:  Thomas Roell, roell@informatik.tu-muenchen.de

#
# some nice paths, to avoid conflicts with other X-servers
#
RGBPath         "/usr/X386/lib/X11/rgb"
FontPath        "/usr/X386/lib/X11/fonts/misc/,/usr/X386/lib/X11/fonts/Speedo,/usr/X386/lib/X11/fonts/75dpi/"

# Use this if the Type1 font code is in the server
#FontPath       "/usr/X386/lib/X11/fonts/misc/,/usr/X386/lib/X11/fonts/Type1/,/usr/X386/lib/X11/fonts/Speedo,/usr/X386/lib/X11/fonts/75dpi/"

# NoTrapSignals

#Xqueue

Keyboard
  AutoRepeat 500 5
#  Xleds      1 2 3
  ServerNumLock
#  DontZap

Busmouse        "/dev/bmouselogitec" # for my bus mouse!!
#MouseSystems   "/dev/ttys0"
#  BaudRate     1200
#  SampleRate   150
#  Emulate3Buttons


#
# The graphics drivers
# First the colour driver
#
vga256
#  Virtual      1152 900

Clocks  25 28 45 36 57 65 50 40  # I don't think this is really needed..


# To disable SpeedUp, use NoSpeedUp
#
#  NoSpeedUp

  Virtual       1024 1024

  ViewPort      0 0

  Modes         "640x480"

# actually, here I can use 640x400, 800x600, and my 'special'
# 808x570 mode.
#                  
#
# Next the mono driver
#
vga2

  Virtual       1024 768

  ViewPort      0 0

  Modes         "640x480"
#  Modes        "800x600" "640x480"

ModeDB
# OFFICIAL VESA Monitor timings + IBM Standards - TRY THESE FIRST
# Contributor:          Thomas Roell [roell@sgcs.com]
# Last Edit Date:       3/29/92
#
# name        clock   horizontal timing     vertical timing      flags
# I think these are the defaults, and they worked okay.
 "640x480"     25      640  664  760  800    480  491  493  525
               31      640  664  704  832    480  489  492  520
# this 'special' mode I defined because 800x600 has a slight flicker on
# my monitor that makes my eyes buggy...I have to work on that one still..
#  "808x570"    36      808  816  936  1016   570  576  578  590

# I got 800x600 working fine, but with a very slight (but annoying)
# flicker.
# "800x600"     36      800  824  896 1024    600  601  603  625
 #              40      800  840  968 1056    600  601  605  628
 #              50      800  856  976 1040    600  637  643  666
 #"1024x768i"   44     1024 1040 1216 1264    768  777  785  817  Interlace
 #"1024x768"    65     1024 1032 1176 1344    768  771  777  806
 #              75     1024 1048 1184 1328    768  771  777  806
 #              85     1024 1032 1152 1360    768  784  787  823
 #"1280x1024i"  80     1280 1296 1512 1568   1024 1025 1037 1165  Interlace
 #"1280x1024"  110     1280 1328 1512 1712   1024 1025 1028 1054
#              135     1280 1312 1456 1712   1024 1027 1030 1064



....as it is, this Xconfig works great for me, brining me into a nice
640X480 screen (1024x1024 virtual) with no problems.  The 800x modes also
work great, but I get a slight flicker on my el-cheapo SVGA monitor that
drives me nuts.

This Xconfig also worked fine for me under 1.0y Xfree (the one that comes
with SLS) only that, when you exit the server, you don't get your text mode
back.
This problem was fixed very nicely by upgrading to Xfree 1.1, which takes
care of this Trident woe.

A couple notes on installing Xfree 1.1:
If you already have SLS with X on it, you should go to tsx-11 and grab all
the files under the Xfree-1.1 directory under ../packages/X11 I think.  Read
the README thoroughly, and untar everything at the root.  But note that one
of the xbin TZ files will try to make a symlink for X --> X386.  BUT, when
it tries, tar will crap out because a symlink already exists for X from the
previous distribution of Xfree, causing tar to skip the entire
/usr/X386/bin directory.  What I did was untar the whole thing at the root,
and then untar the ..bin directory separatly, and copy it all 'by hand' to
the real /usr/X386/bin, and then create the symbolic link a-la 'ln X386 X.'

The same Xconfig seems to work under 1.1, even though the readme says there
are differences (I haven't found any in the supplied sample, either).  I'm
running Openlook without a hitch, and my TVGA card can stay a LITTLE while
longer (until it screws up again :) 


I hope this helps you distraught TVGA owners...any comments/cries for help,
feel free to e-mail me!


Note:  I did have it working with only 4-meg...just a little slower, is all.

another Note:  A lot of people have X dying because of the last line of
their .xinitrc file, which usually looks something like 'exec olvwm' or
whatever window manager you are using.  DO NOT put this command into the
background (ie exec olvwm & ) or the X server will die.  Just a little note,
I've noticed it happining quite often...


-- 
--------------------------------------------------------------------------------
Kevin Fisher  ><> 	|  "Thank you.  You can't believe everything you
kfisher3@mach1.wlu.ca   |  see and hear, can you?" - Hendrix, 'EXP'
________________________________________________________________________________