Sigh. . ..
I was hoping you would figure this out on your own. (that's why my post was so cryptic)
But if you are asking then I will help. . .
A very quick and dirty way of doing this is:
As root,
copy your XF86config-4 file as it is now. (cp /etc/X11/XF86config-4 /etc/X11/XF86config-4.TVoff)
Then copy it again. (cp /etc/X11/XF86config-4 /etc/X11/XF86config-4.TVon)
Note what each name of the copies are. (.TVoff/.TVon)
So now you have three files.
Edit the .TVon file to use TV out. (you can do this by hand or just do the fglrxconfig again, set for TVout and then copy it over to the .TVon file again.)
Make sure that the .TVoff file is set to not use TVout.
Now it is time to make some scripts.
As user,
Save this to a text file and call it "TVon.sh" (minus the quotes)
Code:
echo Type in the root password to turn TV ON. (note: you must restart the X server)
su -c "cp /etc/X11/XF86config-4.TVon /etc/X11/XF86config-4"
exit
Save this to a text file and call it "TVoff.sh" (minus the quotes)
Code:
echo Type in the root password to turn TV OFF. (note: you must restart the X server)
su -c "cp /etc/X11/XF86config-4.TVoff /etc/X11/XF86config-4"
exit
Now place the text files somewhere safe.
run this command:
chmod +x /path/to/your/text/files/TVon.sh
and this:
chmod +x /path/to/your/text/files/TVoff.sh
Now it is time to make buttons for them.
I assume that you are using KDE (if not just fallow along anyway, you will get the idea)
right click on your KDE panel in an empty space. . .
Click
Add > Special Button > Non-KDE Application
Now in the box that popped up:
put /path/to/your/text/files/TVon.sh in the executable area.
and check off the Run in terminal button.
click ok.
Add > Special Button > Non-KDE Application
Put /path/to/your/text/files/TVoff.sh in the executable area.
and check off the Run in terminal button.
click ok.
Now you have two buttons on you panel. Give them different icons by right clicking one and going to properties.
When you click one, it will ask you for your root password. After entering the password the term will quit itself.
Just log out, and log in again and presto the changes are done.