特殊:Badtitle/NS100:NvidiaTVOut:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
(未显示同一用户的4个中间版本) | |||
第2行: | 第2行: | ||
{{Languages|UbuntuHelp:NvidiaTVOut}} | {{Languages|UbuntuHelp:NvidiaTVOut}} | ||
With this howto for your Nvidia graphic card, you can view X simultaneously on your monitor and TV. | With this howto for your Nvidia graphic card, you can view X simultaneously on your monitor and TV. | ||
'''This documentation is deprecated. Nowadays we have GUI from Nvidia for settings TV out. Please see [http://ubuntuforums.org/showthread.php?p=4929070#post4929070 this forum thread].''' | |||
=== Using TwinView === | === Using TwinView === | ||
Backup your xorg.conf | Backup your xorg.conf | ||
第8行: | 第8行: | ||
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup | sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup | ||
</nowiki></pre> | </nowiki></pre> | ||
Edit your xorg.conf | Edit your xorg.conf | ||
<pre><nowiki> | <pre><nowiki> | ||
gksudo gedit /etc/X11/xorg.conf | gksudo gedit /etc/X11/xorg.conf | ||
</nowiki></pre> | </nowiki></pre> | ||
What follows is for a 1400x900 display. "..." indicates stuff left out. In the "meta modes" option, we indicate that we are not expecting TV by using a NULL. So the resolutions will probably differ for your device, but you modify the <code><nowiki>Device</nowiki></code> section of your xorg.conf file as | What follows is for a 1400x900 display. "..." indicates stuff left out. In the "meta modes" option, we indicate that we are not expecting TV by using a NULL. So the resolutions will probably differ for your device, but you modify the <code><nowiki>Device</nowiki></code> section of your xorg.conf file as | ||
<pre><nowiki> | <pre><nowiki> | ||
Section "Screen" | Section "Screen" | ||
... | ... | ||
Option "TwinView" | Option "TwinView" | ||
Option "TVOutFormat" "SVIDEO" | Option "TVOutFormat" "SVIDEO" | ||
Option "TVStandard" "NTSC-M" | Option "TVStandard" "NTSC-M" | ||
Option "MetaModes" "1440x900,640x480; 1440x900,NULL; 1024x768,NULL; 800x600,NULL; 640x480,NULL" | Option "MetaModes" "1440x900,640x480; 1440x900,NULL; 1024x768,NULL; 800x600,NULL; 640x480,NULL" | ||
SubSection "Display" | SubSection "Display" | ||
... | ... | ||
Modes "1440x900" "1280x1024" "1024x768" "720x450" "640x480" | Modes "1440x900" "1280x1024" "1024x768" "720x450" "640x480" | ||
EndSubSection | EndSubSection | ||
EndSection | EndSection | ||
第33行: | 第31行: | ||
If your TV uses PAL change <code><nowiki>"NTSC-M"</nowiki></code> to <code><nowiki>"PAL-B"</nowiki></code>, or other TVStandard. A modestly comprehensive list is available below. | If your TV uses PAL change <code><nowiki>"NTSC-M"</nowiki></code> to <code><nowiki>"PAL-B"</nowiki></code>, or other TVStandard. A modestly comprehensive list is available below. | ||
You may also change <code><nowiki>MetaModes</nowiki></code> to whatever is appropriate for your system! | You may also change <code><nowiki>MetaModes</nowiki></code> to whatever is appropriate for your system! | ||
Note: With a Geforce FX 5200 using Ubuntu Edgy I had to add the following to the <code><nowiki>Device</nowiki></code> section in order for the above to work: | Note: With a Geforce FX 5200 using Ubuntu Edgy I had to add the following to the <code><nowiki>Device</nowiki></code> section in order for the above to work: | ||
<pre><nowiki> | <pre><nowiki> | ||
Option "ConnectedMonitor" "CRT,TV" | Option "ConnectedMonitor" "CRT,TV" | ||
</nowiki></pre> | </nowiki></pre> | ||
'''Now you need to restart X''' | '''Now you need to restart X''' | ||
=== A more complicated way - Running 2 X-Screens === | === A more complicated way - Running 2 X-Screens === | ||
Some cards are not able to use twinview, or you might not have much luck with the above. This configuration will enable you to run 2 X-Screens (one for the TV, the other one for your monitor) what's very handy if you want to use your PC while watching a movie, or running Media Center software like [http://www.mythtv.org/ mythtv]. | Some cards are not able to use twinview, or you might not have much luck with the above. This configuration will enable you to run 2 X-Screens (one for the TV, the other one for your monitor) what's very handy if you want to use your PC while watching a movie, or running Media Center software like [http://www.mythtv.org/ mythtv]. | ||
First, backup your original xorg.conf. | First, backup your original xorg.conf. | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup | sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup | ||
</nowiki></pre> | </nowiki></pre> | ||
Opening up the file with the command <code><nowiki>gksudo gedit /etc/X11/xorg.conf</nowiki></code>, you will first need to edit the <code><nowiki>Device</nowiki></code> section. | Opening up the file with the command <code><nowiki>gksudo gedit /etc/X11/xorg.conf</nowiki></code>, you will first need to edit the <code><nowiki>Device</nowiki></code> section. | ||
<pre><nowiki> | <pre><nowiki> | ||
Section "Device" | Section "Device" | ||
Identifier "Device0" | Identifier "Device0" | ||
Driver "nvidia" | Driver "nvidia" | ||
Screen 0 | Screen 0 | ||
Option "NoLogo" "true" | Option "NoLogo" "true" | ||
Option "RenderAccel" "true" | Option "RenderAccel" "true" | ||
BusID "PCI:02:09:0" | BusID "PCI:02:09:0" | ||
EndSection | EndSection | ||
Section "Device" | Section "Device" | ||
Identifier "Device1" | Identifier "Device1" | ||
Driver "nvidia" | Driver "nvidia" | ||
Screen 1 | Screen 1 | ||
BusID "PCI:02:09:0" | BusID "PCI:02:09:0" | ||
EndSection | EndSection | ||
</nowiki></pre> | </nowiki></pre> | ||
The <code><nowiki>NoLogo</nowiki></code> and <code><nowiki>RenderAccel</nowiki></code> options are completely optional, but it is very important that you put in the <code><nowiki>BusID</nowiki></code>. You can find this using <code><nowiki>lspci</nowiki></code> or checking the contents of '''/var/log/Xorg.0.log'''. | The <code><nowiki>NoLogo</nowiki></code> and <code><nowiki>RenderAccel</nowiki></code> options are completely optional, but it is very important that you put in the <code><nowiki>BusID</nowiki></code>. You can find this using <code><nowiki>lspci</nowiki></code> or checking the contents of '''/var/log/Xorg.0.log'''. | ||
Next, find the <code><nowiki>Monitor</nowiki></code> section and edit it as in the following example. | Next, find the <code><nowiki>Monitor</nowiki></code> section and edit it as in the following example. | ||
<pre><nowiki> | <pre><nowiki> | ||
Section "Monitor" | Section "Monitor" | ||
Identifier "Monitor" #CRT | Identifier "Monitor" #CRT | ||
HorizSync 30-70 | HorizSync 30-70 | ||
VertRefresh 50-140 | VertRefresh 50-140 | ||
Option "DPMS" | Option "DPMS" | ||
EndSection | EndSection | ||
Section "Monitor" | Section "Monitor" | ||
Identifier "Television" #TV | Identifier "Television" #TV | ||
HorizSync 30-50 | HorizSync 30-50 | ||
VertRefresh 60 | VertRefresh 60 | ||
EndSection | EndSection | ||
</nowiki></pre> | </nowiki></pre> | ||
The Nvidia documentation suggest that you can use <code><nowiki>HorizSync</nowiki></code> values for your TV of 30-50, but I had no luck with that. Running <code><nowiki>startx</nowiki></code> with verbose logging can give you the correct values for your television if neither work for you. For your monitor, you can find additional information [[UbuntuHelp:FixVideoResolutionHowto|here]] | The Nvidia documentation suggest that you can use <code><nowiki>HorizSync</nowiki></code> values for your TV of 30-50, but I had no luck with that. Running <code><nowiki>startx</nowiki></code> with verbose logging can give you the correct values for your television if neither work for you. For your monitor, you can find additional information [[UbuntuHelp:FixVideoResolutionHowto|here]] | ||
Next, find the <code><nowiki>Screen</nowiki></code> section and edit it as in the following example. Naturally, you'll have to supply your own <code><nowiki>Modelines</nowiki></code> depending what what resolutions you want / are supported. This example is about as generic as you can get, however, and will work on many TV and CRT combinations. | Next, find the <code><nowiki>Screen</nowiki></code> section and edit it as in the following example. Naturally, you'll have to supply your own <code><nowiki>Modelines</nowiki></code> depending what what resolutions you want / are supported. This example is about as generic as you can get, however, and will work on many TV and CRT combinations. | ||
<pre><nowiki> | <pre><nowiki> | ||
Section "Screen" | Section "Screen" | ||
Identifier "Screen0" | Identifier "Screen0" | ||
Device "Device0" | Device "Device0" | ||
Monitor "Monitor" | Monitor "Monitor" | ||
DefaultDepth 24 | DefaultDepth 24 | ||
Option "ConnectedMonitor" "CRT" | Option "ConnectedMonitor" "CRT" | ||
SubSection "Display" | SubSection "Display" | ||
Depth 24 | Depth 24 | ||
Modes "1024x768" "800x600" "640x480" | Modes "1024x768" "800x600" "640x480" | ||
EndSubSection | EndSubSection | ||
EndSection | EndSection | ||
Section "Screen" | Section "Screen" | ||
Identifier "Screen1" | Identifier "Screen1" | ||
Device "Device1" | Device "Device1" | ||
Monitor "Television" | Monitor "Television" | ||
DefaultDepth 24 | DefaultDepth 24 | ||
Option "TVOutFormat" "SVIDEO" | Option "TVOutFormat" "SVIDEO" | ||
Option "TVStandard" "NTSC-M" | Option "TVStandard" "NTSC-M" | ||
Option "ConnectedMonitor" "TV" | Option "ConnectedMonitor" "TV" | ||
SubSection "Display" | SubSection "Display" | ||
Depth 24 | Depth 24 | ||
Modes "640x480" | Modes "640x480" | ||
EndSubSection | EndSubSection | ||
EndSection | EndSection | ||
</nowiki></pre> | </nowiki></pre> | ||
Other <code><nowiki>TVOutFormat</nowiki></code> values can be <code><nowiki>COMPOSITE</nowiki></code> or <code><nowiki>SVIDEO</nowiki></code>, depending on what version of the nvidia drivers you are using (SVIDEO does ''not'' work with the 1.0-7667 drivers, do not use the hyphen). The proper value for <code><nowiki>TVStandard</nowiki></code> can be found in the table below. | Other <code><nowiki>TVOutFormat</nowiki></code> values can be <code><nowiki>COMPOSITE</nowiki></code> or <code><nowiki>SVIDEO</nowiki></code>, depending on what version of the nvidia drivers you are using (SVIDEO does ''not'' work with the 1.0-7667 drivers, do not use the hyphen). The proper value for <code><nowiki>TVStandard</nowiki></code> can be found in the table below. | ||
On some systems it is necessary to explicitly set what 'head' that was used with the ConnectedMonitor option. For example 'CRT-0' and 'TV-0'. This is also documented under [http://archive.avsforum.com/avs-vb/showthread.php?threadid=438201 Multiple X Screens with Nvidia cards]. On other systems, specifying this option is known to _prevent_ TV-out from working, possibly with a message like "Unable to find available display devices for screen 1" in Xorg's log/output. Try commenting the ConnectedMonitor lines out if it doesn't work for you. | On some systems it is necessary to explicitly set what 'head' that was used with the ConnectedMonitor option. For example 'CRT-0' and 'TV-0'. This is also documented under [http://archive.avsforum.com/avs-vb/showthread.php?threadid=438201 Multiple X Screens with Nvidia cards]. On other systems, specifying this option is known to _prevent_ TV-out from working, possibly with a message like "Unable to find available display devices for screen 1" in Xorg's log/output. Try commenting the ConnectedMonitor lines out if it doesn't work for you. | ||
Finally, find the <code><nowiki>ServerLayout</nowiki></code> section and set it up as follows. If you prefer, you can use <code><nowiki>leftof</nowiki></code> instead of <code><nowiki>rightof</nowiki></code>. Other options can be found in the xorg.conf man page. | Finally, find the <code><nowiki>ServerLayout</nowiki></code> section and set it up as follows. If you prefer, you can use <code><nowiki>leftof</nowiki></code> instead of <code><nowiki>rightof</nowiki></code>. Other options can be found in the xorg.conf man page. | ||
<pre><nowiki> | <pre><nowiki> | ||
Section "ServerLayout" | Section "ServerLayout" | ||
Identifier "Basic Layout" | Identifier "Basic Layout" | ||
Screen 0 "Screen0" | Screen 0 "Screen0" | ||
Screen 1 "Screen1" rightof "Screen0" | Screen 1 "Screen1" rightof "Screen0" | ||
InputDevice "Generic Keyboard" | InputDevice "Generic Keyboard" | ||
InputDevice "Configured Mouse" | InputDevice "Configured Mouse" | ||
EndSection | EndSection | ||
</nowiki></pre> | </nowiki></pre> | ||
Now simply restart the X server, and it might actually work. If it doesn't, all errors will be in '''/var/log/Xorg.0.log''', allowing you to find error messages and make the suggested changes. | Now simply restart the X server, and it might actually work. If it doesn't, all errors will be in '''/var/log/Xorg.0.log''', allowing you to find error messages and make the suggested changes. | ||
== Finding your TVStandard == | == Finding your TVStandard == | ||
Due to various historical reasons, there are two main standards; NTSC in the Americas and Japan, and PAL in Europe and much of the rest of the world. Nvidia also supports HDTV standareds such as 1080i and 720p. This list can also be found in Nvidia's [ftp://download.nvidia.com/XFree86/Linux-x86/1.0-7667/README.txt ReadMe] | Due to various historical reasons, there are two main standards; NTSC in the Americas and Japan, and PAL in Europe and much of the rest of the world. Nvidia also supports HDTV standareds such as 1080i and 720p. This list can also be found in Nvidia's [ftp://download.nvidia.com/XFree86/Linux-x86/1.0-7667/README.txt ReadMe] | ||
{|border="1" cellspacing="0" | {|border="1" cellspacing="0" | ||
|PAL-B||Australia, Belgium, Denmark, Finland, Germany, Guinea, Hong Kong, India, Indonesia, Italy, Malaysia, The Netherlands, Norway, Portugal, Singapore, Spain, Sweden, and Switzerland | |PAL-B||Australia, Belgium, Denmark, Finland, Germany, Guinea, Hong Kong, India, Indonesia, Italy, Malaysia, The Netherlands, Norway, Portugal, Singapore, Spain, Sweden, and Switzerland | ||
第178行: | 第157行: | ||
|HD576p||576 line progressive | |HD576p||576 line progressive | ||
|} | |} | ||
Credits: | Credits: | ||
* [http://www.ubuntuforums.org/showthread.php?t=50749&highlight=simultaneously+monitor+TV kayas80] | * [http://www.ubuntuforums.org/showthread.php?t=50749&highlight=simultaneously+monitor+TV kayas80] | ||
* [ftp://download.nvidia.com/XFree86/Linux-x86/1.0-7667/README.txt Nvidia ReadMe] | * [ftp://download.nvidia.com/XFree86/Linux-x86/1.0-7667/README.txt Nvidia ReadMe] | ||
---- | ---- | ||
[[category:CategoryHardware | [[category:CategoryHardware]] | ||
---- | ---- | ||
=== An Alternative Way. (Also complicated) === | === An Alternative Way. (Also complicated) === | ||
The problem with the above two methods is that you are likely to experience tearing on the tv display as I did. This is because the graphics card only supports video overlay on one screen at a time and by default chooses the AGP/DVI connection. | The problem with the above two methods is that you are likely to experience tearing on the tv display as I did. This is because the graphics card only supports video overlay on one screen at a time and by default chooses the AGP/DVI connection. | ||
The method described at [http://en.wikibooks.org/wiki/NVidia/TV-OUT] chooses a setup that will only display one screen at a time, but nevertheless allows you to, for example, launch a movie on your tv screen and when finished go back to your desktop on your monitor. I find this ideal for my mythtv and desktop setup. | The method described at [http://en.wikibooks.org/wiki/NVidia/TV-OUT] chooses a setup that will only display one screen at a time, but nevertheless allows you to, for example, launch a movie on your tv screen and when finished go back to your desktop on your monitor. I find this ideal for my mythtv and desktop setup. | ||
'''''A word of advice:''''' The guide describes a script to launch mplayer. In order for this to work, you must change your '''/etc/X11/Xwrapper.config''' so that '''allowed_users=anybody''' . | '''''A word of advice:''''' The guide describes a script to launch mplayer. In order for this to work, you must change your '''/etc/X11/Xwrapper.config''' so that '''allowed_users=anybody''' . | ||
This might be a security risk. | This might be a security risk. | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2009年5月12日 (二) 18:14的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/NvidiaTVOut }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/af | • {{#if: UbuntuHelp:NvidiaTVOut|Afrikaans| [[::NvidiaTVOut/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/ar | • {{#if: UbuntuHelp:NvidiaTVOut|العربية| [[::NvidiaTVOut/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/az | • {{#if: UbuntuHelp:NvidiaTVOut|azərbaycanca| [[::NvidiaTVOut/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/bcc | • {{#if: UbuntuHelp:NvidiaTVOut|جهلسری بلوچی| [[::NvidiaTVOut/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/bg | • {{#if: UbuntuHelp:NvidiaTVOut|български| [[::NvidiaTVOut/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/br | • {{#if: UbuntuHelp:NvidiaTVOut|brezhoneg| [[::NvidiaTVOut/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/ca | • {{#if: UbuntuHelp:NvidiaTVOut|català| [[::NvidiaTVOut/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/cs | • {{#if: UbuntuHelp:NvidiaTVOut|čeština| [[::NvidiaTVOut/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/de | • {{#if: UbuntuHelp:NvidiaTVOut|Deutsch| [[::NvidiaTVOut/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/el | • {{#if: UbuntuHelp:NvidiaTVOut|Ελληνικά| [[::NvidiaTVOut/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/es | • {{#if: UbuntuHelp:NvidiaTVOut|español| [[::NvidiaTVOut/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/fa | • {{#if: UbuntuHelp:NvidiaTVOut|فارسی| [[::NvidiaTVOut/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/fi | • {{#if: UbuntuHelp:NvidiaTVOut|suomi| [[::NvidiaTVOut/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/fr | • {{#if: UbuntuHelp:NvidiaTVOut|français| [[::NvidiaTVOut/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/gu | • {{#if: UbuntuHelp:NvidiaTVOut|ગુજરાતી| [[::NvidiaTVOut/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/he | • {{#if: UbuntuHelp:NvidiaTVOut|עברית| [[::NvidiaTVOut/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/hu | • {{#if: UbuntuHelp:NvidiaTVOut|magyar| [[::NvidiaTVOut/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/id | • {{#if: UbuntuHelp:NvidiaTVOut|Bahasa Indonesia| [[::NvidiaTVOut/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/it | • {{#if: UbuntuHelp:NvidiaTVOut|italiano| [[::NvidiaTVOut/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/ja | • {{#if: UbuntuHelp:NvidiaTVOut|日本語| [[::NvidiaTVOut/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/ko | • {{#if: UbuntuHelp:NvidiaTVOut|한국어| [[::NvidiaTVOut/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/ksh | • {{#if: UbuntuHelp:NvidiaTVOut|Ripoarisch| [[::NvidiaTVOut/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/mr | • {{#if: UbuntuHelp:NvidiaTVOut|मराठी| [[::NvidiaTVOut/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/ms | • {{#if: UbuntuHelp:NvidiaTVOut|Bahasa Melayu| [[::NvidiaTVOut/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/nl | • {{#if: UbuntuHelp:NvidiaTVOut|Nederlands| [[::NvidiaTVOut/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/no | • {{#if: UbuntuHelp:NvidiaTVOut|norsk| [[::NvidiaTVOut/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/oc | • {{#if: UbuntuHelp:NvidiaTVOut|occitan| [[::NvidiaTVOut/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/pl | • {{#if: UbuntuHelp:NvidiaTVOut|polski| [[::NvidiaTVOut/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/pt | • {{#if: UbuntuHelp:NvidiaTVOut|português| [[::NvidiaTVOut/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/ro | • {{#if: UbuntuHelp:NvidiaTVOut|română| [[::NvidiaTVOut/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/ru | • {{#if: UbuntuHelp:NvidiaTVOut|русский| [[::NvidiaTVOut/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/si | • {{#if: UbuntuHelp:NvidiaTVOut|සිංහල| [[::NvidiaTVOut/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/sq | • {{#if: UbuntuHelp:NvidiaTVOut|shqip| [[::NvidiaTVOut/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/sr | • {{#if: UbuntuHelp:NvidiaTVOut|српски / srpski| [[::NvidiaTVOut/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/sv | • {{#if: UbuntuHelp:NvidiaTVOut|svenska| [[::NvidiaTVOut/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/th | • {{#if: UbuntuHelp:NvidiaTVOut|ไทย| [[::NvidiaTVOut/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/tr | • {{#if: UbuntuHelp:NvidiaTVOut|Türkçe| [[::NvidiaTVOut/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/vi | • {{#if: UbuntuHelp:NvidiaTVOut|Tiếng Việt| [[::NvidiaTVOut/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/yue | • {{#if: UbuntuHelp:NvidiaTVOut|粵語| [[::NvidiaTVOut/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/zh | • {{#if: UbuntuHelp:NvidiaTVOut|中文| [[::NvidiaTVOut/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/zh-hans | • {{#if: UbuntuHelp:NvidiaTVOut|中文(简体)| [[::NvidiaTVOut/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaTVOut | UbuntuHelp:NvidiaTVOut | {{#if: | :}}NvidiaTVOut}}/zh-hant | • {{#if: UbuntuHelp:NvidiaTVOut|中文(繁體)| [[::NvidiaTVOut/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:NvidiaTVOut|:NvidiaTVOut|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :NvidiaTVOut/zh | | {{#ifexist: NvidiaTVOut/zh | | {{#ifeq: {{#titleparts:NvidiaTVOut|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:NvidiaTVOut|1|-1|}} | zh | | }}
With this howto for your Nvidia graphic card, you can view X simultaneously on your monitor and TV. This documentation is deprecated. Nowadays we have GUI from Nvidia for settings TV out. Please see this forum thread.
Using TwinView
Backup your xorg.conf
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
Edit your xorg.conf
gksudo gedit /etc/X11/xorg.conf
What follows is for a 1400x900 display. "..." indicates stuff left out. In the "meta modes" option, we indicate that we are not expecting TV by using a NULL. So the resolutions will probably differ for your device, but you modify the Device
section of your xorg.conf file as
Section "Screen" ... Option "TwinView" Option "TVOutFormat" "SVIDEO" Option "TVStandard" "NTSC-M" Option "MetaModes" "1440x900,640x480; 1440x900,NULL; 1024x768,NULL; 800x600,NULL; 640x480,NULL" SubSection "Display" ... Modes "1440x900" "1280x1024" "1024x768" "720x450" "640x480" EndSubSection EndSection
Now save it. If you are using an S-Video cable change "COMPOSITE"
to "SVIDEO"
If your TV uses PAL change "NTSC-M"
to "PAL-B"
, or other TVStandard. A modestly comprehensive list is available below.
You may also change MetaModes
to whatever is appropriate for your system!
Note: With a Geforce FX 5200 using Ubuntu Edgy I had to add the following to the Device
section in order for the above to work:
Option "ConnectedMonitor" "CRT,TV"
Now you need to restart X
A more complicated way - Running 2 X-Screens
Some cards are not able to use twinview, or you might not have much luck with the above. This configuration will enable you to run 2 X-Screens (one for the TV, the other one for your monitor) what's very handy if you want to use your PC while watching a movie, or running Media Center software like mythtv. First, backup your original xorg.conf.
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
Opening up the file with the command gksudo gedit /etc/X11/xorg.conf
, you will first need to edit the Device
section.
Section "Device" Identifier "Device0" Driver "nvidia" Screen 0 Option "NoLogo" "true" Option "RenderAccel" "true" BusID "PCI:02:09:0" EndSection Section "Device" Identifier "Device1" Driver "nvidia" Screen 1 BusID "PCI:02:09:0" EndSection
The NoLogo
and RenderAccel
options are completely optional, but it is very important that you put in the BusID
. You can find this using lspci
or checking the contents of /var/log/Xorg.0.log.
Next, find the Monitor
section and edit it as in the following example.
Section "Monitor" Identifier "Monitor" #CRT HorizSync 30-70 VertRefresh 50-140 Option "DPMS" EndSection Section "Monitor" Identifier "Television" #TV HorizSync 30-50 VertRefresh 60 EndSection
The Nvidia documentation suggest that you can use HorizSync
values for your TV of 30-50, but I had no luck with that. Running startx
with verbose logging can give you the correct values for your television if neither work for you. For your monitor, you can find additional information here
Next, find the Screen
section and edit it as in the following example. Naturally, you'll have to supply your own Modelines
depending what what resolutions you want / are supported. This example is about as generic as you can get, however, and will work on many TV and CRT combinations.
Section "Screen" Identifier "Screen0" Device "Device0" Monitor "Monitor" DefaultDepth 24 Option "ConnectedMonitor" "CRT" SubSection "Display" Depth 24 Modes "1024x768" "800x600" "640x480" EndSubSection EndSection Section "Screen" Identifier "Screen1" Device "Device1" Monitor "Television" DefaultDepth 24 Option "TVOutFormat" "SVIDEO" Option "TVStandard" "NTSC-M" Option "ConnectedMonitor" "TV" SubSection "Display" Depth 24 Modes "640x480" EndSubSection EndSection
Other TVOutFormat
values can be COMPOSITE
or SVIDEO
, depending on what version of the nvidia drivers you are using (SVIDEO does not work with the 1.0-7667 drivers, do not use the hyphen). The proper value for TVStandard
can be found in the table below.
On some systems it is necessary to explicitly set what 'head' that was used with the ConnectedMonitor option. For example 'CRT-0' and 'TV-0'. This is also documented under Multiple X Screens with Nvidia cards. On other systems, specifying this option is known to _prevent_ TV-out from working, possibly with a message like "Unable to find available display devices for screen 1" in Xorg's log/output. Try commenting the ConnectedMonitor lines out if it doesn't work for you.
Finally, find the ServerLayout
section and set it up as follows. If you prefer, you can use leftof
instead of rightof
. Other options can be found in the xorg.conf man page.
Section "ServerLayout" Identifier "Basic Layout" Screen 0 "Screen0" Screen 1 "Screen1" rightof "Screen0" InputDevice "Generic Keyboard" InputDevice "Configured Mouse" EndSection
Now simply restart the X server, and it might actually work. If it doesn't, all errors will be in /var/log/Xorg.0.log, allowing you to find error messages and make the suggested changes.
Finding your TVStandard
Due to various historical reasons, there are two main standards; NTSC in the Americas and Japan, and PAL in Europe and much of the rest of the world. Nvidia also supports HDTV standareds such as 1080i and 720p. This list can also be found in Nvidia's ReadMe
PAL-B | Australia, Belgium, Denmark, Finland, Germany, Guinea, Hong Kong, India, Indonesia, Italy, Malaysia, The Netherlands, Norway, Portugal, Singapore, Spain, Sweden, and Switzerland |
PAL-D | China and North Korea |
PAL-G | Denmark, Finland, Germany, Italy, Malaysia, The Netherlands, Norway, Portugal, Spain, Sweden, and Switzerland |
PAL-H | Belgium |
PAL-I | Hong Kong, Ireland, and United Kingdom |
PAL-K1 | Guinea |
PAL-M | Brazil |
PAL-N | France, Paraguay, and Uruguay |
PAL-NC | Argentina |
NTSC-J | Japan |
NTSC-M | Canada, Chile, Colombia, Costa Rica, Ecuador, Haiti, Honduras, Mexico, Panama, Puerto Rico, South Korea, Taiwan, United States of America, and Venezuela |
HD480i | 480 line interlaced |
HD480p | 480 line progressive |
HD720p | 720 line progressive |
HD1080i | 1080 line interlaced |
HD1080p | 1080 line progressive |
HD576i | 576 line interlace |
HD576p | 576 line progressive |
Credits:
An Alternative Way. (Also complicated)
The problem with the above two methods is that you are likely to experience tearing on the tv display as I did. This is because the graphics card only supports video overlay on one screen at a time and by default chooses the AGP/DVI connection. The method described at [1] chooses a setup that will only display one screen at a time, but nevertheless allows you to, for example, launch a movie on your tv screen and when finished go back to your desktop on your monitor. I find this ideal for my mythtv and desktop setup. A word of advice: The guide describes a script to launch mplayer. In order for this to work, you must change your /etc/X11/Xwrapper.config so that allowed_users=anybody . This might be a security risk.