UbuntuHelp:NvidiaTVOutNewbieEditionExperimental
来自Ubuntu中文
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
目录
Nvidia TV-Out for Newbies
This is an experimental edition of the guide! Please see this instead: https://help.ubuntu.com/community/NvidiaTVOutNewbieEdition Special thanks to tseliot for writing the guide: http://ubuntuforums.org/showthread.php?t=98456
Configuring Xorg.conf
Open a terminal Open xorg.conf - Run one of the following commands, based on what distro you are running: Ubuntu:
gksudo gedit /etc/X11/xorg.conf
Kubuntu:
kdesu kate /etc/X11/xorg.conf
Other:
sudo vi /etc/X11/xorg.conf
Editing the file
/!\ Find the Section “Device” section and add the parameter "screen 0": Before: (example)
Section "Device" Identifier "NVIDIA Corporation NV34 [GeForce FX 5500]" Driver "nvidia" BusID "PCI:1:0:0" EndSection
After: (example)
Section "Device" Identifier "NVIDIA Corporation NV34 [GeForce FX 5500]" Driver "nvidia" BusID "PCI:1:0:0" screen 0 EndSection
Add the following to the end of the xorg.conf file:
Section "Monitor" Identifier "Monitor[TV]" #TV HorizSync 30-50 VertRefresh 60 EndSection Section "Device" Driver "nvidia" Identifier "Device[TV]" Screen 1 Option "TVOutFormat" "Composite" #or SVIDEO etc Option "TVStandard" "PAL-G" #or NTSC etc Option "ConnectedMonitor" "Monitor[1]" BusID "PCI:1:0:0" #adjust using 'lspci' or cat /proc/pci EndSection Section "Screen" Identifier "Screen[TV]" Device "Device[TV]" Monitor "Monitor[TV]" DefaultDepth 24 SubSection "Display" Depth 24 Modes "1024x768_60" EndSubSection EndSection
/!\ You might want to change 2 things in the example above: 1)You can change "Composite" to “SVIDEO” (according to the type of video cable you use) 2)You can change your TVstandard from “PAL-G” to “NTSC-M” or "NTSC-J" according to your tv. To find out, please check the "Finding the right TV-standard" part of the howto. (at the bottom) /!\ NOTE if your TV does not support a refresh rate of 60Hz you might want to set this line "Modes "1024x768_60"" as "Modes "1024x768_50"" in order to set the refresh rate to 50Hz
Editing the ServerLayout-section
/!\ Find the Section “ServerLayout” section, and edit it to fit the following. Before: (example)
Section "ServerLayout" Identifier "Simple Layout" Screen "Default Screen" InputDevice "Generic Keyboard" InputDevice "Configured Mouse" EndSection
/!\ Please note that "Default Screen" may not be the right name! - Use the name that is found in the "screen"-line Insert a "0" after "Screen", and add this to the next line:
Screen 1 "Screen[TV]" RightOf "Default Screen"
...it should look something like this: After: (example)
Section "ServerLayout" Identifier "Simple Layout" Screen 0 "Default Screen" Screen 1 "Screen[TV]" RightOf "Default Screen" InputDevice "Generic Keyboard" InputDevice "Configured Mouse" EndSection
Now save the xorg.conf file, and exit the editor.
Giving it a try
Connect your computer to the tv. Restart the computer. (Or just restart X, by clicking Ctrl+Alt+Backspace) Login, and check if a desktop appears on the tv. To change the "active" display, simply move your mouse to the extreme right of the PC-monitor, and it should appear on the TV, and move it to the extreme left, to get it back on the PC-monitor.
Finding the right TVStandard
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 |
Tweaking KDE to make it easy to open a movie on the TV
You can add a shortcut to the "Actions"-menu very easily - Run these commands: Adding a Kaffeine entry:
wget http://www.dallerweb.dk/ubuntu/servicemenu/TV-kaffeine.desktop
Adding an Mplayer entry:
wget http://www.dallerweb.dk/ubuntu/servicemenu/TV-mplayer.desktop
Applying above entries:
cp TV-*.desktop ~/.kde/share/apps/konqueror/servicemenus/
This will add the shortcut! - You don't even have to restart anything :D