home *** CD-ROM | disk | FTP | other *** search
/ Caldera Network Desktop 1.0 / caldera-network-desktop-1.0.bin / doc / HOWTO / mini / Modeline < prev    next >
Text File  |  1995-02-22  |  7KB  |  141 lines

  1. -------------------------------------------
  2.   ModeLine-HOWTO by Rick Niles. 
  3.     niles@axp745.gsfc.nasa.gov
  4. -------------------------------------------
  5.   Version 1.0   2/11/95
  6. -------------------------------------------
  7.  
  8. The file X11R6/lib/X11/doc/VideoModes.doc explains how to setup video
  9. timings for your video card / monitor combination, however I found
  10. this to be a long overly complicated explanation of something really
  11. not that complex.  Please let no one take offense at this, since
  12. without this file I don't think I would ever have figured out how to
  13. configure my setup and I am therefore very thankful to the writers of
  14. that document. I just thought I would give my shortened explanation of
  15. how to setup your XF86Config file for XFree86 and in particular
  16. information about the Mach64 timings I've played with.
  17.  
  18. There are three major sections of the XF86Config file that deal with
  19. the video card and monitor: the monitor section, the graphics device
  20. section and the screen section. Ironically the timings I'm discussing
  21. in this document concentrate on Monitor section even though I use
  22. many specs from the video card.
  23.  
  24. In regard to the graphics device section I suggest commenting out any
  25. "Clocks" given in the file when setting up a new server and/or video
  26. card and let "X -probeonly" determine what Clocks are good for your
  27. card / server combination.  I recommend this above just putting in the
  28. numbers given in the manual because exact timings on cards will vary.
  29. Redirect this information into a file and copy it into the XF86Config
  30. file.
  31.  
  32. Now the hard part about setting up a XF86Config file is the
  33. definitions of the Modelines.  For many non-ATI cards these number must
  34. be multiples of 8.  For ATI cards they need NOT be.  There are 10
  35. arguments after each Modeline directive:
  36.  
  37. Modeline <name> <DCL> <HR> <HPS> <HPE> <HFL> <VR> <VPS> <VPE> <VFL>
  38.  
  39.  (name) Any name you'd like to assign to this mode, in double quotes.
  40.         The most common name is of the form HRxVR (e.g. "640x480")
  41.         However if you would like to have multiple Dot Clocks for a
  42.         give resolution setting your might try HRxVRxDCL
  43.         (e.g. "640x480x35.0")
  44.  
  45.  (DCL) Dot Clock: This should be one of the dot clocks listed in the
  46.     manual or found in the Clocks section from the "X -probeonly"
  47.     command. 
  48.  
  49.  (HR & VR) Horizontal and Vertical Resolution: This also an easy one, it's
  50.            the number pixels you want to see across and down the
  51.            screen when you're in this mode.
  52.  
  53.  (HPS, HPE, VPS, VPE) Hortz. & Vertical Pulse Start and End: This
  54.            controls where the image of the screen will be placed
  55.            relative to the physical screen.  These are the numbers to
  56.            play with if the image is biased toward the edges of the
  57.            physical screen.  For starters just make them evenly spaced
  58.            between the resolution numbers (HR,VR) and the field length
  59.            numbers (HFL,VFL). 
  60.            If the image is biased toward the left (right), increase
  61.            (decrease) the HPS and the HPE.
  62.            If the image is biased toward the top (bottom), increase
  63.            (decrease) the HPS and the HPE.
  64.  
  65.  (HFL,VFL) Horizontal & Vertical Field Length: Now these are the most
  66.            important numbers of all.  If you set these numbers too
  67.            low or high for your monitor the XF86 server will reject
  68.            your whole modeline.  The KEY relation to remember is:
  69.  
  70.               ---------------------------------------------
  71.           | DCL = HSF * HFL  and DCL = RR * VFL * HFL |
  72.               ---------------------------------------------
  73.            
  74.        where HSF = Horiz. Scan Freq.   (kHz)
  75.                  RR  = (Vert.) Refresh Rate (Hz)
  76.  
  77. These two numbers are given as a valid range for a particular monitor.
  78. Try exceeding the specs and see how far you can go before funny
  79. things start happening.
  80.  
  81. These two equations give you all the information you need to set up
  82. your Modelines for a particular set-up.  They leave two degrees of
  83. freedom (i.e. two unknowns), for a chosen Dot Clock (DCL).  As HFL and
  84. VFL get smaller, the screen will get wider and taller.  However, you
  85. can not make these values arbitrarily close to the HR and VR since as
  86. they approach these values the HSF and RR will exceed your monitor's
  87. cabilities.  Therefore one way of getting the maximum image size
  88. (hence using the most of your physical monitor's real-estate) for a
  89. particular Dot Clock (DCL) is to plug in the maximum HSF and RR your
  90. monitor is rated for.  If the image is still too small your only option is
  91. to reduce the Dot Clock (DCL) (or try exceeding your monitor specs).
  92. This fact troubled me for sometime as it seems counter-intuitive,
  93. however try to get comfortable with it as it is true none-the-less.
  94.  
  95. The other way I thought of to resolve the extra degrees of freedom is
  96. to use the video card table given in the manual of my Mach 64.  The
  97. manual gave DCL, HSF, & RR, hence I could solve for VFL & HFL using
  98. the equations above. I thought this might be a good idea since perhaps
  99. in some way the card was "designed" to work at these frequencies, and
  100. hence they make work better in some way. (However, I now seriously
  101. doubt that assumption.) Here is that table:
  102.  
  103.  
  104. HFL and VFL values for XF86_Mach64 corresponding to ATI Mach64 Manual
  105.  
  106. Display Screen  Refresh  Horizon.  Pixel   Horizon.    Vertical  
  107.  Resolution      Rate     Freq.    Clock   Field Len.  Field Len.
  108.  (pixels)        (Hz)     (kHz)    (MHz)   (Pixels)    (Pixels)  
  109.  (HRxVR)         (RR)     (HSF)    (DCL)    (HFL)       (VFL)    
  110. -----------------------------------------------------------------
  111.  640x 480         60      31.5     25.2      800         525
  112.  640x 480         72      37.7     32.0      849         524
  113.  640x 480         75      37.5     35.0      933         500
  114.  640x 480         90      47.9     39.9      833         532
  115.  640x 480        100      53.0     44.9      847         530
  116.  800x 600         48      33.8     36.0     1065         704
  117.  800x 600         56      35.2     36.0     1023         629
  118.  800x 600         60      37.9     39.9     1053         632
  119.  800x 600         70      44.5     44.9     1009         636
  120.  800x 600         72      48.0     50.4     1050         667
  121.  800x 600         75      49.5     49.5     1000         660
  122.  800x 600         90      57.1     56.6      991         634
  123.  800x 600        100      62.5     67.5     1080         625
  124. 1024x 768         43      35.5     44.9     1265         826
  125. 1024x 768         60      48.3     65.0     1346         805
  126. 1024x 768         70      56.5     75.0     1327         807
  127. 1024x 768         72      58.2     75.0     1289         808
  128. 1024x 768         75      60.0     78.8     1313         800
  129. 1024x 768         90      76.2    100.0     1312         847
  130. 1024x 768        100      79.0    110.0     1392         790
  131. 1152x 864         43      45.9     65.0     1416        1067
  132. 1152x 864         60      59.0     80.0     1356         983
  133. 1152x 864         70      66.1    100.0     1513         944
  134. 1152x 864         75      75.1    110.0     1465        1001
  135. 1152x 864         80      80.0    126.0     1575        1000
  136. 1280x1024         43      50.0     80.0     1600        1163
  137. 1280x1024         47      50.0     80.0     1600        1064
  138. 1280x1024         60      64.0    110.0     1719        1067
  139. 1280x1024         70      74.0    126.0     1703        1057
  140. 1280x1024         75      80.0    135.0     1688        1067
  141.