LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I got dual monitors working in linux (http://www.linuxquestions.org/questions/linux-newbie-8/i-got-dual-monitors-working-in-linux-282073/)

David_g17 01-25-2005 12:50 PM

I got dual monitors working in linux
 
HP monitor, KDS monitor, Nvidia card, and an ATI card.

in case anyone happens to come across this site via google, here's my xorg.conf file:

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

Edited to add: distro was Fedora Core 2

twantrd 01-25-2005 01:23 PM

Thank you for posting this up. I'm sure someone (maybe me later on) will find this useful! Thanks again!

-twantrd

minm 01-25-2005 02:21 PM

perhaps you should submit this to the Tutorials section of the site

cadkins 01-25-2005 03:12 PM

oh man!!! I just got a new video card with dual monitor support. was wondering about my linux partition when i was installing it and was concerned..........i am bookmarking this and giving it a go when i get home!

thanks!!!!

tamoneya 01-25-2005 04:38 PM

You could also try posting in linux success forum. it seems like a success to me.

:Pengy:


All times are GMT -5. The time now is 06:07 AM.