特殊:Badtitle/NS100:NvidiaMultiMonitors
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/NvidiaMultiMonitors }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/af | • {{#if: UbuntuHelp:NvidiaMultiMonitors|Afrikaans| [[::NvidiaMultiMonitors/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/ar | • {{#if: UbuntuHelp:NvidiaMultiMonitors|العربية| [[::NvidiaMultiMonitors/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/az | • {{#if: UbuntuHelp:NvidiaMultiMonitors|azərbaycanca| [[::NvidiaMultiMonitors/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/bcc | • {{#if: UbuntuHelp:NvidiaMultiMonitors|جهلسری بلوچی| [[::NvidiaMultiMonitors/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/bg | • {{#if: UbuntuHelp:NvidiaMultiMonitors|български| [[::NvidiaMultiMonitors/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/br | • {{#if: UbuntuHelp:NvidiaMultiMonitors|brezhoneg| [[::NvidiaMultiMonitors/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/ca | • {{#if: UbuntuHelp:NvidiaMultiMonitors|català| [[::NvidiaMultiMonitors/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/cs | • {{#if: UbuntuHelp:NvidiaMultiMonitors|čeština| [[::NvidiaMultiMonitors/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/de | • {{#if: UbuntuHelp:NvidiaMultiMonitors|Deutsch| [[::NvidiaMultiMonitors/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/el | • {{#if: UbuntuHelp:NvidiaMultiMonitors|Ελληνικά| [[::NvidiaMultiMonitors/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/es | • {{#if: UbuntuHelp:NvidiaMultiMonitors|español| [[::NvidiaMultiMonitors/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/fa | • {{#if: UbuntuHelp:NvidiaMultiMonitors|فارسی| [[::NvidiaMultiMonitors/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/fi | • {{#if: UbuntuHelp:NvidiaMultiMonitors|suomi| [[::NvidiaMultiMonitors/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/fr | • {{#if: UbuntuHelp:NvidiaMultiMonitors|français| [[::NvidiaMultiMonitors/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/gu | • {{#if: UbuntuHelp:NvidiaMultiMonitors|ગુજરાતી| [[::NvidiaMultiMonitors/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/he | • {{#if: UbuntuHelp:NvidiaMultiMonitors|עברית| [[::NvidiaMultiMonitors/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/hu | • {{#if: UbuntuHelp:NvidiaMultiMonitors|magyar| [[::NvidiaMultiMonitors/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/id | • {{#if: UbuntuHelp:NvidiaMultiMonitors|Bahasa Indonesia| [[::NvidiaMultiMonitors/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/it | • {{#if: UbuntuHelp:NvidiaMultiMonitors|italiano| [[::NvidiaMultiMonitors/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/ja | • {{#if: UbuntuHelp:NvidiaMultiMonitors|日本語| [[::NvidiaMultiMonitors/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/ko | • {{#if: UbuntuHelp:NvidiaMultiMonitors|한국어| [[::NvidiaMultiMonitors/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/ksh | • {{#if: UbuntuHelp:NvidiaMultiMonitors|Ripoarisch| [[::NvidiaMultiMonitors/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/mr | • {{#if: UbuntuHelp:NvidiaMultiMonitors|मराठी| [[::NvidiaMultiMonitors/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/ms | • {{#if: UbuntuHelp:NvidiaMultiMonitors|Bahasa Melayu| [[::NvidiaMultiMonitors/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/nl | • {{#if: UbuntuHelp:NvidiaMultiMonitors|Nederlands| [[::NvidiaMultiMonitors/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/no | • {{#if: UbuntuHelp:NvidiaMultiMonitors|norsk| [[::NvidiaMultiMonitors/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/oc | • {{#if: UbuntuHelp:NvidiaMultiMonitors|occitan| [[::NvidiaMultiMonitors/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/pl | • {{#if: UbuntuHelp:NvidiaMultiMonitors|polski| [[::NvidiaMultiMonitors/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/pt | • {{#if: UbuntuHelp:NvidiaMultiMonitors|português| [[::NvidiaMultiMonitors/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/ro | • {{#if: UbuntuHelp:NvidiaMultiMonitors|română| [[::NvidiaMultiMonitors/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/ru | • {{#if: UbuntuHelp:NvidiaMultiMonitors|русский| [[::NvidiaMultiMonitors/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/si | • {{#if: UbuntuHelp:NvidiaMultiMonitors|සිංහල| [[::NvidiaMultiMonitors/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/sq | • {{#if: UbuntuHelp:NvidiaMultiMonitors|shqip| [[::NvidiaMultiMonitors/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/sr | • {{#if: UbuntuHelp:NvidiaMultiMonitors|српски / srpski| [[::NvidiaMultiMonitors/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/sv | • {{#if: UbuntuHelp:NvidiaMultiMonitors|svenska| [[::NvidiaMultiMonitors/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/th | • {{#if: UbuntuHelp:NvidiaMultiMonitors|ไทย| [[::NvidiaMultiMonitors/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/tr | • {{#if: UbuntuHelp:NvidiaMultiMonitors|Türkçe| [[::NvidiaMultiMonitors/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/vi | • {{#if: UbuntuHelp:NvidiaMultiMonitors|Tiếng Việt| [[::NvidiaMultiMonitors/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/yue | • {{#if: UbuntuHelp:NvidiaMultiMonitors|粵語| [[::NvidiaMultiMonitors/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/zh | • {{#if: UbuntuHelp:NvidiaMultiMonitors|中文| [[::NvidiaMultiMonitors/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/zh-hans | • {{#if: UbuntuHelp:NvidiaMultiMonitors|中文(简体)| [[::NvidiaMultiMonitors/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvidiaMultiMonitors | UbuntuHelp:NvidiaMultiMonitors | {{#if: | :}}NvidiaMultiMonitors}}/zh-hant | • {{#if: UbuntuHelp:NvidiaMultiMonitors|中文(繁體)| [[::NvidiaMultiMonitors/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:NvidiaMultiMonitors|:NvidiaMultiMonitors|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :NvidiaMultiMonitors/zh | | {{#ifexist: NvidiaMultiMonitors/zh | | {{#ifeq: {{#titleparts:NvidiaMultiMonitors|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:NvidiaMultiMonitors|1|-1|}} | zh | | }}
Intro
This guide is written for Hardy Heron. The author is using a nVidia Ge``Force 8600 GT with restricted drivers on a dual head setup. It will most likely work on other supported versions of Ubuntu with only minor adjustments, usually only in names and titles. You can check your video card model by running, from terminal:
lspci | grep VGA
More information can be provided by running
sudo lshw -C video
This guide does not cover Xinerama, please see XineramaHowTo.
Installing Restricted Drivers
Restricted drivers are generally needed to take advantage of multi-head setups. There are a few options for installing the restricted "nvidia" drivers:
- see BinaryDriverHowto/Nvidia for using the built in method, Hardware Drivers or Restricted Drivers Manager
- see NvidiaManual for installing the drivers manually or using Envy/EnvyNG
Using Envy/EnvyNG or Manually installing the drivers may require you to reinstall them after kernel upgrades.
Setting up Multi Head
Setup
After the system reboot, you can change your X settings by going to System->Administration->NVIDIA X Server Settings. If you installed the driver manually, it may be under Applications->System Tools->NVIDIA X Server Settings. Alternatively, run from terminal:
sudo nvidia-settings
You then should see something like this: From the left pane, choose X Server Display Configuration. Now click the second screen in the dialog window and click Configure. Then enable Twin``View, like so: Alternatively, you can choose Separate X screen which will require you to reboot the computer later. Choose your screen resolution, or leave at Auto. Position is usually best left as directional, but Absolute is OK if you want to set it manually. You can also swap primary displays from here.
Differences
Twin``View
- one large screen shared between two monitors
- in Compiz-Fusion, it makes the "cube" appear as one large octagon
Separate X screen
- separate X screens, one on each monitor
- allows your window manager (Metacity, XFWM, Compiz, etc.) to be aware that there are two screens
- in Compiz-Fusion, each monitor has its own cube, controlled separately
Saving
Now we will save the new settings by clicking Save to X Configuration File. I prefer to uncheck Merge with existing file. Now click Save. If it gives you an error, "Unable to remove old X config backup file '/etc/X11/xorg.conf.backup' then click OK and open the save dialog again. Click Show preview..., select all and copy. Now open a terminal and run
gksudo gedit /etc/X11/xorg.conf
Delete the current contents of this file and paste what is in the preview. Save and close. Now you can quit the Settings window. If needed, restart X with CTRL+ALT+BACKSPACE or reboot the computer.
Troubleshooting
During the course of this tutorial, if X breaks and you no longer have a GUI, you should uninstall the restricted driver, reset xorg.conf and then reboot.
Removing Restricted Drivers
If you installed from Hardware Drivers (aka Restricted Drivers Manager), either uncheck the box there, or run:
sudo apt-get remove --purge nvidia-glx-new
You may need to subsitute in nvidia-glx-legacy
or nvidia-glx
depending on your card.
If you used EnvyNG to install the restricted drivers and cannot access the GUI to uninstall them graphically, run from a tty or recovery mode kernel:
envyng --uninstall-all
If you installed restricted drivers using a .run file from Nvidia's website, cd
to the appropriate directory and run
sudo sh <name_of_the_nvidia_installer> --uninstall
again, substitute from the above examples.
Resetting xorg.conf
From a tty or the recovery mode kernel, you can run
sudo dpkg-reconfigure xserver-xorg -phigh
Reboot
You should now reboot the computer. If you are at a terminal or tty, run:
sudo reboot
Other Resources
Here are some other useful and related pages.