Subject: how to setup xinerama
To: None <netbsd-help@netbsd.org, netbsd-users@netbsd.org>
From: Co Thai Ngo <cngo@nmsu.edu>
List: netbsd-users
Date: 03/14/2005 23:28:21
Hi all,
I'm trying setup xinerama on my computer, that has one Matrox MGA G200 AGP
videl card with 4 outputs. Two monitors are connected to 2 of 4 outputs. My
computer runs NetBSD-2.0. Here is my prolem. When I run startx, I can the the
half of X-Windows on the first monitor. On the second one, I can see only
black and white lines, no window at all. Could anyone explain me what problem
is and how to get it fixed. I've tried to add 3 lines "vga* at pci? dev ?
function ?" to GENERIC file and rebuild the kernel with the hope that the
kernel would recognize the second monitor. But I got the same results. Could
anyone explain me how the kernel and xserver are related. If the kernel can't
initialize a drive, can the xserver recognize and accesses the hardware (pci)
by itself. Any suggestion and comment on the above problem is highly
appreciated. I attached here my XF86Config, dmesg.boot and MYKERNEL files for
your reference.
Thank you very much
--
Co Thai Ngo
Dept. of Biology
New Mexico State University
*********** XF86Config **************
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
# Screen 2 "Screen2" RightOf "Screen1"
# Screen 3 "Screen3" RightOf "Screen2"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
Section "Module"
Load "record"
Load "dbe"
Load "glx"
Load "xtrap"
Load "extmod"
Load "type1"
Load "speedo"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "wsmouse"
Option "Device" "/dev/wsmouse"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "ACI"
ModelName "6e6"
HorizSync 31.5 - 57.0
VertRefresh 50.0 - 100.0
Option "DPMS"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 31.5 - 57.0
VertRefresh 50.0 - 100.0
EndSection
Section "Monitor"
Identifier "Monitor2"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 31.5 - 57.0
VertRefresh 50.0 - 100.0
EndSection
Section "Monitor"
Identifier "Monitor3"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 31.5 - 57.0
VertRefresh 50.0 - 100.0
EndSection
Section "Device"
Identifier "Card0"
Driver "mga"
VendorName "Matrox Graphics, Inc."
BoardName "MGA G200 AGP"
BusID "PCI:2:0:0"
EndSection
Section "Device"
Identifier "Card1"
Driver "mga"
VendorName "Matrox Graphics, Inc."
BoardName "MGA G200 AGP"
BusID "PCI:2:4:0"
EndSection
Section "Device"
Identifier "Card2"
Driver "mga"
VendorName "Matrox Graphics, Inc."
BoardName "MGA G200 AGP"
BusID "PCI:2:8:0"
EndSection
Section "Device"
Identifier "Card3"
Driver "mga"
VendorName "Matrox Graphics, Inc."
BoardName "MGA G200 AGP"
BusID "PCI:2:12: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
Section "Screen"
Identifier "Screen2"
Device "Card2"
Monitor "Monitor2"
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 "Screen3"
Device "Card3"
Monitor "Monitor3"
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 "ServerFlags"
Option "Xinerama" "true"
EndSection
****************
********** dmesg.boot ************
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
vga1 at pci2 dev 0 function 0: Matrox MGA G200 AGP (rev. 0x03)
wsdisplay0 at vga1 kbdmux 1
wsmux1: connecting to wsdisplay0
Matrox MGA G200 AGP (miscellaneous display, revision 0x03) at pci2 dev 4
function 0 not configured
Matrox MGA G200 AGP (miscellaneous display, revision 0x03) at pci2 dev 8
function 0 not configured
Matrox MGA G200 AGP (miscellaneous display, revision 0x03) at pci2 dev 12
function 0 not configured
ex0 at pci0 dev 12 function 0: 3Com 3c905C-TX 10/100 Ethernet with mngmt (rev.
0x78)
************
********* MYKERNEL **********
# wscons
pckbc0 at isa? # pc keyboard controller
pckbd* at pckbc? # PC keyboard
pms* at pckbc? # PS/2 mouse for wsmouse
#options PMS_DISABLE_POWERHOOK # Disable PS/2 reset on resume
vga0 at isa?
vga* at pci? dev ? function ?
vga* at pci? dev ? function ?
vga* at pci? dev ? function ?
vga* at pci? dev ? function ?
pcdisplay0 at isa? # CGA, MDA, EGA, HGA
#machfb* at pci? dev ? function ? # ATI Mach64 framebuffer driver
wsdisplay* at vga? console ?
wsdisplay* at pcdisplay? console ?
#wsdisplay* at machfb? console ?
wskbd* at pckbd? console ?
wsmouse* at pms? mux 0
pcppi0 at isa?
sysbeep0 at pcppi?
**************