home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 22874 < prev    next >
Encoding:
Text File  |  1993-01-06  |  4.8 KB  |  91 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!nwnexus!danubius
  3. From: danubius@halcyon.com (Joseph R. Pannon)
  4. Subject: An X386 question ... and the answer
  5. Message-ID: <1993Jan6.050645.5566@nwnexus.WA.COM>
  6. Sender: sso@nwnexus.WA.COM (System Security Officer)
  7. Organization: Northwest Nexus Inc. (206) 455-3505
  8. Date: Wed, 6 Jan 1993 05:06:45 GMT
  9. Lines: 80
  10.  
  11. A few days ago I posted a message here asking help in adjusting some
  12. video parameters for X386.  I stated my problem as follows:
  13.  
  14. >I noticed that while my 640x480 resolution screen is nicely centered on
  15. >the screen (though the clock could be more circular!), the 800x600
  16. >screen is very much in a right-shifted position. To a lesser degree, so
  17. >is the 1024x768 screen, too.  Since I calculated the Xconfig modes
  18. >figures right "by the book" and even tried to play with the 
  19. >pre-sync and post-sync figures somewhat, I haven't had much luck to
  20. >bring that display to the center of the screen from that right side.
  21. >Can somebody give me a hint what I might still try to accomplish that?
  22. >It seems that the documents on this subject contradict each other on
  23. >which way the horizontal frame is being traced; whether it starts from
  24. >the left or right (when facing the screen), so I am not even sure which
  25. >side of the screen has the horizontal sync pulse.  In case somebody
  26. >might want to be able to help me with this, here is the relavent line
  27. >from the Xconfig file:
  28.  
  29. > "800x600"   50     800  832 1008 1040    600  609  619  667
  30.  
  31. >As I mentioned, the window looks OK and proportionate, just shifted
  32. >entirely to the right edge of my screen.
  33.  
  34. Thanks to Savio Lam's tip, I was able to fix the problem and since this
  35. might be a useful tip for other out there as well, let me share it with you.
  36.  
  37. As you may see in the above "800x600" example, the sync period is nicely
  38. centered between the end of viewable display (800) and end of horizontal
  39. scan (1040) dot positions, with 32 dots worth of pre-sync and post-sync
  40. periods.  That's how the "book" (the Video.tutorial) recommends it).
  41. Unfortunately, in my case this gave me asymmetric side margins; the picture
  42. was too much to the right!  As it turned out, by sliding the sync period more
  43. to the end of the horizontal scan position (1040) the picture could be
  44. shifted to the left.  In pre- and post-sync terms: as you increase the
  45. pre-sync periods (or decrease the post-sync period!) the picture is shifted
  46. to the left.  After several tries, I was able to center my 800x600 display
  47. in the horizontal dimensions with the following video mode params in the
  48. Xconfig file:  800  856  1032 1040.  As you see from it, the pre-sync period
  49. increased, and the post-sync period decreased by 24 dots worth of time.  (Of
  50. course this translates to BOTH figures between 800 and 1040 EQUALLY
  51. INCREASING by the same number of dots!)  As you may also remember, all
  52. horizontal figures must be in multiples of 8!  From the above also follows,
  53. that if you want to shift your display to the right, instead of left, you
  54. have to adjust the pre-sync figures in the opposite direction.
  55.  
  56. Even though the following was not the subject of my original post, I did
  57. experiment also with the vertical adjustment of the picture, using the same
  58. principle of sync period shifting.  It so happened, that my 800x600 display
  59. also needed some adjustment verticaly, as it had a noticably smaller lower
  60. margin than upper margin.  So, it needed to be shifted up slightly.
  61. Here is what I found out: by shifting the vertical sync period AWAY from the
  62. viewable dot position (600), i.e., by INCREASING the vertical pre-sync, the
  63. picture MOVES UP.  By decreasing the pre-sync period, the picture drops
  64. lower.  (Remember to adjust the post syncs accordingly!)  So finally, I was
  65. able to attain a "perfect" centering of my "800x600" display with the
  66. following line in my Xconfig file:
  67.  
  68.  "800x600"   50     856  832 1032 1040    600  616  626  667
  69.  
  70. (As you recall, the "multiple of 8" rule does not apply in the vertical
  71. video parameter values.)  I successfully used this technique to also center
  72. my 1024x768 res display.
  73.  
  74. I have not experienced with adjusting the length of the sync period itself,
  75. and it's entirely possible that positioning of display could also be
  76. influenced with that as well.  Somebody just might do that in the future and
  77. report back his or her findings.  I was able to achieve my goal by keeping
  78. the length of sync period constant, and only making identical adjustments in
  79. the pre- and post sync periods.
  80.  
  81. Sorry for the longer explanation, but as this info was not really covered in
  82. any of the video tutorials that I could find, I and Savio thought that this
  83. information might be useful to the larger audience here.
  84.  
  85. Now, if I only knew how to handle correctly the fractional clock rates that
  86. the clock.exe program detects and reports, but cannot be used in Xconfig
  87. because it only takes integers...
  88.  
  89. Regards,
  90. Joe Pannon
  91.