Configuring resolution via xorg.conf

Outline
The xorg.conf is a integral part of running XBMC in X via for e.g. xinit in some controllable manner. While in recent Linux the device drivers have improved considerably and deem xorg.conf unneeded, it still has its niche. If you ever had problems getting the correct resolution or correct modelines on your HTPC this is an easy guide. You can also use this guide to tweak 23.976p and 24p modelines for smoother playback..

Introduction
This instructions and methods outlined here should be quite "generic", use this guide on your own risk. if you end up without a picture on your screen restore the backup xorg.conf or rename existing if no backup exists. References

Preparing xorg.conf for tweaking
Backing up any existing xorg.conf is a integral step in assuring your can revert any errors.

Refresh rate & Modelines values
These are very important values to get right.

Assembling your xorg.conf
Now that we got both HorizSync and VertRefresh and a working modeline lets put it in our xorg.conf.