VectorLinux

The nuts and bolts => X-Rated => Topic started by: Miki Tebeka on August 20, 2007, 05:05:07 pm

Title: [SOLVED] xorg.conf for dual monitor setup?
Post by: Miki Tebeka on August 20, 2007, 05:05:07 pm
Hello All,

I have a dual monitor station with Nvidia card.
I've installed the latest Nvidia drivers from their site (X didn't come up with what was with VL standard 5.8).

I see one screen very good, however I can't get the 2'nd screen to show anything.

Can someone have a look at my xorg.conf and tell me what I'm doing wrong?

Thanks,
Miki

--- xorg.conf ---
Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    RgbPath      "/usr/X11R6/lib/X11/rgb"
    ModulePath   "/usr/X11R6/lib/modules"
    FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
    FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
    FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
    FontPath     "/usr/X11R6/lib/X11/fonts/truetype/"
    FontPath     "/usr/X11R6/lib/X11/fonts/local/"
    FontPath     "/usr/X11R6/lib/X11/fonts/cyrillic/"
EndSection

Section "Module"
    Load  "glx"
    Load  "extmod"
    Load  "xtrap"
    Load  "record"
    Load  "dbe"
    Load  "dri"
    Load  "freetype"
    Load  "type1"
EndSection

Section "ServerFlags"
   Option "DontZap"
EndSection

Section "Extensions"
  Option "Composite"     "Enable"
  Option "RENDER"        "Enable"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
    Option  "XkbLayout"  "us"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/mouse"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    HorizSync   75
    VertRefresh 60
    Option "DPMS"
    Option "FlatPanel"
EndSection

Section "Monitor"
    Identifier   "Monitor1"
    HorizSync   75
    VertRefresh 60
    Option "DPMS"
    Option "FlatPanel"
EndSection

Section "Device"
    Identifier  "Card0"
    Driver      "nvidia"
    VendorName  "nVidia Corporation"
    BoardName   "Unknown Board"
    Option       "Rotate" "CCW"
    BusID       "PCI:7:0:0"
    Option "UseEdidFreqs" "true"
    Option "RenderAccel" "true"
    Option "AllowGLXWithComposite" "true"
    Screen 0
EndSection

Section "Device"
    Identifier  "Card1"
    Driver      "nvidia"
    VendorName  "nVidia Corporation"
    BoardName   "Unknown Board"
    Option       "Rotate" "CCW"
    BusID       "PCI:7:0:0"
    Option "UseEdidFreqs" "true"
    Option "RenderAccel" "true"
    Option "AllowGLXWithComposite" "true"
    Screen 1
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    DefaultDepth 24
    Subsection "Display"
        Depth       24
        Modes       "2560x1600"
        ViewPort    0 0  # initial origin if mode is smaller than desktop
    EndSubsection
EndSection

Section "Screen"
    Identifier "Screen1"
    Device     "Card1"
    Monitor    "Monitor1"
    DefaultDepth 24
    Subsection "Display"
        Depth       24
        Modes       "2560x1600"
        ViewPort    0 0  # initial origin if mode is smaller than desktop
    EndSubsection
EndSection

Section "DRI"
    Mode 0666
EndSection

--- xorg.conf ---
Title: Re: xorg.conf for dual monitor setup?
Post by: rbistolfi on August 20, 2007, 05:55:55 pm
Your nvidia card needs to be twinview capable, does it?
Also check if it is a regular pci or an AGP card.

The only thing I see on your xorg.con is:

Quote
Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0

I think it should be:

Code: [Select]
Section "ServerLayout"
  Identifier     "X.org Configured"
  Screen      0  "Screen0" 0 0
  Screen      1  "Screen0" RightOf "Screen1"

Check this: http://gentoo-wiki.com/HOWTO_Dual_Monitors#Configuring_X

Let us know if this solves your problem...
Title: Re: xorg.conf for dual monitor setup?
Post by: Miki Tebeka on August 20, 2007, 06:28:46 pm
Your nvidia card needs to be twinview capable, does it?
Also check if it is a regular pci or an AGP card.

The only thing I see on your xorg.con is:

Quote
Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0

I think it should be:

Code: [Select]
Section "ServerLayout"
  Identifier     "X.org Configured"
  Screen      0  "Screen0" 0 0
  Screen      1  "Screen0" RightOf "Screen1"

Check this: http://gentoo-wiki.com/HOWTO_Dual_Monitors#Configuring_X

Let us know if this solves your problem...

Thanks! I can now see both monitors.
(Minor fix, it should have been
Code: [Select]
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
swap 1 and 0 in screen names)

However I can't drag windows between them. xfce recognizes the 2'nd screen and I can change the background and such (there is no panel or trash there though).
When I try to drag a window to the right, it just moves to a virtual workspace instead).

Any ideas?

Thanks again,
Miki
Title: Re: xorg.conf for dual monitor setup?
Post by: Miki Tebeka on August 20, 2007, 06:36:00 pm
Forget my last question, added
Code: [Select]
        Option "Xinerama" "true"
To "ServerFlags" and it works.

Great forum, love it!
Title: Re: xorg.conf for dual monitor setup?
Post by: rbistolfi on August 20, 2007, 06:59:55 pm
Good work, Miki.
Enjoy it  ;)
Title: Re: xorg.conf for dual monitor setup?
Post by: exeterdad on August 20, 2007, 07:33:19 pm
Lucky Dawg!  I want twin monitors.
Title: Re: [SOLVED] xorg.conf for dual monitor setup?
Post by: Miki Tebeka on August 21, 2007, 06:32:03 am
FWIW, I'm writing the steps which made this possible:


Code: [Select]
Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    RgbPath      "/usr/X11R6/lib/X11/rgb"
    ModulePath   "/usr/X11R6/lib/modules"
    FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
    FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
    FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
    FontPath     "/usr/X11R6/lib/X11/fonts/truetype/"
    FontPath     "/usr/X11R6/lib/X11/fonts/local/"
    FontPath     "/usr/X11R6/lib/X11/fonts/cyrillic/"
EndSection

Section "Module"
    Load  "glx"
    Load  "extmod"
    Load  "xtrap"
    Load  "record"
    Load  "dbe"
    Load  "dri"
    Load  "freetype"
    Load  "type1"
EndSection

Section "ServerFlags"
Option "DontZap"
Option "Xinerama" "true" # Use both as one big screen
EndSection

Section "Extensions"
  Option "Composite"     "Enable"
  Option "RENDER"        "Enable"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
    Option  "XkbLayout"  "us,il"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/mouse"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    HorizSync   75
    VertRefresh 60
    Option "DPMS"
    Option "FlatPanel"
EndSection

Section "Monitor"
    Identifier   "Monitor1"
    HorizSync   75
    VertRefresh 60
    Option "DPMS"
    Option "FlatPanel"
EndSection

Section "Device"
    Identifier  "Card0"
    Driver      "nvidia"
    VendorName  "nVidia Corporation"
    BoardName   "Unknown Board"
    Option       "Rotate" "CCW"
    BusID       "PCI:7:0:0"
    Option "UseEdidFreqs" "true"
    Option "RenderAccel" "true"
    Option "AllowGLXWithComposite" "true"
    Screen 0
EndSection

Section "Device"
    Identifier  "Card1"
    Driver      "nvidia"
    VendorName  "nVidia Corporation"
    BoardName   "Unknown Board"
    Option       "Rotate" "CCW"
    BusID       "PCI:7:0:0"
    Option "UseEdidFreqs" "true"
    Option "RenderAccel" "true"
    Option "AllowGLXWithComposite" "true"
    Screen 1
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    DefaultDepth 24
    Subsection "Display"
        Depth       24
        Modes       "2560x1600"
        ViewPort    0 0  # initial origin if mode is smaller than desktop
    EndSubsection
EndSection

Section "Screen"
    Identifier "Screen1"
    Device     "Card1"
    Monitor    "Monitor1"
    DefaultDepth 24
    Subsection "Display"
        Depth       24
        Modes       "2560x1600"
        ViewPort    0 0  # initial origin if mode is smaller than desktop
    EndSubsection
EndSection

Section "DRI"
    Mode 0666
EndSection
Title: Re: [SOLVED] xorg.conf for dual monitor setup?
Post by: hlekat on May 29, 2009, 11:33:57 am
the only way to have two monitors in linux is by configuring the xorg.conf? is there any program for this task?
Title: Re: [SOLVED] xorg.conf for dual monitor setup?
Post by: nightflier on May 29, 2009, 12:03:40 pm
I have configured dual monitors in VL using both the ATI and nVidia GUI control panels which come with the proprietary drivers.
Title: Re: [SOLVED] xorg.conf for dual monitor setup?
Post by: NL_Derek on January 03, 2011, 11:04:58 am
It also worked for me. A couple of tips; running from the standard menu (System > NVIDIA Server Settings) had no write authority in /etc/X11, so I opened a shell, su'd to root and then ran nvidia-settings. Also I got the best results by choosing mode TwinView.

--- Derek