You probably just need to get the PRAM battery replaced. The TV won't be the "monitor" unless you set it that way from software in Apple -> System Preferences -> Displays. On some Macs just closing the lid forces the external display to be the monitor. But the VGA adapter may have different ideas. It is better to have an HDMI TV and a DVI to HDMI adapter.