Thursday, May 3, 2007

Setting vssync and hsync on Xorg.conf

A friend of mine had just purchase a new monitor recently 17 inch wide screen with max resolution at 1440*900. Man i'm quite jealous with his monitor damn you. The colour is crisp the picture is sharp. However when i run a movie it hurst a lot!! I think there must be soethin wrong with the settin of vsync and hsync. To solve this issuse we use this gtf to calculate the VESA Mode lines. (it works for all cards).
For example let say i wan a dispaly with 1440x900 with refresh rate 60Hz. So what i did was

hub@Hub:~$ gtf 1440 900 60

# 1440x900 @ 60.00 Hz (GTF) hsync: 55.92 kHz; pclk: 106.47 MHz
Modeline "1440x900_60.00" 106.47 1440 1520 1672 1904 900 901 904 932 -HSync +Vsync


Now paste the entire line under the section [Monitor] on your xorg.conf

Section "Monitor"
Identifier "SyncMaster"
Option "DPMS"
# 1440x900 @ 60.00 Hz (GTF) hsync: 55.92 kHz; pclk: 106.47 MHz
Modeline "1440x900_60.00" 106.47 1440 1520 1672 1904 900 901 904 932 -HSync +Vsync
EndSection



Now got to screen at the Subsection of Display put the 1440x900 right after the Modes

SubSection "Display"
Depth 24
Modes "1440x900" "1240x800" "1024x768
"

Press Ctrl + Alt + Backspace to kill your current X.. :)

No comments: