adam0509
December 25th, 2006, 05:38 PM
Hi,
EDIT : Important note
I also made my TV-out worked with the nvtv tool. (better, cause I get clone, but in 640*480)
Introduction
This method is about "how making TVout works" when your card only support 1 display at a time (NO clone, NO dual display).
This HOW-TO has been tested for the following card :
- Geforce 256 DDR
- <add your card here>
And should work for :
- TNT
- TNT2
and basically, all cards having TV-OUT and a driver supporting tvout feature.
What we gonna do
In this method, we gonna create 2 files :
* xorg.conf.notv : It's the normal xorg
* xorg.conf.tv : It's the xorg for the TV
And we gonna make a script to switch between tv-out and normal display.
1rst : Making TV-out works
Now add these lines to your xorg.conf :
sudo gedit /etc/X11/xorg.conf
Device
Section "Device"
Identifier "Device1"
Driver "nvidia"
Option "TVOutFormat" "SVIDEO"
Option "TVStandard" "PAL-B"
Option "ConnectedMonitor" "TV"
EndSection
Most important point here is the option "ConnectedMonitor"
Monitor
Section "Monitor"
Identifier "Television" #TV
HorizSync 30-50
VertRefresh 60
EndSection
Vertrefresh to 50 if old PAL-TV, maybe 100 for recent tv that support 100Hz, but not sure.
Screen
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Television"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "640x480"
EndSubSection
EndSection
Most important here is "Device" same as in device section, and "Monitor" same as...Monitor section ! (Sure you guess it ;) )
You can change depth and résolution if you want.
Last but not least : Server Layout
Section "ServerLayout"
Identifier "Basic Layout"
Screen "Screen1"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection
Important here is "Screen", same as in the screen section.
Remember the previous value of this one, cause you will have to "sudo nano /etc/X11/xorg.conf" and change the screen value to the default value after testing.
NOW SAVE YOUR XORG AND TEST (CTRL + ALT + BSPACE ++ startx)
Script to switch
From this point, you should have get a display on your TV.
So create 2 different files in your home directory
* xorg.conf.notv : xorg with screen
* xorg.conf.tv : xorg working with TV
Copy them to /etc/X11/ :
sudo cp xorg.conf.notv /etc/X11
sudo cp xorg.conf.tv /etc/X11
You now just need a script that we gonna call "nvidia" (still in your home), in where you will add these lines :
#!/bin/bash
case $1 in
tv ) cp /etc/X11/xorg.conf.tv /etc/X11/xorg.conf ;;
notv ) cp /etc/X11/xorg.conf.notv /etc/X11/xorg.conf ;;
* ) echo
echo "Usage"
echo
echo " tv - use TV"
echo " notv - use CRT"
;;
esac
okay now you have to make the script executable, via nauthilus/thunar or with command :
chmod 755 nvidia
and place it in in a executable folder such as :
sudo cp nvidia /usr/local/bin
Using the script
To choose TV, type in a console :
nvidia tv
Then restart X : CTRL+ALT+BSPACE. Type "startx" if X does not restart.
If all is correct, X should startx on your TV.
To return to the normal display type in a console :
nvidia notv
Then restart X.
little trick, if you type nvidia :
$ nvidia
tv - use TV
notv - use CRT
This is made because of the echo lines contains inside the script.
Credits :
HOWTO by me.
Thanks to all french user that are workings such hard to maintain the french wiki (http://doc.ubuntu-fr.org) ;)
If you have any suggestion/question, post here.
You are free to copy, redistribute, correct, improve this document, even if you don't quote me in credits.
EDIT : Important note
I also made my TV-out worked with the nvtv tool. (better, cause I get clone, but in 640*480)
Introduction
This method is about "how making TVout works" when your card only support 1 display at a time (NO clone, NO dual display).
This HOW-TO has been tested for the following card :
- Geforce 256 DDR
- <add your card here>
And should work for :
- TNT
- TNT2
and basically, all cards having TV-OUT and a driver supporting tvout feature.
What we gonna do
In this method, we gonna create 2 files :
* xorg.conf.notv : It's the normal xorg
* xorg.conf.tv : It's the xorg for the TV
And we gonna make a script to switch between tv-out and normal display.
1rst : Making TV-out works
Now add these lines to your xorg.conf :
sudo gedit /etc/X11/xorg.conf
Device
Section "Device"
Identifier "Device1"
Driver "nvidia"
Option "TVOutFormat" "SVIDEO"
Option "TVStandard" "PAL-B"
Option "ConnectedMonitor" "TV"
EndSection
Most important point here is the option "ConnectedMonitor"
Monitor
Section "Monitor"
Identifier "Television" #TV
HorizSync 30-50
VertRefresh 60
EndSection
Vertrefresh to 50 if old PAL-TV, maybe 100 for recent tv that support 100Hz, but not sure.
Screen
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Television"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "640x480"
EndSubSection
EndSection
Most important here is "Device" same as in device section, and "Monitor" same as...Monitor section ! (Sure you guess it ;) )
You can change depth and résolution if you want.
Last but not least : Server Layout
Section "ServerLayout"
Identifier "Basic Layout"
Screen "Screen1"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection
Important here is "Screen", same as in the screen section.
Remember the previous value of this one, cause you will have to "sudo nano /etc/X11/xorg.conf" and change the screen value to the default value after testing.
NOW SAVE YOUR XORG AND TEST (CTRL + ALT + BSPACE ++ startx)
Script to switch
From this point, you should have get a display on your TV.
So create 2 different files in your home directory
* xorg.conf.notv : xorg with screen
* xorg.conf.tv : xorg working with TV
Copy them to /etc/X11/ :
sudo cp xorg.conf.notv /etc/X11
sudo cp xorg.conf.tv /etc/X11
You now just need a script that we gonna call "nvidia" (still in your home), in where you will add these lines :
#!/bin/bash
case $1 in
tv ) cp /etc/X11/xorg.conf.tv /etc/X11/xorg.conf ;;
notv ) cp /etc/X11/xorg.conf.notv /etc/X11/xorg.conf ;;
* ) echo
echo "Usage"
echo
echo " tv - use TV"
echo " notv - use CRT"
;;
esac
okay now you have to make the script executable, via nauthilus/thunar or with command :
chmod 755 nvidia
and place it in in a executable folder such as :
sudo cp nvidia /usr/local/bin
Using the script
To choose TV, type in a console :
nvidia tv
Then restart X : CTRL+ALT+BSPACE. Type "startx" if X does not restart.
If all is correct, X should startx on your TV.
To return to the normal display type in a console :
nvidia notv
Then restart X.
little trick, if you type nvidia :
$ nvidia
tv - use TV
notv - use CRT
This is made because of the echo lines contains inside the script.
Credits :
HOWTO by me.
Thanks to all french user that are workings such hard to maintain the french wiki (http://doc.ubuntu-fr.org) ;)
If you have any suggestion/question, post here.
You are free to copy, redistribute, correct, improve this document, even if you don't quote me in credits.