- Using Xvidtune -



    I borrowed / stole this from: Using xvidtune It was a very good explanation and I didn't want to loose it. So here is my copy. With some additional notes concerning SuSE.


Adjusting display / screen position using xvidtune

     Submitted: Mon, 2007-05-21 08:39 -- Jubal Harshaw

   Many moons ago, I had to run an update to the nVidia driver for my Kubuntu box. After installing it, I found that the next time I ran X, my display was offset by about 50px to the right. Normally, it would have been possible to fix this via the monitor, most of which have a convenient "auto" button to solve such issues. However, my set-up involves the use of a KVM switch, which allows me to use a single keyboard, mouse and monitor for more than one PC (four in my case). Ergo, I couldn't just click the auto button to sort this issue out as that would mean ruining the display on the other three systems. I was too lazy to search for a fix at the time, but I finally got annoyed enough to fix it last night.

   I used this to fix my display on a SuSE Linux system. I also got tired of the offset display, which I could fix with the buttons on my display -BUT- then it would be off for WinXP the other way. So, I finally took the time and looked. Found this, saved it and now presenting it to others who may be looking. Four clicks on the Left Button, then Apply and my screen is Centered.

The fix goes as follows:

  1. Open up Konsole / your terminal of choice and navigate to /etc/X11.
  2. Back up your xorg.conf file : sudo cp xorg.conf xorg.conf.pre.xvidtune.
  3. Type sudo nano xorg.conf.
  4. Open up another Konsole terminal and type xvidtune. Read and heed the warning message.
  5. To make things easier at a later stage, note down all the values listed on a piece of paper or in a text editor.
  6. Use the left, right, up, down etc. buttons to adjust the display. Preferably, do this one click at a time and use the test button to check the results.
  7. The values that control horizontal alignment are HSyncStart and HsyncEnd. Similary, vertical positioning is controlled by VSyncStart and VsyncEnd respectively. HTotal and VTotal control width and height.
  8. Once you are satisfied with the display position, note down the values of the variables you have modified.
  9. Go back to the terminal where you are editing xorg.conf. Look for something like Section "Monitor" where you will find a ton of modeline listings.
  10. Look for the modeline pertaining to your current display resolution - for e.g. 1280x1024. Use the values from step 5 to isolate the correct line.
  11. Once you have the correct line, you will very likely not know which number to replace with the new variables. Again use the values from step 5 to narrow things down.
  12. Replace the values with the new values. For e.g., on my machine the original line was:
    modeline "1280x1024@60" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync.
    After adjusting my display's horizontal position, the new line with new HSyncStart and HSyncEnd values looked like the following:
    modeline "1280x1024@60" 108.0 1280 1348 1460 1688 1024 1025 1028 1066 +hsync +vsync.
  13. Once this is done, save the file by pressing CTRL + X, close xvidtune and other applications and restart your display manager using CTRL + ALT + Backspace.
  14. Ideally, you will see your screen correctly positioned now. If you encounter any problems or require more information on xvidtune, type man xvidtune in a terminal to bring up the help page. If you would like to go back to the old configuration, use the backup file you created in step 2 to overwrite the current xorg.conf and restart your display manager again.
Well, the save didn't work!! After a re-start it is still offset to the Right. What I found that I had to do was a FULL update of this SuSE 10.3 system... with nvidia updates. Then it worked. For my SuSE 11.1 upgrade I had to do more or less the same thing. A Full upgrade, once again, with the nvidia drivers included. Below is an extract from my /etc/X11/xorg.conf file for a System with:
    Monitor Model:   "SONY SDM-HS95P"     Grapphics card:   "nVidia GeForce 7300 LE"

Section "Modes"
   Identifier "Modes[0]"
   Modeline "1280x1024" 108 1280 1344 1456 1688 1024 1025 1028 1066 +hsync +vsync

    It can be done... if you persist and do not let the machine beat you.


Copyright © 2004-2009 All rights reserved.