I use a custom config file in /etc/X11/xorg.conf.d to set the resolution of my desktop PC's monitor.
Code:
$ cat /etc/X11/xorg.conf.d/10-soyo_monitor.conf
Section "Monitor"
Identifier "Monitor0"
VendorName "Soyo"
ModelName "DYLM2086"
DisplaySize 432 270
HorizSync 30.0 - 86.0
VertRefresh 56.0 - 76.0
ModeLine "1680x1050" 147.1 1680 1784 1968 2256 1050 1051 1054 1087 -hsync +vsync
Option "PreferredMode" "1680x1050"
EndSection
The display size came from an actual measurement, HorizSync and VertRefresh from my monitor's specs, and the appropriate modeline from a run of gtf (in my case, with a resolution of 1680x1050 at 60Hz):
Code:
~$ gtf 1680 1050 60
# 1680x1050 @ 60.00 Hz (GTF) hsync: 65.22 kHz; pclk: 147.14 MHz
Modeline "1680x1050_60.00" 147.14 1680 1784 1968 2256 1050 1051 1054 1087 -HSync +Vsync