*BSD News Article 6522


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!darwin.sura.net!jvnc.net!nuscc!ntuix!eoahmad
From: eoahmad@ntuix.ntu.ac.sg (Othman Ahmad)
Subject: idiot-proof Xconfig
Message-ID: <1992Oct14.101341.26115@ntuix.ntu.ac.sg>
Organization: Nanyang Technological University - Singapore
X-Newsreader: TIN [version 1.1 PL6]
Date: Wed, 14 Oct 1992 10:13:41 GMT
Lines: 157


I have to move from PC to PC bringing my harddisk which is removable.
The PCs uses differnt cards and monitors. Both of them are Super VGA 0.28in
display but they have resolution of 30 Mhz only.
	One of them is an autosync and autosize monitor. Both 14in size.

Here is a first attempt at an idiot-proff Xconfig that can work on all the
supported chipsets provided the auto detection software works. It works by
giving more frequency options so that the auto clock detector can lock on the
nearest one. The accuracy of the clock detector is +- 1 Mhz so just copy
entries for the other 2 values.

I also notice that the most common clocks are 25 for 640x480 and 36 for 800x600.
The clocks should not exceed the bandwidth of your monitor but it does no harm
but you lose clearity. For example most standard SVGA monitors have bandwidth of
less than 30Mhz. If you can afford the multi-sync 16-in monitors, you may be
able to afford workstations.
	If it failed, it meant that the auto-detection software failed so you
must do it manually, which is most likely to be due to incompatible chipset, or
clock circuitry.
	If you have 80Mhz bandwith monitors, you have to add the mode into
the line Mode. However you'll start with the lowest resolution of 640x480.
You can switch from mode to mode by typeing ctrl,alt,+ keys together.


# $Header: /home/x_cvs/mit/server/ddx/x386/Xconfig,v 1.14 1992/09/12 07:03:09 dawes Exp $
# $XConsortium: Xconfig,v 1.2 91/08/26 14:34:55 gildea Exp $
#
# Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany.
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
# the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation, and that the name of Thomas Roell not be used in
# advertising or publicity pertaining to distribution of the software without
# specific, written prior permission.  Thomas Roell makes no representations
# about the suitability of this software for any purpose.  It is provided
# "as is" without express or implied warranty.
#
# THOMAS ROELL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
# EVENT SHALL THOMAS ROELL BE LIABLE FOR ANY SPECIAL, INDIRECT OR
# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
# 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/"
FontPath	"/usr/X386/lib/X11/fonts/misc/,/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

#Logitech	"/dev/tty00"
mousesystems	"/dev/com1"
#  BaudRate	9600
#  SampleRate	150
#  Emulate3Buttons

#
# The graphics drivers
# First the colour driver
#
vga256
#chipset "et4000"
#clocks	 25 28 33 36 40 45 31 38 50 57 66 73 81 91 64 76

# To disable SpeedUp, use NoSpeedUp
#
  SpeedUp

  Virtual	1024  1024
  videoram	4024	

  ViewPort      0 0

#  Modes	        "1280x1024" "1280x1024i" "1024x768" "1024x768i" "800x600" "640x480"
  Modes	        "640x480" "800x600" "1024x768i"

#
# Next the mono driver
#Video RAM cannot exceed 64Kbyte, so virtual size should not exceed 800x600
vga2

  Virtual	800 600	

  ViewPort      0 0

  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
#	              DISPLAY	    TOTAL
#			|		| 
 "640x480"     24      640  664  760  800    480  491  493  525
               25      640  664  760  800    480  491  493  525
               26      640  664  760  800    480  491  493  525
#               31      640  664  704  832    480  489  492  520
 "800x600"     24      640  664  760  800    480  491  493  525
               25      640  664  760  800    480  491  493  525
               26      640  664  760  800    480  491  493  525
               35      800  824  896 1024    600  601  603  625
               36      800  824  896 1024    600  601  603  625
               37      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"   24      640  664  760  800    480  491  493  525
               25      640  664  760  800    480  491  493  525
               26      640  664  760  800    480  491  493  525
               44     1024 1064 1224 1264    768  777  785  817 Interlace 
               45     1024 1064 1224 1264    768  777  785  817 Interlace 
               46     1024 1064 1224 1264    768  777  785  817 Interlace 

 "1024x768"    24      640  664  760  800    480  491  493  525
               25      640  664  760  800    480  491  493  525
               26      640  664  760  800    480  491  493  525
# "1024x768"    65     1024 1032 1176 1344    768  771  777  806
               65     1024 1032 1176 1344    768  771  777  806
               66     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
#               81     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 

--
Othman bin Ahmad, School of EEE,
Nanyang Technological University, Singapore 2263.
Internet Email: eoahmad@ntuix.ntu.ac.sg
Bitnet Email: eoahmad@ntuvax.bitnet