close

Privacy guaranteed - Your email is not shared with anyone.

dual monitors in linux?

Discussion in 'Tech Talk' started by David_G17, Sep 25, 2004.

  1. David_G17

    David_G17 /\/\/\/\/\/\/\/

    Messages:
    2,046
    Likes Received:
    6
    Joined:
    Oct 7, 2002
    i have 2 video cards and 2 monitors, so i thought i'd try to make them both work on the same computer.

    anyone else tried this in linux? is xinerama what i need to make this work? why don't they have the downloadable files on sourceforge?

    i eventually found an rpm somewhere, but i think it may be an older version.

    any ideas, comments, suggestions, etc. welcome :)
     
  2. HerrGlock

    HerrGlock Scouts Out CLM

    Messages:
    23,802
    Likes Received:
    255
    Joined:
    Dec 28, 2000

  3. David_G17

    David_G17 /\/\/\/\/\/\/\/

    Messages:
    2,046
    Likes Received:
    6
    Joined:
    Oct 7, 2002
    it works :)

    that last link, the pdf, was really good.

    in case anyone happens to come across this site via google, here's my xorg.conf file:
    HP monitor, KDS monitor, Nvidia card, and an ATI card.
    Code:
    # Xorg configuration created by system-config-display
     
    # this was generated by red hat's buggy auto
    # dual head thing.  i may have changed some 
    # values; i don't remember :P
    Section "ServerLayout"
     
            Identifier     "Multihead layout"
            Screen      1  "Screen0" RightOf "Screen1"
            Screen      1  "Screen1" 0 0
            InputDevice    "Mouse0" "CorePointer"
            InputDevice    "Keyboard0" "CoreKeyboard"
            Option      "Xinerama" "off"
            Option      "Clone" "on"
    EndSection
     
    Section "Files"
     
    # RgbPath is the location of the RGB database.  Note, this is the name of the
    # file minus the extension (like ".txt" or ".db").  There is normally
    # no need to change the default.
    # Multiple FontPath entries are allowed (they are concatenated together)
    # By default, Red Hat 6.0 and later now use a font server independent of
    # the X server to render fonts.
            RgbPath      "/usr/X11R6/lib/X11/rgb"
            FontPath     "unix/:7100"
    EndSection
     
    Section "Module"
     
     
            Load  "dbe"
            Load  "extmod"
            Load  "fbdevhw"
            Load  "glx"
            Load  "record"
            Load  "freetype"
            Load  "type1"
    EndSection
     
    Section "InputDevice"
     
    # Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
    #       Option  "Xleds"         "1 2 3"
    # To disable the XKEYBOARD extension, uncomment XkbDisable.
    #       Option  "XkbDisable"
    # To customise the XKB settings to suit your keyboard, modify the
    # lines below (which are the defaults).  For example, for a non-U.S.
    # keyboard, you will probably want to use:
    #       Option  "XkbModel"      "pc102"
    # If you have a US Microsoft Natural keyboard, you can use:
    #       Option  "XkbModel"      "microsoft"
    #
    # Then to change the language, change the Layout setting.
    # For example, a german layout can be obtained with:
    #       Option  "XkbLayout"     "de"
    # or:
    #       Option  "XkbLayout"     "de"
    #       Option  "XkbVariant"    "nodeadkeys"
    #
    # If you'd like to switch the positions of your capslock and
    # control keys, use:
    #       Option  "XkbOptions"    "ctrl:swapcaps"
    # Or if you just want both to be control, use:
    #       Option  "XkbOptions"    "ctrl:nocaps"
    #
            Identifier  "Keyboard0"
            Driver      "keyboard"
            Option      "XkbModel" "pc105"
            Option      "XkbLayout" "us"
    EndSection
     
    Section "InputDevice"
            Identifier  "Mouse0"
            Driver      "mouse"
            Option      "Protocol" "IMPS/2"
            Option      "Device" "/dev/input/mice"
            Option      "ZAxisMapping" "4 5"
            Option      "Emulate3Buttons" "yes"
    EndSection
     
    #
    # two monitors: KDS and an HP
    #
    #
     
    #KDS monitor
    Section "Monitor"
            Identifier   "Monitor0"
            VendorName   "Monitor Vendor"
            ModelName    "KDS XFlat XF-9b/XF-9c/XF-9e/XF-9p"
            DisplaySize  360        260
            HorizSync    30.0 - 98.0
            VertRefresh  50.0 - 160.0
            Option      "dpms"
    EndSection
     
    #HP monitor
    Section "Monitor"
            Identifier   "Monitor1"
            VendorName   "Monitor Vendor"
            ModelName    "HP D5258A Pavilion M50 Monitor"
            DisplaySize  360        260
            HorizSync    31.5 - 54.0
            VertRefresh  56.0 - 85.0
            Option      "dpms"
    EndSection
     
    #
    #  Each video card is a device
    #
    #
    Section "Device"
            Identifier  "Videocard1"
            Driver      "r128"
            VendorName  "Videocard vendor"
            BoardName   "ATI Rage 128"
            #lspci gives this value below, convert hex to dec
            BusID       "PCI:02:00:0"
            Screen      0
    EndSection
     
    Section "Device"
            Identifier  "Videocard0"
            Driver      "nv"
            VendorName  "Videocard Vendor"
            BoardName   "NVIDIA GeForce FX (generic)"
            #lspci gives this value below, convert hex to dec
            BusID       "PCI:1:0:0"
    EndSection
     
    #
    #Screens tie video cards to monitors
    # (i think)
    #
    Section "Screen"
            Identifier "Screen0"
            Device     "Videocard0"
            Monitor    "Monitor0"
            DefaultDepth     24
            SubSection "Display"
                    Viewport   0 0
                    Depth     24
                    Modes    "1024x768" "640x480"
            EndSubSection
    EndSection
     
    Section "Screen"
            Identifier "Screen1"
            Device     "Videocard1"
            Monitor    "Monitor1"
            DefaultDepth     24
            SubSection "Display"
                    Viewport   0 0
                    Depth     24
                    Modes    "800x600"
            EndSubSection
    EndSection
     
    
    
     
  4. HerrGlock

    HerrGlock Scouts Out CLM

    Messages:
    23,802
    Likes Received:
    255
    Joined:
    Dec 28, 2000
    WOOHOO! I may have to dig out a couple monitors just to screw around with this.

    DanH
     
  5. David_G17

    David_G17 /\/\/\/\/\/\/\/

    Messages:
    2,046
    Likes Received:
    6
    Joined:
    Oct 7, 2002
    go for it. i only did it b/c a friend was doing it and kept bragging about his windows box. he hates everything non-MS and is working on his Master's in Computer Science. ;5

    i had to show him up;)

    if you do it, there's a GUI tool which is supposed to make it easy, but gave me lots of problems. [start] -> [system settings] -> [display] -> [Dual head].

    some people say it works, but it kept modifying my xorg.conf file in ways that were obviously wrong.
     
  6. MikeG22

    MikeG22 CLM

    Messages:
    2,867
    Likes Received:
    1,091
    Joined:
    Jun 24, 2002
    Location:
    San Diego
    I tried doing this a year or so ago and failed to get it to work properly. Defintly one of the things that has kept my primary box from being linux, I need my dual monitors.