home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 8751 < prev    next >
Encoding:
Text File  |  1992-08-20  |  4.4 KB  |  147 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!usc!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!zelator!jenny
  3. From: jenny@zelator.in-berlin.de (Sebastian Hetze)
  4. Subject: How to measure the VGA clocks
  5. Organization: Puplic-Access-Xenix-System
  6. Date: Thu, 20 Aug 92 23:25:54 GMT
  7. Message-ID: <4Z95ABN@zelator.in-berlin.de>
  8. Summary: a method to measure VGA clocks
  9. Keywords: X11 clocks VGA
  10. Lines: 135
  11.  
  12.  
  13. Hi *!
  14. Since there seem to be a lot of people having trouble to find out the
  15. clocks of their VGA-card, here's a suggestion how to measure them:
  16.  
  17. First of all you need an oscilloscope or an frequency-counter with an
  18. range up to 100kHz (no megaHerz). Then you take something like the
  19. following as Xconfig:
  20.  
  21.  
  22. -- start -- CUT HERE --
  23.  
  24. FontPath    "/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/75dpi/"
  25. #  DontZap
  26.  
  27. #Microsoft    "/dev/ttys0"
  28. MouseSystems    "/dev/ttys0"
  29. #MMSeries    "/dev/ttys2"
  30. #Logitech    "/dev/ttys2"
  31. #MouseMan    "/dev/ttys2"
  32. #Busmouse    "/dev/ttys2"
  33.   BaudRate    1200
  34. #  SampleRate    150
  35. #  Emulate3Buttons
  36.  
  37. #
  38. # The graphics drivers
  39. #
  40. vga256
  41.   #Virtual    800x600
  42.   ViewPort      0 0
  43.   Modes          "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13"
  44. Clocks 25 28 50 51 52 53 54 55 56 57 58 59 60 61 62
  45.   #Staticgray
  46.   #Grayscale
  47.   #Staticcolor
  48.   #Pseudocolor
  49.   #Truecolor
  50.   #Directcolor
  51.   Chipset    "et4000"
  52.   #Chipset    "et3000"
  53.   #Chipset    "gvga"
  54.   #Chipset    "pvga1"
  55.   #Displaysize    1024 768
  56.   #Screenno    0
  57.   #Vendor    "legend"
  58.   #Vendor "hiclock"
  59.   #Videoram    1024
  60.  
  61. ModeDB
  62. # clock  horzontal timing      vertical timing
  63.   "640x480"   28     640  672  768  800    480  490  492  525
  64.  
  65.   "1"   50     920  944 1032 1168    690  714  718  742
  66.   "2"   51     920  944 1032 1168    690  714  718  742
  67.   "3"   52     920  944 1032 1168    690  714  718  742
  68.   "4"   53     920  944 1032 1168    690  714  718  742
  69.   "5"   54     920  944 1032 1168    690  714  718  742
  70.   "6"   55     920  944 1032 1168    690  714  718  742
  71.   "7"   56     920  944 1032 1168    690  714  718  742
  72.   "8"   57     920  944 1032 1168    690  714  718  742
  73.   "9"   58     920  944 1032 1168    690  714  718  742
  74.   "10"   59     920  944 1032 1168    690  714  718  742
  75.   "11"   60     920  944 1032 1168    690  714  718  742
  76.   "12"   61     920  944 1032 1168    690  714  718  742
  77.   "13"   62     920  944 1032 1168    690  714  718  742
  78.  
  79. #
  80. # 1     2     3     4     5     6     7     8     9     10    11    12    13
  81. # 50    51    52    53    54    55    56    57    58    59    60    61    62
  82. # oscilloscope (usec)
  83. # 23,3  22,9  22,5  22,0  21,6  21,2  20,9  20,5  20,1  19,8  19,5  19,1  18,8
  84. # frequency-counter (kHz)
  85. # 42,8  43,7  44,5  45,4  46,2  47,1  47,9  48,8  49,7  50,5  51,4  52,2  53,1
  86. #
  87.  
  88. -- end -- CUT HERE --
  89.  
  90. Then you disconnect your Monitor from the videocard and do an blind
  91. "startx". After a few seconds you can connect the oscilloscope or the
  92. counter to pin 13 of the videobuchse(howeveryoucallitinenglish).
  93.  
  94.             5       1
  95.          ---------------
  96.          \  o o o o o  /
  97.       10  \  o o o o o/ 6
  98. -->        \o o o o o/ 11
  99. |           ---------
  100. |
  101. |               ^
  102. |               |
  103. --------------------- This is the one
  104. (I hope the "graphic" is ok. Pin 13 is the midst in the
  105. short-side-row)
  106.  
  107. What you can see (or count) now, are the horizontal sync-pulses of the
  108. video signal.
  109.  
  110. To find out the clocks you continue
  111. 1. Using an oscilloscope:
  112. To get the true frequency, you have to get the length of one sync-period
  113. in usec (micro seconds). If you are in mode 1 (50MHz)and get for example 29
  114. usec, you take the first number of the usec line in the table (23.3)
  115. and calculate:
  116.         23.3/29*50 = 40.17
  117. that means you have a 40MHz Clock at the third position.
  118.  
  119. 2. Using an frequency-counter
  120. You measure the h-sync frequency (for example 34 kHz) and calculate
  121.         34/42.8*50 = 39.71
  122. which is again a 40MHz clock
  123.  
  124. The clocks on the first two positions are allways 25 and 28 for
  125. compatibility with VGA standard.
  126. To find ot the next clock, switch into the next mode.
  127. To swich in mode 2, you have to do a Alt-Ctrl-Key+ .
  128. After measuring the time (frequency) again, you do the same
  129. calculation, but you use 22.9 instead of 23.3 (43.7 instead of 42.8) 
  130. and so on.
  131.  
  132. Finaly, you stop the X-server by typing Alt-Ctrl-Backsp and that's it.
  133.  
  134. If you send me your results (including the exact type of your VGA-card)
  135. i'll post an update of the vga.dbase.
  136.  
  137. Sebastian
  138.  
  139.  
  140. -- 
  141. --
  142.                                                    she@soho.in-berlin.de
  143. Sebastian Hetze
  144.                                               jenny@zelator.in-berlin.de
  145.