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

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!caen!sdd.hp.com!ux1.cso.uiuc.edu!randall
  3. From: Upholder@uiuc.edu (THE Upholder of Truth)
  4. Subject: X11 Config hints (was: Wanted:clocks.exe for X11-SVGA-config.???)
  5. Message-ID: <BsvoBw.8pA@ux1.cso.uiuc.edu>
  6. Sender: randall@ux1.cso.uiuc.edu (THE Upholder of Truth)
  7. Reply-To: Upholder@uiuc.edu (THE Upholder of Truth)
  8. Organization: The University of Illinois at Urbana-Champaign (UIUC)
  9. References: <arnd.50@informatik.rwth-aachen.de>
  10. Date: Wed, 12 Aug 1992 15:57:17 GMT
  11. Lines: 241
  12.  
  13. arnd@informatik.rwth-aachen.de (Arnd Gehrmann (Tel:21205,Raum:4203)) writes:
  14.  
  15. >Where can be found the DOS-program clocks.exe
  16. >used for detecting the SVGA-clock-rates?
  17. >I need it for configuring an SVGA-card for X11 /X386.
  18. >Has someone experience in configuring
  19. >X11 under Linux for an SVGA:EIZO VA-41
  20. >and Monitor:EIZO 9070 with 1024x786-resolution?
  21.  
  22. actually, I have found that clocks.exe lies about the clocks.
  23. (or more accurately, it doesn't find them all).
  24.  
  25. Oren wrote a guide to setting up X11 for me and has granted permission
  26. for me to repost it (he even said I could take the credit for it.. but
  27. I won't.. =)
  28.  
  29. It is included below:
  30.  
  31. ======== cut here ========
  32.  
  33. From oren@chaos.cs.brandeis.edu Thu Aug  6 14:03:18 1992
  34.  
  35. Howdy,
  36. -=-=-
  37.  
  38.      Well, here's a hopefully descriptive enuf way for you to get X11 up
  39. and running on your machine.  The most important file in this case is the
  40. file /usr/lib/X11/Xconfig.  This file has fields in it that tell X11 where
  41. to find some of the hardware and screen measurements.  I'll go thru those
  42. that you might need to change from the default Xconfig to get X11 configured
  43. properly.
  44.  
  45. First variable in Xconfig you should check is the FontPath variable.  This
  46. variable tells X11 where to find the fonts information it needs to be able
  47. to display things.  Since I have the 75dpi font package installed, I use:
  48.  
  49. FontPath    "/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/75dpi/"
  50.  
  51. if you don't have the 75dpi font package installed, make sure to use:
  52.  
  53. FontPath    "/usr/lib/X11/fonts/misc/"
  54.  
  55. [Note: you need the 75dpi fonts to use olvwm -- Open Look Virtual Window
  56.  Manager -- but I installed it so I can have a more ``complete'' X11 system].
  57.  
  58. You shouldn't have to touch anything relating to the Keyboard section of the
  59. Xconfig.  I didn't and so I don't know much about it.
  60.  
  61. Next comes the mouse configuration.  In this section, the most important thing
  62. to do is get the right type of mouse and the device its installed on!  If you
  63. look at the default stuff it should look something like this:
  64.  
  65. Microsoft       "/dev/ttys0"
  66. #MouseSystems   "/dev/ttys2"
  67. #MMSeries       "/dev/ttys2"
  68. #Logitech       "/dev/ttys2"
  69. #MouseMan       "/dev/ttys2"
  70. #Busmouse       "/dev/ttys2"
  71.   BaudRate      1200
  72. #  SampleRate   150
  73.   Emulate3Buttons
  74.  
  75. Since I have a serial, 2 button Microsoft mouse I use the Microsoft entry.  I
  76. also used the MCC-interim 96c release and my mouse is on COM1 == device with
  77. major 4, minor 64.  On the MCC installation, this translates to /dev/ttys0:
  78.  
  79. crw-rw-rw-   1 root     root       4,  64 Aug  5 01:10 /dev/ttys0
  80.  
  81. The Emulate3Buttons came with the default Xconfig and should probably be left
  82. alone (same goes for the BaudRate).  The Emulate3Buttons variable tells X11
  83. that the mouse is a 2 button mouse and when both buttons are pressed, it should
  84. emulate the third button (as normally X11 uses 3 button mice :).
  85.  
  86. Finally we come to the most important section -- the one that most people have
  87. trouble with -- the screen stuff.  [this is the vga256 section]
  88.  
  89. Ok... as you said, you have the clock.exe program that you used to get your
  90. clock values from.  I didn't particularly find it that useful... especially
  91. with X11 v1.1.  See, at the time, I had to use the HiColor (hiclock?) hack
  92. to get things to work properly.  Anyway, v1.1 seems to figure out the clock
  93. values correctly and sends the info out to stderr (I think :).  So, what you
  94. should do is:
  95.  
  96. startx 2> startx.clks
  97.  
  98. I don't know what yer current situ is with X -- how far you have it working or
  99. non-working... but as soon as you exit it, take a look at startx.clks.  In my
  100. case it looks like:
  101.  
  102. waiting for X server to shut down X386 Version 1.2 / X Windows System
  103.  [linux v1.1] (protocol Version 11, revision 0, vendor release 5000)
  104.  
  105. VGA256: et4000 (mem: 1024k clocks: 25 28 56 70 78 71 57 62 14  0 33 36 40 30
  106.   0 32)
  107.  
  108. Notice obviously how the chipset is an et4000 with 1 meg on the card and then
  109. the clock values X11 was able to find.  These are the clock values I use on
  110. the "Clocks" line.  So, the beginning of my vga256 section looks like:
  111.  
  112. vga256
  113.   Virtual       1024 768
  114.   ViewPort      0 0
  115.   Modes         "640x480" "800x600" "920x690" "1024x768i"
  116.   #Modes                "1024x768"
  117.   #Clocks 25 28 57 72 78 68 50 62
  118.   Clocks 25 28 56 70 78 71 57 62 14 0 33 36 40 30 0 32
  119.   #Staticgray
  120.   #Grayscale
  121.   #Staticcolor
  122.   #Pseudocolor
  123.   #Truecolor
  124.   #Directcolor
  125.   Chipset       "et4000"
  126.   #Chipset      "et3000"
  127.   #Chipset      "gvga"
  128.   #Chipset      "pvga1"
  129.   #Displaysize    1024 768
  130.   #Screenno    0
  131.   #Vendor    "legend"
  132.   Videoram    1024
  133.  
  134. The "Virtual" section translate to how big you want your desktop to be.  For
  135. example, when I use a 640x480 screen, when I reach the borders, since the
  136. desktop of 1024x768 can't be seen on a screen of only 640x480, the window
  137. slides downward and sideways.  So you can only see a 640x480 into the desktop
  138. at any time.  ViewPort should probably be left alone (from the default).  Modes
  139. tells X11 which display modes you have available.  The above 4 all work for me,
  140. so once I'm in X I can use the CTRL+ALT+<NumericPad +> and <NumericPad -> to
  141. go to the next and previous modes, respectively.  As you can see, the next few
  142. variables I left as they came in the default Xconfig, and uncommented the
  143. Chipset variable to tell X11 I'm using an et4000 chipset.  After a few more
  144. variables that I left commented out, Videoram is set to 1024 == 1024K == 1meg
  145. (which is how much memory I have on the card).  That's it for that.  Next comes
  146. the ModeDB (Mode DataBase) section.  In my case I have:
  147.  
  148. ModeDB
  149. # clock  horzontal timing      vertical timing
  150.  "640x480"   0      640  672  768  800    480  490  492  525
  151.  "640x480"   25     640  672  768  800    480  490  492  525
  152.  
  153.  "800x600"   71     800  832  1096  1128  600  600  613  630
  154.  
  155. # "800x600"   40     800  816  952 1056    600  608  610  633
  156. #             36     800  832  966  966    600  600  609  631
  157. #             39     800  872  968 1104    600  600  606  624
  158. #             36     800  864  896 1008    600  600  606  624
  159.  
  160.  "920x690"   71     920  952 1088 1168    690  688  718  724
  161.  
  162.  "1024x768i" 40    1024 1064 1224 1264    768  777  785  817   Interlace
  163.  
  164. # "1024x768"  28    1024 1092 1220 1344    768  786  791  810
  165. #             62    1024 1096 1272 1328    768  776  778  808
  166. #             62    1024 1072 1176 1272    768  778  779  804
  167. #             62    1024 1072 1200 1240    768  766  782  786
  168.  
  169.  "1152x900"  57    1152 1184 1288 1360    900  898  929  939   Interlace
  170.  
  171. What these translate to is which clock belongs to which type of screen.  As
  172. you can see, both the 0 and 25 clocks will let me view a 640x480 screen
  173. well.  Also, while both the 71 and 40 clocks let me view 800x600 well, I
  174. decided that the 71 clock showed had a sharper image.  I clock field is
  175. really the one you should play with to get the right nicest looking screen.
  176. I admit I did this with trial and error, but there is a better way to do this.
  177. Remember that the Mode and Clocks lines looks like:
  178.  
  179.   Modes         "640x480" "800x600" "920x690" "1024x768i"
  180.   Clocks 25 28 56 70 78 71 57 62 14 0 33 36 40 30 0 32
  181.  
  182. and lets say the 800x600 stuff looks likes:
  183.  
  184.  "800x600"   71     800  832  1096  1128  600  600  613  630
  185.  
  186. so what you can do is use:
  187.  Modes        "800x600x1" "800x600x2" "800x600x3" "800x600x4"..."800x600x16"
  188.  
  189.  [note that I use the elipse cause I'm lazy... cause it won't work in the
  190.   modes line, as far as I know, and you need to enter all of them :-]
  191.  
  192. Next you enter in the ModeDB part:
  193.  
  194.  "800x600x1"   25     800  832  1096  1128  600  600  613  630
  195.  "800x600x2"   28     800  832  1096  1128  600  600  613  630
  196.  "800x600x3"   56     800  832  1096  1128  600  600  613  630
  197.  "800x600x4"   70     800  832  1096  1128  600  600  613  630
  198.  [...]
  199.  "800x600x16"   32     800  832  1096  1128  600  600  613  630
  200.  
  201. I think you get the picture :-)  What this lets you do is go into 800x600 mode
  202. with every clock you have and use CTRL+ALT+<NumericPad +> (and -) to switch
  203. back and forth between clocks to see which one lets you view 800x600 clearly.
  204. Make yourself a little chart so that you know which clock value you are at
  205. at any time.  With the above, I'd enter X11 with a clock of 25 then after the
  206. first CTRL+ALT+<NumericPad +> I'd be put in clock 28, then 56, and so forth.
  207. After you decide which one is the best for you can exit X and delete the others
  208. and do the same for "1024x768", etc.  Also, BEFORE you move on to the next
  209. screen (from 800x600 -> 1024x768) you might wanna try to put the Interlace
  210. keyword with all the entries and try it, like:
  211.  
  212.  "800x600x1"   25     800  832  1096  1128  600  600  613  630    Interlace
  213.  "800x600x2"   28     800  832  1096  1128  600  600  613  630    Interlace
  214.  "800x600x3"   56     800  832  1096  1128  600  600  613  630    Interlace
  215.  "800x600x4"   70     800  832  1096  1128  600  600  613  630    Interlace
  216.  [...]
  217.  "800x600x16"   32     800  832  1096  1128  600  600  613  630 Interlace
  218.  
  219. And try to see if you get a better interlaced picture than you do
  220. non-interlaced.  I, for example, can't seem to have non-interlaced 1024x768
  221. mode.  Hence I use interlaced (my "1024x768i" -- the i is only there to tell me
  222. that its interlaced not X11, for X11 to know that the Interlaced keyword is
  223. placed at the end of the line as above).  After you are done playing around
  224. with all this you can delete any extra stuff (or comment it out) and put the
  225. ones you like in the Mode line so you can switch back and forth between them
  226. while you are in X.  I find it useful, for example, to usually work with only
  227. 640x480 screen [especially since I use olvwm and have a virtual desktop] or
  228. 800x600 screen and only flip to a higher resolution when I need it -- like when
  229. trying to view a DVI with xdvi.  But, I guess you'll make up your mind after
  230. you play around with things a bit :-)
  231.  
  232. Well, hope this clears up some questions you might have/had... Hope you get
  233. things to work properly so you can X to your heart's content :-)  [I'm a non
  234. graphics/ascii guy, m'self :-].  And if you have any questions, you know
  235. where to reach me!
  236.  
  237. G'luck and have a good one,
  238.             Oren.
  239. -- 
  240. Oren Kastner                           E-mail address:
  241. Brandeis University                    oren@chaos.cs.brandeis.edu
  242.  
  243.  
  244. ====== end cut here =======
  245.  
  246. If you have any further problems, you can try and get ahold of
  247. me on IRC or mail me at Upholder@uiuc.edu
  248.  
  249. -- 
  250. The Upholder of Truth                  I am not only ready to
  251. Upholder@uiuc.edu (BSD/ASCII mail)          retract this, but also
  252. jar42733@sumter.cso.uiuc.edu (NeXT mail)    deny I said anything.  =)
  253. wi.4173@wizvax.methuen.ma.us (anon. mail)   This is *NOT* CCSO's opinion.
  254.