I'd personally get the thing completely going, no need to 'edit text files' or any typing whatsover from the TV, and then detach the monitor, and set the TV.
Anyway...
What release of nvidia drivers are you using? The TwinView Options is where you are going to want to look. I'm away from my computer right now, so I can't give you exactly what to set, but looking at the
Nvidia.readme maybe:
Option "ConnectedMonitor" "string"
Where "string" is something like CRT,TV
Option "TwinView" "enable"
Option "TwinViewOrientation" "Clone"
Try those..
Cool