Get in touch with me Your new website awaits.

Ubuntu Twinview Monitors with an NVidia Graphics Card

From March 18th, 2007 | 6 Comments

I was just thinking about how difficult it was for me to setup dual monitors on my Ubuntu system. I read numerous articles and tutorials about how to get it up and running. The configuration settings were different for each person so it was hard to get it right. After hours searching and hours of tweaking the settings, I finally got it how I like:

dscn0952.JPG

Now I’m able to drag windows from one monitor to the other, maximize windows to each of the monitors, and do everything else that Windows dual monitors can do, too.

I’m running Ubuntu 6.10 with a VGA Leadtek (GF6600 PX6600TD-256 R) graphics card. The exact model isn’t that important. It’s an NVidia-based card so the instructions should be the same so long as you have one, too.

I assume that at this point, both your monitors aren’t working. You’re only using one. Whenever I tried using two (before I configured everything, that is) I would get full-screen static and color bars. I could only use one monitor at a time and make the changes with that one, shut down, plug the other back in, restart, and see if they both worked. Then repeat that cycle until I was finally able to get them working with each other.

1. Download and install the NVidia drivers

In order for Ubuntu to recognize your graphics card the way we want it to, you have to install the right driver. You can find instructions on how to do this here. It’s really easy using Synaptic, the built-in package manager.

2. Open your Xorg.conf file

This is your graphics configuration file. Before we edit it, we definitely want to make a backup. Do this by opening up the terminal and typing “sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup”. Then type “sudo gedit /etc/X11/xorg.conf” and enter your root password to continue. A text editor will open up for you to edit.

3. Edit your Xorg.conf file

In the “Screen” Section, you need to add some code:

Option "NvAGP" "2"
Option "NoLogo" "1"
Option "RenderAccel" "0"
Option "ConnectedMonitor" "DFP, CRT"
Option "NoPowerConnectorCheck" "1"
Option "TwinView" "1"
Option "Metamodes" "1280x1024,1280x1024; 1280x1024,1280x1024; 1152x864,1152x864; 800x600,800x600; 1024x768,1024x768; 1280x1024,NULL; 1024x768,NULL"
Option "TwinViewOrientation" "LeftOf"
# Option "NoTwinViewXineramaInfo"
Option "AddARGBGLXVisuals" "True"

So the three critical parts of my Xorg.conf file, the Monitor, Device, and Screen section, each looks like this (beware that yours will not be identical):

Section "Monitor"
Identifier "Generic Monitor"
HorizSync 28.0 - 51.0
VertRefresh 43.0 - 60.0
Option "DPMS"
EndSection

Section "Device"
Identifier "NVIDIA Corporation NV43 [GeForce 6600]"
Driver "nvidia"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "NVIDIA Corporation NV43 [GeForce 6600]"
Monitor "Generic Monitor"
DefaultDepth 24
Option "NvAGP" "2"
Option "NoLogo" "1"
Option "RenderAccel" "0"
Option "ConnectedMonitor" "DFP, CRT"
Option "NoPowerConnectorCheck" "1"
Option "TwinView" "1"
Option "Metamodes" "1280x1024,1280x1024; 1280x1024,1280x1024; 1152x864,1152x864; 800x600,800x600; 1024x768,1024x768; 1280x1024,NULL; 1024x768,NULL"
Option "TwinViewOrientation" "LeftOf"
# Option "NoTwinViewXineramaInfo"
Option "AddARGBGLXVisuals" "True"
SubSection "Display"
Depth 1
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

3. And finally, restart. Plug the other monitor in and hopefully, (cross your fingers!), both your monitors will be working.

Of course you may need/want to change some settings. I can’t guarantee that these will work for you but those are the steps that I took to get it working. Good luck!

6 Responses

  • ParoXoN
    March 28, 2007 at 2:51 am

    Oh thank God! Thanks :D The documentation on this subject is kinda sketchy, but your sol’n worked like a charm!

    You rock ^.^

  • Bridd
    April 27, 2007 at 3:59 pm

    Thankyou very much! This post has helped me get my dual monitors up and running nicely and easily =)

  • Wannabe
    October 24, 2007 at 10:51 pm

    I can’t thank you enough! After trying most of the Dual Screens tutorials, I can finally say: I’ve got it! Yours really dit it for me. This is definitely THE Twinview Howto.

    Thanks again

  • boredom
    July 9, 2008 at 10:58 pm

    way easier way is to go to terminal and type
    “gksudo nvidia-settings” this will take u to a very nice GUI that makes setting up dual screens a cinch. hope this helps

  • Ruinach
    November 30, 2008 at 10:30 pm

    gksudo nvidia-settings works wonderfully. Simple pull down options and no having to understand the configure file.

  • Trevor Fitzgerald
    November 30, 2008 at 11:12 pm

    Boredom and Ruinach,

    Yes, the process is much much simpler in Ubuntu 8.10 (this article was written back for 6.10). Although there is a small bug with nvidia settings manager that I’ve been able to circumvent with help from the support forums.

Leave a Reply

Are you on Twitter? You can also comment via Twitter by clicking here.

Please enter your name, e-mail address, and comment. Thank you!
Twitter

Twitter Updates

  •  

You should follow me on Twitter here.

RSS

From The Blog

03Mar

Introducing Earthly WordPress Theme

Based on my first WordPress theme, Crispp, Earthly incorporates a color scheme designed for sites that require an eco-friendly or earthy theme. Features 100% Free Consistent styling across all major …

Continue Reading…

28Dec

YouTube Resizer jQuery Plugin

The jQuery YouTube Resizer plugin automatically resizes embedded videos to fill up the entire content space. It expands the video if the content area is larger and contracts if it is smaller. My first…

Continue Reading…