Definite's Extractor

My findings on Life, Linux, Open Source, and so on.

[xorg.conf] Modeline that works with xvidtune!

I have been using Nvidia video card for a while. I’ve tried nv, nouveau, and the proprietary nvidia. I cannot use nouveau because it does not support static rotation yet.

Proprietary nvidia support driect rendering even when the screen is rotated, but Gtk application such as gvim does not reflesh well with it. I have to click on empty lines in gvim to reveal the true nature of the lines!

nv also has it own problem. When starting X, the display area goes rightward and out of the monitor. Indeed monitor’s OSD can move it back, but you have to move it again when play with console mode. How annoying.

Some references kindly tell me that xvidtune address this problem. According to them, you only need to adjust the screen with it, click the “show” button, then paste the output to the xorg.conf. But guess what, I don’t need to post this article if it “JUST-WORK”. It just does not work.

This is the case that Google sucks but man pages rules. 🙂
Google tells you to add “option PreferedMode” which only work for RandR1.2 drivers.
In man 5 xorg.conf, section Screen, subsection Display, option Modes:

They must correspond to those specified or referenced in the appropriate Monitor section (including implicitly referenced built-in VESA standard modes). The server will delete modes from this list which don’t satisfy various requirements. The first valid mode in this list will be the default display mode for startup. ….

Modes don’t have to be in format “<resX>x<resY>” but anything you want.
The “<resX>x<resY>” is for auto-generated Modeline. For your own custom Modeline, better have you own id such as:

Modeline "1280x1024_Centered"   108.00   1280 1344 1456 1688   1024 1025 1028 1066 +hsync +vsync

And then put “1280x1024_centered” in the front of the Modes section so it will be default.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: