LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   xorg.conf - Dual Monitors (https://www.linuxquestions.org/questions/linux-hardware-18/xorg-conf-dual-monitors-435117/)

rizhun 04-14-2006 10:47 AM

xorg.conf - Dual Monitors
 
Hi,

I have two monitors.

'monitor0'
One is a 17" LCD Flatscreen that I would like to run at 1024x768.
This monitor is powered by a 16mb nVidea TNT2 PCI card.

'monitor1'
The second is a 26" LCD Flatscreen that I would like to run at something more adventurous, 1280x1024.
This monitor is powered by a 128mb nVidea MX AGP card.

I can see that the two cards/monitors are working by changing the default graphics card in the BIOS between PCI and AGP.

I would like to set it up so that I can have 2 desktops.

I have tried to set this up using Fedora's 'system-config-display'.
This utility has created the following xorg.conf:

/etc/X11/xorg.conf
Code:

# Xorg configuration created by system-config-display

Section "ServerLayout"
        Identifier    "Multihead layout"
        Screen      0  "Screen0" LeftOf "Screen1"
        Screen      1  "Screen1" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
        Option      "Xinerama" "off"
        Option      "Clone" "on"
EndSection

[SNIP]

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "type1"
        Load  "dri"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "gb"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "IMPS/2"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5"
        Option      "Emulate3Buttons" "yes"
EndSection

Section "Monitor"
        Identifier  "Monitor0"
        VendorName  "Monitor Vendor"
        ModelName    "LCD Panel 1024x768"
        DisplaySize  300        230
        HorizSync    31.5 - 48.5
        VertRefresh  40.0 - 70.0
        Option      "dpms"
EndSection

Section "Monitor"
        Identifier  "Monitor1"
        VendorName  "Monitor Vendor"
        ModelName    "LCD Panel 1280x1024"
        HorizSync    31.5 - 67.0
        VertRefresh  50.0 - 75.0
        Option      "dpms"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "nv"
        VendorName  "Videocard vendor"
        BoardName  "NVIDIA Riva TNT2 (generic)"
EndSection

Section "Device"
        Identifier  "Videocard1"
        Driver      "nv"
        VendorName  "Videocard Vendor"
        BoardName  "NVIDIA GeForce 4 MX (generic)"
        BusID      "PCI:2:0:0"
        Screen      1
EndSection

Section "Screen"
        Identifier "Screen0"
        Device    "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth    24
        SubSection "Display"
                Viewport  0 0
                Depth    16
                Modes    "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    24
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen1"
        Device    "Videocard1"
        Monitor    "Monitor1"
        DefaultDepth    24
        SubSection "Display"
                Viewport  0 0
                Depth    24
                Modes    "1024x768"
        EndSubSection
EndSection

Section "DRI"
        Group        0
        Mode        0666
EndSection

I have read a couple of HOWTO's on the internet about setting up this file.

I'm concerned about the two 'SubSections' in the Screen0 Section, and the lack of 'BusID' and 'Screen' settings in Videocard0.

This config will boot, and load up the default screen (17") propperly, but the other screen does nothing.

lspci
Code:

00:00.0 Host bridge: nVidia Corporation nForce2 AGP (different version?) (rev a2)
00:00.1 RAM memory: nVidia Corporation nForce2 Memory Controller 1 (rev a2)
00:00.2 RAM memory: nVidia Corporation nForce2 Memory Controller 4 (rev a2)
00:00.3 RAM memory: nVidia Corporation nForce2 Memory Controller 3 (rev a2)
00:00.4 RAM memory: nVidia Corporation nForce2 Memory Controller 2 (rev a2)
00:00.5 RAM memory: nVidia Corporation nForce2 Memory Controller 5 (rev a2)
00:01.0 ISA bridge: nVidia Corporation nForce2 ISA Bridge (rev a4)
00:01.1 SMBus: nVidia Corporation nForce2 SMBus (MCP) (rev a2)
00:02.0 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)
00:02.1 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)
00:02.2 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)
00:04.0 Ethernet controller: nVidia Corporation nForce2 Ethernet Controller (rev a1)
00:08.0 PCI bridge: nVidia Corporation nForce2 External PCI Bridge (rev a3)
00:09.0 IDE interface: nVidia Corporation nForce2 IDE (rev a2)
00:1e.0 PCI bridge: nVidia Corporation nForce2 AGP (rev a2)
01:06.0 FireWire (IEEE 1394): NEC Corporation uPD72874 IEEE1394 OHCI 1.1 3-port PHY-Link Ctrlr (rev 01)
01:07.0 Communication controller: Intel Corp. 536EP Data Fax Modem
01:08.0 VGA compatible controller: nVidia Corporation NV5M64 [RIVA TNT2 Model 64/Model 64 Pro] (rev 15)
01:0b.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80)
02:00.0 VGA compatible controller: nVidia Corporation NV18 [GeForce4 MX 4000 AGP 8x] (rev c1)

/var/log/Xorg.0.log
Code:

X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: Linux 2.4.21-23.ELsmp i686 [ELF]
Current Operating System: Linux nexus.tobz.is-a-geek.com 2.6.12-1.1372_FC3 #1 Fri Jul 15 00:59:10 EDT 2005 i686
Build Date: 23 September 2005
Build Host: bugs.build.redhat.com

        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present
OS Kernel: Linux version 2.6.12-1.1372_FC3 (bhcompile@tweety.build.redhat.com) (gcc version 3.4.3 20050227 (Red Hat 3.4.3-22)) #1 Fri Jul 15 00:59:10 EDT 2005
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Fri Apr 14 16:58:46 2006
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "Multihead layout"
(**) |-->Screen "Screen0" (0)
(**) |  |-->Monitor "Monitor0"
(**) |  |-->Device "Videocard0"
(**) |-->Screen "Screen1" (1)
(**) |  |-->Monitor "Monitor1"
(**) |  |-->Device "Videocard1"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(**) FontPath set to "unix/:7100"
(**) RgbPath set to "/usr/X11R6/lib/X11/rgb"
(==) ModulePath set to "/usr/X11R6/lib/modules"
(**) Option "Xinerama" "off"
(WW) Open APM failed (/dev/apm_bios) (No such file or directory)
(II) Module ABI versions:
        X.Org ANSI C Emulation: 0.2
        X.Org Video Driver: 0.7
        X.Org XInput driver : 0.4
        X.Org Server Extension : 0.2
        X.Org Font Renderer : 0.4
(II) Loader running on linux
(II) LoadModule: "bitmap"
(II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.a
(II) Module bitmap: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        Module class: X.Org Font Renderer
        ABI class: X.Org Font Renderer, version 0.4
(II) Loading font Bitmap
(II) LoadModule: "pcidata"
(II) Loading /usr/X11R6/lib/modules/libpcidata.a
(II) Module pcidata: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org Video Driver, version 0.7
(++) using VT number 7

[SNIP]

(II) Primary Device is: PCI 01:08:0
(--) Assigning device section with no busID to primary device
(WW) NV: No matching Device section for instance (BusID PCI:2:0:0) found
(--) Chipset RIVA TNT2 Model 64 found
(--) Chipset GeForce4 MX 4000 found
(II) resource ranges after xf86ClaimFixedResources() call:

[SNIP]

(EE) Screen 1 deleted because of no matching config section.

[SNIP]

Please help me with this! I'm losing it!

Thanks for reading.


All times are GMT -5. The time now is 12:04 AM.