LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 08-25-2005, 10:22 PM   #1
jojotx0
Member
 
Registered: Mar 2004
Distribution: Debian Lenny
Posts: 181

Rep: Reputation: 30
Dual Monitor Display on two graphics cards


I am running Debian 3.1, with 2 nVidia graphics cards, under windows dual monitors works fine, but I can't quite figure out how to set it up in Linux, I have read about TwinView, and Xinorama, and I want to use TwinView since it's made by nVidia (atleast it was made for nVidia graphics cards), so anyone know how I can set this up?

btw, if you need more explaining, please ask
 
Old 08-26-2005, 01:18 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 64
Re: Dual Monitor Display on two graphics cards

Quote:
Originally posted by jojotx0
I am running Debian 3.1, with 2 nVidia graphics cards, under windows dual monitors works fine, but I can't quite figure out how to set it up in Linux, I have read about TwinView, and Xinorama, and I want to use TwinView since it's made by nVidia (atleast it was made for nVidia graphics cards), so anyone know how I can set this up?

btw, if you need more explaining, please ask
Sure here is my old config I was using with xserver-xfree86 you will have to modify it to your setup. Namely the BusID lines in the card section and you will want change the monitor sections to match yours. To use Xinerama you need to have the resolutions the same for both monitors and I believe that twinview is only used when you have dual outputs/one output tv-out on the same card. To find the BusIDs if you already have X setup on one of the monitors the look in your /var/log/XFree86.0.log and look for the line No matching section found for device or you can go to a console login and stop the X server /etc/init.d/kdm stop change the kdm to gdm or xdm if using them then use X -configure to have the server try to configure itself. When it is done open the file it will have created with an editor and see what the IDs it found are and use them. You need to get your refresh rates for the monitors you have and change them and you will want to put the resolutions in that section to match the ones you want.

Code:
>$ cat /etc/X11/XF86Config-4
# XF86Config-4 (XFree86 X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the XF86Config-4 manual page.
# (Type "man XF86Config-4" at the shell prompt.)
#
# This file is automatically updated on xserver-xfree86 package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xfree86
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
#
#   cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.custom
#   md5sum /etc/X11/XF86Config-4 >/var/lib/xfree86/XF86Config-4.md5sum
#   dpkg-reconfigure xserver-xfree86

Section "Files"
        FontPath        "unix/:7100"                    # local font server
        # if the local font server has problems, we can fall back on these
        FontPath        "/usr/lib/X11/fonts/misc"
        FontPath        "/usr/lib/X11/fonts/cyrillic"
        FontPath        "/usr/lib/X11/fonts/100dpi/:unscaled"
        FontPath        "/usr/lib/X11/fonts/75dpi/:unscaled"
        FontPath        "/usr/lib/X11/fonts/Type1"
        FontPath        "/usr/lib/X11/fonts/CID"
        FontPath        "/usr/lib/X11/fonts/Speedo"
        FontPath        "/usr/lib/X11/fonts/100dpi"
        FontPath        "/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
        Load    "GLcore"
        Load    "bitmap"
        Load    "dbe"
        Load    "ddc"
        Load    "dri"
        Load    "extmod"
        Load    "freetype"
        Load    "glx"
        Load    "int10"
        Load    "record"
        Load    "speedo"
        Load    "type1"
        Load    "vbe"
        Load    "xtrap"
        Load    "v4l"
EndSection

Section "InputDevice"
        Identifier      "keyboard0"
        Driver          "keyboard"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xfree86"
        Option          "XkbModel"      "pc104"
        Option          "XkbLayout"     "us"
EndSection

Section "InputDevice"
        Identifier      "mouse0"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "ImPS/2"
        Option          "Emulate3Buttons"       "true"
        Option          "ZAxisMapping"          "4 5"
EndSection


Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "SWcursor"                  # [<bool>]
        #Option     "HWcursor"                  # [<bool>]
        #Option     "NoAccel"                   # [<bool>]
        #Option     "ShowCache"                 # [<bool>]
        #Option     "ShadowFB"                  # [<bool>]
        #Option     "UseFBDev"                  # [<bool>]
        #Option     "Rotate"                    # [<str>]
        #Option     "VideoKey"                  # <i>
        #Option     "FlatPanel"                 # [<bool>]
        #Option     "FPDither"                  # [<bool>]
        #Option     "CrtcNumber"                # <i>
        Identifier  "Card0"
        Driver      "nv"
#       Option      "NoLogo" "on"
#       Option      "NvAgp"  "1"
#       Option      "RenderAccel" "true"
#       Option      "IgnoreEDID"  "on"
#       Option      "IgnoreDisplayDevices"  "DFP, TV"
#       Option      "NoBandWidthTest" "1"

        VendorName  "nVidia Corporation"
        BoardName   "NV34 [GeForce FX 5200]"
        BusID       "PCI:1:0:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "accel"                     # [<bool>]
        #Option     "crt_display"               # [<bool>]
        #Option     "composite_sync"            # [<bool>]
        #Option     "hw_cursor"                 # [<bool>]
        #Option     "linear"                    # [<bool>]
        #Option     "mmio_cache"                # [<bool>]
        #Option     "panel_display"             # [<bool>]
        #Option     "probe_clocks"              # [<bool>]
        #Option     "reference_clock"           # <freq>
        #Option     "shadow_fb"                 # [<bool>]
        #Option     "sw_cursor"                 # [<bool>]
        Identifier  "Card1"
        Driver      "nv"
#       Option      "NoLogo" "on"
#       Option      "RenderAccel" "true"
#       Option      "IgnoreEDID" "on"
#       Option      "NoBandWidthTest" "1"
        VendorName  "nVidia"
        BoardName   "Riva TNT2 Model 64/64 Pro"
        BusID       "PCI:0:12:0"
EndSection

# KDS Visual Sensations VS 190i
Section "Monitor"
        #DisplaySize    350     265     # mm
        Identifier      "Monitor0"
        Option  "DPMS"  "true"
        VendorName      "KDS"
        ModelName       "KDS1985"
        HorizSync 30 - 95 # DDC-probed
        VertRefresh 50 - 120 # DDC-probed

EndSection

# Samtron 76V
Section "Monitor"
       #DisplaySize      312   234     # mm
       Identifier   "Monitor1"
       VendorName   "Samtron"
       ModelName    "76V"
       HorizSync       30-70
       VertRefresh     50-160
       Option     "DPMS"  "true"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth  24
#        SubSection "Display"
#               Depth     1
#       EndSubSection
#       SubSection "Display"
#               Depth     4
#       EndSubSection
#       SubSection "Display"
#               Depth     8
#       EndSubSection
#       SubSection "Display"
#               Depth     15
#       EndSubSection
#       SubSection "Display"
#               Depth     16
#       EndSubSection
        SubSection "Display"
                Depth     24
                Modes     "1600x1200" "1400x1050" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
#       ViewPort  0 0
#       Virtual 640     1152
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen1"
        Device     "Card1"
        Monitor    "Monitor1"
        DefaultDepth  24
#       SubSection "Display"
#               Depth     1
#       EndSubSection
#       SubSection "Display"
#               Depth     4
#       EndSubSection
#       SubSection "Display"
#               Depth     8
#       EndSubSection
#       SubSection "Display"
#               Depth     15
#       EndSubSection
#       SubSection "Display"
#               Depth     16
#       EndSubSection
        SubSection "Display"
                Depth     24
                Modes     "640x480"
#               ViewPort  0 0
#               Virtual   640 1024
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier     "XFree86 Configured"
#       Identifier      "DualHead"
        Screen      0  "Screen0" 0 0
        Screen      1  "Screen1" LeftOf "Screen0"
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
#       Option         "Xinerama" "on"
EndSection

Section "DRI"
        Mode    0666
EndSection
 
Old 08-26-2005, 01:47 PM   #3
jojotx0
Member
 
Registered: Mar 2004
Distribution: Debian Lenny
Posts: 181

Original Poster
Rep: Reputation: 30
I couldn't quite get your config file to work, but I ran X -configure, and it set everything up, except for the mouse, I edited the XF86Config file saying that the mouse was at /dev/input and /dev/input/mouse and neither worked, I have a nYko Air Flo USB mouse....before I changed the XF86Config, the mouse was set at /dev/input/mouse, but now it doesn't seem to work...anyone know why or how I can fix this?
 
Old 08-26-2005, 02:22 PM   #4
jojotx0
Member
 
Registered: Mar 2004
Distribution: Debian Lenny
Posts: 181

Original Poster
Rep: Reputation: 30
Okay, I got everything up and running, except that my mouse wheel doesn't work, and the screen depth looks like it is set to 16bit, and both monitors can run at 24bit or less, I know my 21inch monitor can run at 32bit, but the 17inch can't, so I am going to live with 24bit...and also, the screen resolution on my second monitor can only be set to 640x480, and I know it can be set to 1024x768.

Any help is much apreiciated
 
Old 08-26-2005, 03:52 PM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 64
Quote:
Originally posted by jojotx0
Okay, I got everything up and running, except that my mouse wheel doesn't work, and the screen depth looks like it is set to 16bit, and both monitors can run at 24bit or less, I know my 21inch monitor can run at 32bit, but the 17inch can't, so I am going to live with 24bit...and also, the screen resolution on my second monitor can only be set to 640x480, and I know it can be set to 1024x768.

Any help is much apreiciated
Can you post the log file /var/log/XFree86.0.log so we can see how everything gets detected and if you used my resolutions for the second monitor and only have "640x480" listed then you should add higher resolutions to it X will only use the ones you give it in the config. About the mouse do you have the ZAxisMapping line in the section for it like below.

Code:
Section "InputDevice"
        Identifier      "mouse0"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "ImPS/2"
        Option          "Emulate3Buttons"       "true"
        Option          "ZAxisMapping"          "4 5"
EndSection
 
Old 08-26-2005, 09:28 PM   #6
jojotx0
Member
 
Registered: Mar 2004
Distribution: Debian Lenny
Posts: 181

Original Poster
Rep: Reputation: 30
I hate to admit this but, I reinstalled Debian, and gave the second graphics card to my dad (was origanlly for him anyways)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't get Samtron 7Ei monitor to display graphics during Fedora Core 4 Installation pdjc Linux - Software 8 07-18-2005 03:32 PM
How many graphics cards being used for display? chijacky Linux - Hardware 1 05-05-2005 10:03 AM
Wrong monitor becomes console with 2 graphics cards Droun Linux - Hardware 1 01-16-2004 02:31 AM
Graphics Cards for Dual Monitors JC404 Linux - Hardware 2 09-04-2003 06:23 AM
Dual Head Display (2 Cards) doxmic Linux - General 6 11-13-2002 11:41 AM


All times are GMT -5. The time now is 11:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration