VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: [SOLVED] xorg.conf for dual monitor setup?  (Read 18385 times)

Miki Tebeka

  • Member
  • *
  • Posts: 27
    • My Blog
[SOLVED] xorg.conf for dual monitor setup?
« 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 ---
« Last Edit: August 21, 2007, 06:23:18 am by Miki Tebeka »
Logged

rbistolfi

  • Packager
  • Vectorian
  • ****
  • Posts: 2303
Re: xorg.conf for dual monitor setup?
« Reply #1 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...
Logged
"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!

Miki Tebeka

  • Member
  • *
  • Posts: 27
    • My Blog
Re: xorg.conf for dual monitor setup?
« Reply #2 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

Miki Tebeka

  • Member
  • *
  • Posts: 27
    • My Blog
Re: xorg.conf for dual monitor setup?
« Reply #3 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!

rbistolfi

  • Packager
  • Vectorian
  • ****
  • Posts: 2303
Re: xorg.conf for dual monitor setup?
« Reply #4 on: August 20, 2007, 06:59:55 pm »

Good work, Miki.
Enjoy it  ;)
Logged
"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!

exeterdad

  • Packager
  • Vectorian
  • ****
  • Posts: 2046
Re: xorg.conf for dual monitor setup?
« Reply #5 on: August 20, 2007, 07:33:19 pm »

Lucky Dawg!  I want twin monitors.
Logged

Miki Tebeka

  • Member
  • *
  • Posts: 27
    • My Blog
Re: [SOLVED] xorg.conf for dual monitor setup?
« Reply #6 on: August 21, 2007, 06:32:03 am »

FWIW, I'm writing the steps which made this possible:

  • Install VectorLinux (5.8 standard in my case)
  • Install Kernel sources
  • After installation X won't come up
  • slapt-get --update
  • slapt-get --upgrade
  • Get latest Nvidia drivers from http://www.nvidia.com/object/unix.html
  • chmod +x NVIDIA-Linux-x86-100.14.11-pkg1.run
  • ./NVIDIA-Linux-x86-100.14.11-pkg1.run(this will compile and install it)
  • Edit /etc/X11/xorg.conf to something like the below
  • Enjoy

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

hlekat

  • Member
  • *
  • Posts: 30
Re: [SOLVED] xorg.conf for dual monitor setup?
« Reply #7 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?
Logged

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4103
Re: [SOLVED] xorg.conf for dual monitor setup?
« Reply #8 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.
Logged

NL_Derek

  • Member
  • *
  • Posts: 5
Re: [SOLVED] xorg.conf for dual monitor setup?
« Reply #9 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
Logged