LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-04-2007, 11:31 AM   #1
BuilderQ
Member
 
Registered: Sep 2007
Distribution: Xubuntu 8.04
Posts: 35

Rep: Reputation: 15
Direct rendering with Matrox Millennium G200


I've noticed that trying to run applications using OpenGL logs me out. I suspect this occurs because direct rendering is not enabled (glxinfo | grep rendering returns direct rendering: No).

I have a Matrox Millennium G200 graphics card (Windows 98 reports it as a Matrox MGA-G200 AGP; is that the same?), my kernel is 2.6.20-16-generic, and my xserver-xorg version is 1:7.2-0ubuntu11. What other information should I give? The Before you post: What to include in a Hardware question thread says I should include the output of /sbin/lspci, but no such file exists on my system.

Last edited by BuilderQ; 11-04-2007 at 11:47 AM.
 
Old 11-04-2007, 07:22 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Hi BuilderQ,

Quote:
The Before you post: What to include in a Hardware question thread says I should include the output of /sbin/lspci, but no such file exists on my system.
I believe Ubuntu and it's derivatives use sudo.
Code:
sudo lspci -v
Good luck. ;-)
 
Old 11-04-2007, 10:16 PM   #3
BuilderQ
Member
 
Registered: Sep 2007
Distribution: Xubuntu 8.04
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Peacedog View Post
I believe Ubuntu and it's derivatives use sudo.
Code:
sudo lspci -v
Thanks, here then is the result of that command:
Code:
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
        Flags: bus master, medium devsel, latency 64
        Memory at f8000000 (32-bit, prefetchable) [size=64M]
        Capabilities: [a0] AGP version 1.0

00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03) (prog-if 00 [Normal decode])
        Flags: bus master, 66MHz, medium devsel, latency 128
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
        Memory behind bridge: f4200000-f4ffffff
        Prefetchable memory behind bridge: f5000000-f5ffffff

00:04.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
        Flags: bus master, medium devsel, latency 0

00:04.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01) (prog-if 80 [Master])
        Flags: bus master, medium devsel, latency 64
        [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [disabled] [size=8]
        [virtual] Memory at 000003f0 (type 3, non-prefetchable) [disabled] [size=1]
        [virtual] Memory at 00000170 (32-bit, non-prefetchable) [disabled] [size=8]
        [virtual] Memory at 00000370 (type 3, non-prefetchable) [disabled] [size=1]
        I/O ports at 1020 [size=16]

00:04.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01) (prog-if 00 [UHCI])
        Flags: bus master, medium devsel, latency 64, IRQ 11
        I/O ports at 1000 [size=32]

00:04.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 02)
        Flags: medium devsel, IRQ 9

00:06.0 Multimedia audio controller: Cirrus Logic CS 4614/22/24/30 [CrystalClear SoundFusion Audio Accelerator] (rev 01)
        Subsystem: Cirrus Logic Crystal SoundFusion PCI Audio Accelerator
        Flags: bus master, medium devsel, latency 64, IRQ 10
        Memory at f4100000 (32-bit, non-prefetchable) [size=4K]
        Memory at f4000000 (32-bit, non-prefetchable) [size=1M]
        Capabilities: [40] Power Management version 2

00:0b.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] (rev 30)
        Subsystem: 3Com Corporation 3C905B Fast Etherlink XL 10/100
        Flags: bus master, medium devsel, latency 64, IRQ 11
        I/O ports at 1080 [size=128]
        Memory at f4101000 (32-bit, non-prefetchable) [size=128]
        [virtual] Expansion ROM at 30000000 [disabled] [size=128K]
        Capabilities: [dc] Power Management version 1

01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G200 AGP (rev 03) (prog-if 00 [VGA])
        Subsystem: Matrox Graphics, Inc. MGA-G200 AGP
        Flags: bus master, medium devsel, latency 128, IRQ 9
        Memory at f5000000 (32-bit, prefetchable) [size=16M]
        Memory at f4200000 (32-bit, non-prefetchable) [size=16K]
        Memory at f4800000 (32-bit, non-prefetchable) [size=8M]
        Capabilities: [dc] Power Management version 1
        Capabilities: [f0] AGP version 1.0
 
Old 11-05-2007, 07:40 AM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
This is your video card.

Quote:
01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G200 AGP (rev 03) (prog-if 00 [VGA])
Subsystem: Matrox Graphics, Inc. MGA-G200 AGP
Flags: bus master, medium devsel, latency 128, IRQ 9
Memory at f5000000 (32-bit, prefetchable) [size=16M]
Memory at f4200000 (32-bit, non-prefetchable) [size=16K]
Memory at f4800000 (32-bit, non-prefetchable) [size=8M]
Capabilities: [dc] Power Management version 1
Capabilities: [f0] AGP version 1.0
Here is a guide for your use.
Good luck. ;-)
 
Old 11-05-2007, 07:11 PM   #5
BuilderQ
Member
 
Registered: Sep 2007
Distribution: Xubuntu 8.04
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Peacedog View Post
Here is a guide for your use.
Good luck. ;-)
That looks a bit complicated. Does Xorg count as > XFree86 4.2?

Well, let's see what I can find. My /etc/X11/xorg.conf file loads the DRI and GLX modules and has the DRI section specified on that page. Furthermore, bus mastering seems to be enabled. I note that my /var/log/Xorg.0.log contains this passage:
Code:
(==) MGA(0): Write-combining range (0xf5000000,0x800000)
(II) MGA(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x0000
(--) MGA(0): 64 DWORD fifo
(==) MGA(0): Default visual is TrueColor
(EE) MGA(0): Static buffer allocation failed, not initializing the DRI
(EE) MGA(0): Need at least 9216 kB video memory at this resolution, bit depth
(II) MGA(0): Using 1279 lines for offscreen memory.
(II) MGA(0): Using XFree86 Acceleration Architecture (XAA)
	Screen to screen bit blits
	Solid filled rectangles
	Solid filled trapezoids
	8x8 mono pattern filled rectangles
	8x8 mono pattern filled trapezoids
	Indirect CPU to Screen color expansion
	Screen to Screen color expansion
	Solid Lines
	Dashed Lines
	Scanline Image Writes
	Offscreen Pixmaps
	Setting up tile and stipple cache:
		32 128x128 slots
		10 256x256 slots
(==) MGA(0): Backing store disabled
(==) MGA(0): Silken mouse enabled
(**) Option "dpms"
(**) MGA(0): DPMS enabled
(II) MGA(0): Using overlay video
(WW) MGA(0): Direct rendering disabled
This is my xorg.conf:
Code:
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf(5) manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

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

Section "Module"
	Load	"i2c"
	Load	"bitmap"
	Load	"ddc"
	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"vbe"
EndSection

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

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

#Section "InputDevice"
#	Driver		"wacom"
#	Identifier	"stylus"
#	Option		"Device"	"/dev/input/wacom"
#	Option		"Type"		"stylus"
#	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
#EndSection

#Section "InputDevice"
#	Driver		"wacom"
#	Identifier	"eraser"
#	Option		"Device"	"/dev/input/wacom"
#	Option		"Type"		"eraser"
#	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
#EndSection

#Section "InputDevice"
#	Driver		"wacom"
#	Identifier	"cursor"
#	Option		"Device"	"/dev/input/wacom"
#	Option		"Type"		"cursor"
#	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
#EndSection

Section "Device"
	Identifier	"Matrox Graphics, Inc. MGA G200 AGP"
	Driver		"mga"
	BusID		"PCI:1:0:0"
	Option		"OldDmaInit"		"True"
EndSection

Section "Monitor"
	Identifier	"IBM G97"
	Option		"DPMS"
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"Matrox Graphics, Inc. MGA G200 AGP"
	Monitor		"IBM G97"
	DefaultDepth	24
	SubSection "Display"
		Depth		1
		Modes		"1024x768" "832x624" "800x600" "720x400" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1024x768" "832x624" "800x600" "720x400" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1024x768" "832x624" "800x600" "720x400" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1024x768" "832x624" "800x600" "720x400" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1024x768" "832x624" "800x600" "720x400" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1024x768" "832x624" "800x600" "720x400" "640x480"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
#	InputDevice     "stylus"	"SendCoreEvents"
#	InputDevice     "cursor"	"SendCoreEvents"
#	InputDevice     "eraser"	"SendCoreEvents"
EndSection

Section "DRI"
	Mode	0666
EndSection
 
Old 11-06-2007, 08:03 AM   #6
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
This line stands out.

Quote:
(EE) MGA(0): Need at least 9216 kB video memory at this resolution, bit depth
Try
Code:
DefaultDepth   16
and see if that helps.
Good luck. ;-)
 
Old 11-06-2007, 11:15 AM   #7
BuilderQ
Member
 
Registered: Sep 2007
Distribution: Xubuntu 8.04
Posts: 35

Original Poster
Rep: Reputation: 15
Well, direct rendering is enabled after setting color depth to 16. glxgears now runs at over 200 FPS, which is 2 or 3 times as fast as before (however, I now note that dragging the glxgears window leaves copies of itself and black areas on the screen).

Is this my only option? Under Windows 98 I had 32 bit color and could run OpenGL applications like Anim8or without trouble. If I have to trade between direct rendering and color depth, I will end up choosing color depth.

Here is that section of Xorg.0.log with decreased color depth:
Code:
(==) MGA(0): Write-combining range (0xf5000000,0x800000)
(II) MGA(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x0000
(--) MGA(0): 64 DWORD fifo
(==) MGA(0): Default visual is TrueColor
(II) MGA(0): [drm] bpp: 16 depth: 16
(II) MGA(0): [drm] Sarea 2200+664: 2864
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device or address)
drmOpenDevice: open result is -1, (No such device or address)
drmOpenDevice: Open failed
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device or address)
drmOpenDevice: open result is -1, (No such device or address)
drmOpenDevice: Open failed
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmOpenByBusid: drmOpenMinor returns 7
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
(II) MGA(0): [drm] loaded kernel module for "mga" driver
(II) MGA(0): [drm] DRM interface version 1.3
(II) MGA(0): [drm] created "mga" driver at busid "pci:0000:01:00.0"
(II) MGA(0): [drm] added 8192 byte SAREA at 0xe0bd7000
(II) MGA(0): [drm] mapped SAREA 0xe0bd7000 to 0xb7336000
(II) MGA(0): [drm] framebuffer handle = 0xf5000000
(II) MGA(0): [drm] added 1 reserved context for kernel
(II) MGA(0): [agp] Mode 0x1f000201 [AGP 0x8086/0x7190; Card 0x102b/0x0521]
(II) MGA(0): [drm] Disabling AGP 2x PLL encoding
(II) MGA(0): [agp] 12288 kB allocated with handle 0x00000001
(II) MGA(0): [agp] WARP microcode handle = 0xf8000000
(II) MGA(0): [agp] Primary DMA handle = 0xf8008000
(II) MGA(0): [agp] DMA buffers handle = 0xf8108000
(II) MGA(0): [drm] Added 128 65536 byte DMA buffers
(II) MGA(0): [agp] agpTexture handle = 0xf8908000
(II) MGA(0): [agp] agpTexture size: 2816 kb
(II) MGA(0): [drm] Registers handle = 0xf4200000
(II) MGA(0): [drm] Status handle = 0xe0bde000
(II) MGA(0): [dri] visual configs initialized
(II) MGA(0): Memory manager initialized to (0,0) (1024,1535)
(II) MGA(0): Largest offscreen area available: 1024 x 767
(II) MGA(0): Reserved back buffer at offset 0x300000
(II) MGA(0): Reserved depth buffer at offset 0x480000
(II) MGA(0): Reserved 2048 kb for textures at offset 0x600000
(II) MGA(0): Using XFree86 Acceleration Architecture (XAA)
	Screen to screen bit blits
	Solid filled rectangles
	Solid filled trapezoids
	8x8 mono pattern filled rectangles
	8x8 mono pattern filled trapezoids
	Indirect CPU to Screen color expansion
	Screen to Screen color expansion
	Solid Lines
	Dashed Lines
	Scanline Image Writes
	Offscreen Pixmaps
	Setting up tile and stipple cache:
		20 128x128 slots
		5 256x256 slots
(==) MGA(0): Backing store disabled
(==) MGA(0): Silken mouse enabled
(**) Option "dpms"
(**) MGA(0): DPMS enabled
(II) MGA(0): Using overlay video
(II) MGA(0): X context handle = 0x1
(II) MGA(0): [drm] installed DRM signal handler
(II) MGA(0): [DRI] installation complete
(II) MGA(0): [drm] Mapped 128 DMA buffers
(II) MGA(0): [drm] dma control initialized, using IRQ 9
(II) MGA(0): Direct rendering enabled
 
Old 11-06-2007, 12:17 PM   #8
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
The DRI guide mentions setting IRQ for the card in bios and the mga man page has more options available that may help.
Good luck. ;-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Matrox Millennium II driver - high res? patrickh Linux - Hardware 2 07-05-2004 11:17 AM
problem with direct rendering on Mandrake 10 with Matrox Millenium G200 skyjet Linux - Hardware 1 04-22-2004 08:21 PM
Matrox Millennium II Drivers loadedmind Slackware 11 03-11-2004 01:36 PM
need help: Matrox G400, setting up direct rendering in slackware 9.0 Mizugori Linux - Hardware 0 01-19-2004 01:36 PM
Matrox Millennium javax Linux - Hardware 1 11-13-2002 06:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration