Find the answer to your Linux question:
Results 1 to 4 of 4
I'm now using Xgl/Xorg with my AGP card (GeForce4 MX 420). I found a old Matrox PCI card, which I'm trying to use with a second X-server (without Xgl), to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2006
    Posts
    2

    Dualhead with Xgl (NVidia) and Non-Xgl (old Matrox)


    I'm now using Xgl/Xorg with my AGP card (GeForce4 MX 420).

    I found a old Matrox PCI card, which I'm trying to use with a second X-server (without Xgl), to run MythTV on it.

    I red a lot of howtos and manpages, but it still doesn't work.

    thielmann@diabolus:~ $ lspci | grep VGA
    0000:01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 MX 420] (rev a3)
    0000:02:01.0 VGA compatible controller: Matrox Graphics, Inc.: Unknown device 050b
    I tried then "X -configure" which created the following xorg.conf:

    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 "/etc/X11/rgb"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/X11/fonts/misc/"
    FontPath "/usr/share/X11/fonts/TTF/"
    FontPath "/usr/share/X11/fonts/OTF"
    FontPath "/usr/share/X11/fonts/Type1/"
    FontPath "/usr/share/X11/fonts/CID/"
    FontPath "/usr/share/X11/fonts/100dpi/"
    FontPath "/usr/share/X11/fonts/75dpi/"
    EndSection

    Section "Module"
    Load "extmod"
    Load "dbe"
    Load "dri"
    Load "glx"
    Load "record"
    Load "xtrap"
    Load "GL"
    Load "GLU"
    Load "GLU"
    Load "freetype"
    Load "type1"
    EndSection

    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    EndSection

    Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/mouse"
    Option "ZAxisMapping" "4 5 6 7"
    EndSection

    Section "Monitor"
    #DisplaySize 310 230 # mm
    Identifier "Monitor0"
    VendorName "DEL"
    ModelName "DELL E771a"
    ### Comment all HorizSync and VertSync values to use DDC:
    HorizSync 30.0 - 70.0
    VertRefresh 50.0 - 160.0
    Option "DPMS"
    EndSection

    Section "Monitor"
    Identifier "Monitor1"
    VendorName "Monitor Vendor"
    ModelName "Monitor Model"
    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 "ShadowFB" # [<bool>]
    #Option "UseFBDev" # [<bool>]
    #Option "Rotate" # [<str>]
    #Option "VideoKey" # <i>
    #Option "FlatPanel" # [<bool>]
    #Option "FPDither" # [<bool>]
    #Option "CrtcNumber" # <i>
    #Option "FPScale" # [<bool>]
    #Option "FPTweak" # <i>
    Identifier "Card0"
    Driver "nv"
    VendorName "nVidia Corporation"
    BoardName "NV17 [GeForce4 MX 420]"
    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 "SWcursor" # [<bool>]
    #Option "HWcursor" # [<bool>]
    #Option "PciRetry" # [<bool>]
    #Option "SyncOnGreen" # [<bool>]
    #Option "NoAccel" # [<bool>]
    #Option "ShowCache" # [<bool>]
    #Option "Overlay" # [<str>]
    #Option "MGASDRAM" # [<bool>]
    #Option "ShadowFB" # [<bool>]
    #Option "UseFBDev" # [<bool>]
    #Option "ColorKey" # <i>
    #Option "SetMclk" # <freq>
    #Option "OverclockMem" # [<bool>]
    #Option "VideoKey" # <i>
    #Option "Rotate" # [<str>]
    #Option "TexturedVideo" # [<bool>]
    #Option "Crtc2Half" # [<bool>]
    #Option "Crtc2Ram" # <i>
    #Option "Int10" # [<bool>]
    #Option "AGPMode" # <i>
    #Option "AGPSize" # <i>
    #Option "DigitalScreen1" # [<bool>]
    #Option "DigitalScreen2" # [<bool>]
    #Option "TV" # [<bool>]
    #Option "TVStandard" # [<str>]
    #Option "CableType" # [<str>]
    #Option "NoHal" # [<bool>]
    #Option "SwappedHead" # [<bool>]
    #Option "DRI" # [<bool>]
    #Option "MergedFB" # [<bool>]
    #Option "Monitor2HSync" # [<str>]
    #Option "Monitor2VRefresh" # [<str>]
    #Option "Monitor2Position" # [<str>]
    #Option "MetaModes" # [<str>]
    #Option "OldDmaInit" # [<bool>]
    #Option "ForcePciDma" # [<bool>]
    Identifier "Card1"
    Driver "mga"
    VendorName "Matrox Graphics, Inc."
    BoardName "MGA 2164W [Millennium II]"
    BusID "PCI:2:1:0"
    EndSection

    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    SubSection "Display"
    Viewport 0 0
    Depth 1
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 4
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 8
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 15
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 16
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 24
    EndSubSection
    EndSection

    Section "Screen"
    Identifier "Screen1"
    Device "Card1"
    Monitor "Monitor1"
    SubSection "Display"
    Viewport 0 0
    Depth 1
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 4
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 8
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 15
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 16
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 24
    EndSubSection
    EndSection
    This doesn't work as expected, there's only one X-server started (on my AGP card).

    I managed to start the second Xserver with: X :1 -config /etc/X11/xorg2.conf
    with the following xorg2.conf:

    Section "Files"
    # path to defoma fonts
    FontPath "/usr/share/X11/fonts/misc"
    FontPath "/usr/share/X11/fonts/cyrillic"
    FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
    FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
    FontPath "/usr/share/X11/fonts/Type1"
    FontPath "/usr/share/X11/fonts/100dpi"
    FontPath "/usr/share/X11/fonts/75dpi"
    FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
    EndSection

    Section "Module"
    Load "bitmap"
    Load "dbe"
    Load "ddc"
    Load "extmod"
    Load "freetype"
    #Load "glx"
    Load "int10"
    Load "record"
    Load "type1"
    Load "vbe"
    EndSection

    Section "InputDevice"
    Identifier "Generic Keyboard"
    Driver "kbd"
    Option "CoreKeyboard"
    Option "XkbRules" "xorg"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "de"
    Option "XkbVariant" "nodeadkeys"
    EndSection

    Section "InputDevice"
    Identifier "Configured Mouse"
    Driver "mouse"
    Option "CorePointer"
    Option "Device" "/dev/input/mice"
    Option "Protocol" "ExplorerPS/2"
    Option "Emulate3Buttons" "true"
    EndSection

    Section "Monitor"
    Identifier "DELL E771a"
    HorizSync 30.0 - 70.0
    VertRefresh 50.0 - 160.0
    Option "DPMS"
    EndSection

    Section "Device"
    Identifier "Matrox unbekannte Karte"
    VendorName "Matrox"
    Driver "mga"
    # Option "DPMS"
    BusID "PCI:2:1:0"
    EndSection

    Section "Screen"
    Identifier "Zweiter Bildschirm"
    Device "Matrox unbekannte Karte"
    Monitor "DELL E771a"
    DefaultColorDepth 16
    Subsection "Display"
    Depth 16
    Modes "1024x768" "800x600" "640x480"
    ViewPort 0 0
    EndSubsection
    EndSection

    Section "ServerLayout"
    Identifier "layout2"
    Screen "Zweiter Bildschirm"
    EndSection
    But the problem is, that the second screen only shows content, when I switch to it (using Ctrl-F. If I switch back, the monitor shows a black screen. Same for the main monitor.

    Any ideas?

  2. #2
    Just Joined!
    Join Date
    Apr 2006
    Posts
    2
    Finally got it working (some rubbish in my xorg.conf...).

    But when I try to start some programs on the second screen, i get:

    thielmann@diabolus:~ $ xterm -display :0.1
    xterm Xt error: Can't open display: :0.1

  3. #3
    Just Joined!
    Join Date
    Sep 2011
    Posts
    1
    Quote Originally Posted by thielmann View Post
    Finally got it working (some rubbish in my xorg.conf...).
    Which kind of rubbish you removed? I have the same problem but I don't even get the card displaying any image.

    But when I try to start some programs on the second screen, i get:

    thielmann@diabolus:~ $ xterm -display :0.1
    xterm Xt error: Can't open display: :0.1
    I guess you have to use:
    Code:
    thielmann@diabolus:~ $ xterm -display :1
    since you have two X-Server.

  4. $spacer_open
    $spacer_close
  5. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Hello and welcome to the forums, bibodo!

    If you are having any problems with Linux, please feel free to start a fresh thread of your own with all the details. This one is well over 5 years old, so I'm locking it down.

    Thank you.
    oz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •