Here's a xorg.conf for my Samsung LN-S3251D HDTV when the TV is connected to a computer via a HDMI-DVI cable. It only works with the binary Nvidia Linux driver. The actual resolution of the monitor is set to 1280x720, but the effective resolution is 1176x664, to avoid overscan.
For the VGA connector, I used the following modeline:
ModeLine "1360x768" 85.8 1360 1428 1540 1792 768 771 777 795 +hsync +vsync/~leiz/hardware/tv/index.php last updated on Sun May 18 2008