VectorLinux
October 30, 2014, 09:49:17 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: [SOLVED] xorg.conf for dual monitor setup?  (Read 16228 times)
Miki Tebeka
Member
*
Posts: 27



WWW
« on: August 20, 2007, 04: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.Cool.

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, 05:23:18 am by Miki Tebeka » Logged

rbistolfi
Packager
Vectorian
****
Posts: 2290


« Reply #1 on: August 20, 2007, 04: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:
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



WWW
« Reply #2 on: August 20, 2007, 05: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:
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:
    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
Logged

Miki Tebeka
Member
*
Posts: 27



WWW
« Reply #3 on: August 20, 2007, 05:36:00 pm »

Forget my last question, added
Code:
        Option "Xinerama" "true"
To "ServerFlags" and it works.

Great forum, love it!
Logged

rbistolfi
Packager
Vectorian
****
Posts: 2290


« Reply #4 on: August 20, 2007, 05:59:55 pm »

Good work, Miki.
Enjoy it  Wink
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



« Reply #5 on: August 20, 2007, 06:33:19 pm »

Lucky Dawg!  I want twin monitors.
Logged
Miki Tebeka
Member
*
Posts: 27



WWW
« Reply #6 on: August 21, 2007, 05: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:
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
Logged

hlekat
Member
*
Posts: 30


« Reply #7 on: May 29, 2009, 10: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: 4026



« Reply #8 on: May 29, 2009, 11:03:40 am »

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


« 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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!