LinuxQuestions.org
Visit Jeremy's Blog.
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 12-09-2005, 09:53 AM   #1
Ogi
Member
 
Registered: Jun 2004
Location: Belgrade
Distribution: Anything with a bash prompt :P
Posts: 74

Rep: Reputation: 15
Matrox G450 and DRI Error


Hi all,

I am trying to get DRI working on my matrox G450 in single-head mode, but with no avail. The best I can manage is software rendering without DRI, which is too slow for gaming (I want to try out some linux games).

I have the mga driver compiled (kernel 2.6.14) as a module and it loads up at startup. Also I have the mga_drv.o and mga_hal.o drivers from the matrox site. But I still get the following errors (during X startup):

No matching visual for __GLcontextMode with visual class = -1 (-1), nplanes = 0
No matching visual for __GLcontextMode with visual class = -1 (-1), nplanes = 0
No matching visual for __GLcontextMode with visual class = -1 (-1), nplanes = 0
No matching visual for __GLcontextMode with visual class = -1 (-1), nplanes = 0
No matching visual for __GLcontextMode with visual class = -1 (-1), nplanes = 0
No matching visual for __GLcontextMode with visual class = -1 (-1), nplanes = 0
No matching visual for __GLcontextMode with visual class = -1 (-1), nplanes = 0
No matching visual for __GLcontextMode with visual class = -1 (-1), nplanes = 0

If I try running glxinfo I get the following:

libGL warning: 3D driver claims to not support visual 0x23
libGL warning: 3D driver claims to not support visual 0x24
libGL warning: 3D driver claims to not support visual 0xffffffff
libGL warning: 3D driver claims to not support visual 0xffffffff
libGL warning: 3D driver claims to not support visual 0xffffffff
libGL warning: 3D driver claims to not support visual 0xffffffff
libGL warning: 3D driver claims to not support visual 0xffffffff
libGL warning: 3D driver claims to not support visual 0xffffffff
libGL warning: 3D driver claims to not support visual 0xffffffff
libGL warning: 3D driver claims to not support visual 0xffffffff


And If I try running any glx-enabled program, it will fail, the glxgears
program provides the following error:


libGL warning: 3D driver claims to not support visual 0x23
libGL warning: 3D driver claims to not support visual 0x24
libGL warning: 3D driver claims to not support visual 0xffffffff
libGL warning: 3D driver claims to not support visual 0xffffffff
libGL warning: 3D driver claims to not support visual 0xffffffff
libGL warning: 3D driver claims to not support visual 0xffffffff
libGL warning: 3D driver claims to not support visual 0xffffffff
libGL warning: 3D driver claims to not support visual 0xffffffff
libGL warning: 3D driver claims to not support visual 0xffffffff
libGL warning: 3D driver claims to not support visual 0xffffffff
glxgears: Error: couldn't get an RGB, Double-buffered visual.



Can anyone help me with this?? I can provide additional info if you need, just ask.

Currently I have two config files, one dualhead with mergedFB for general use, and one single head for gaming.


=====Xorg.conf (single-head)===========

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath "/usr/lib/X11/rgb"
ModulePath "/usr/lib/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/CID/"
FontPath "/usr/share/fonts/75dpi/"
FontPath "/usr/share/fonts/100dpi/"
EndSection

Section "Module"

Load "dbe"
Load "record"
Load "extmod"
# Load "dri"
Load "glx"
Load "xtrap"
Load "freetype"
Load "type1"
EndSection

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

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
EndSection

Section "Monitor"
#DisplaySize 320 240 # mm
Identifier "Monitor0"
VendorName "PHL"
ModelName "PHILIPS 107B"
HorizSync 30.0 - 92.0
VertRefresh 50.0 - 160.0
Option "DPMS"
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" "True"# [<bool>]
#Option "PciRetry" # [<bool>]
#Option "SyncOnGreen" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "ShowCache" # [<bool>]
#Option "Overlay" # [<str>]
Option "MGASDRAM" "True"# [<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" "4" # <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" "True"# [<bool>]
#Option "MergedFB" # [<bool>]
#Option "Monitor2HSync" # [<str>]
#Option "Monitor2VRefresh" # [<str>]
#Option "Monitor2Position" # [<str>]
#Option "MetaModes" # [<str>]
#Option "UseXFreeVga" # [<bool>]
#Option "UseXFreeDDC" # [<bool>]
Identifier "Card0"
Driver "mga"
VendorName "Matrox Graphics, Inc."
BoardName "MGA G400 AGP"
BusID "PCI:1:0:0"

Option "AGPFastwrite" "True"
Option "EnablePageFlip" "True"
Option "VideoRam" "32000"


EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24

SubSection "Display"
# Viewport 0 0
Depth 24
Modes "800x600"
EndSubSection
EndSection

Section "DRI"
Mode 0666
EndSection

======================END==============

Thanks

P.S:

Of course if DRI can be enabled in dualhead mode it would be great, But extensive searching the net indicates that the hardware is not capable of DRI on more then one screen, and not at all when running in Merged framebuffer mode (which is what I am doing).

Last edited by Ogi; 12-09-2005 at 10:31 AM.
 
Old 01-24-2006, 03:57 PM   #2
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
hi - did you solve this yet? i'm having the same problem.
 
Old 01-26-2006, 01:17 PM   #3
Ogi
Member
 
Registered: Jun 2004
Location: Belgrade
Distribution: Anything with a bash prompt :P
Posts: 74

Original Poster
Rep: Reputation: 15
Quote:
hi - did you solve this yet? i'm having the same problem.
Nope, I swapped out the Matrox for one Nvidia AGP card (use binary drivers) and one Nvidia PCI (use nv driver) in dualhead mode.

this way one screen is DRI accelerated for games, while the other is not, I will probably get a PCI Nvidia card which is newer so that both screens are accelerated as well.

The Matrox card is currently gathering dust in the basement. It is a shame though, as I remember once getting DRI to work on it. but that was in single head mode only, and I couldnt repeat that success.

Sorry I cant help.
 
Old 02-12-2006, 02:04 PM   #4
kellinjar
Member
 
Registered: Mar 2004
Location: South Korea
Posts: 103

Rep: Reputation: 15
I'm getting this at startup with FC4, xorg 6.9 and latest dri from mesa (not CVS, just off their site)
The card I have is an intel integrated 915. Things work okay with it (I can play America's Army for example) but I'd like to get rid of the messages that are popping up during start up.
 
Old 02-13-2006, 10:16 AM   #5
foolsh
Member
 
Registered: Apr 2005
Location: IL
Distribution: kubuntu
Posts: 56

Rep: Reputation: 15
Quote:
Originally Posted by Ogi
Section "Module"

Load "dbe"
Load "record"
Load "extmod"
# Load "dri"
Load "glx"
Load "xtrap"
Load "freetype"
Load "type1"
EndSection
the line that loads the dri module is commented out
 
Old 02-15-2006, 10:22 AM   #6
Ogi
Member
 
Registered: Jun 2004
Location: Belgrade
Distribution: Anything with a bash prompt :P
Posts: 74

Original Poster
Rep: Reputation: 15
Quote:
the line that loads the dri module is commented out
Yes, because I tried a combination (glx+dri, dri only, glx only, ) and it happened that the last combination I tried was with dri commented out. I did Actually try with it enabled, as well as with it disabled. It just happens that I posted the config file with the last change. My mistake, Sorry.
 
Old 10-07-2006, 07:04 PM   #7
xucaen
Member
 
Registered: Feb 2004
Location: Boston
Distribution: Kubuntu 22.04
Posts: 101

Rep: Reputation: 16
DRI not working after upgrade to Etch, xorg v7

Quote:
Originally Posted by Ogi
Yes, because I tried a combination (glx+dri, dri only, glx only, ) and it happened that the last combination I tried was with dri commented out. I did Actually try with it enabled, as well as with it disabled. It just happens that I posted the config file with the last change. My mistake, Sorry.
Hi, was this issue ever resolved? I just finished an upgrade to debian Etch, and I now have xorg v7.0.

I have a matrox G450. Before the upgrade, I was running XFree86 v4.3.0.1. I had dri working then. glxinfo showed "direct rendering: Yes" and now it shows " "direct rendering: No".

glxgears -printfps
711 frames in 5.0 seconds = 142.079 FPS
863 frames in 5.8 seconds = 149.542 FPS
840 frames in 5.9 seconds = 142.390 FPS

and glxgears is veeeery slow and choppy.. I've been googling all day, and I've tried everything except downloading the latest matrox driver and compiling them. Why? well, I didn't do that before - I got the debian drivers to work as-is, and second, I read on the matrox user forums that the latest drivers don't work with xorg 7.0..
But..then.. why don't the debian drivers work? I did rerad that the xserver-xorg-video-mga does and should work.. I installed it.. but still no dri.

I seem to recall the order of the modules in xorg.conf do matter. Maybe I have to order wrong?

If anyone has any information about how to get direct rendering to work in xorg v7 using a matrox G450 AGP card please let me know.

Thanks!!

Jim
 
Old 12-07-2006, 06:54 AM   #8
todders
Member
 
Registered: Nov 2006
Location: watford
Distribution: Slackware 13 64Bit Multi-Lib KDE4.2.4
Posts: 83

Rep: Reputation: 18
i have been trying to gain more performance out of my matrox g450 dualhead card,i have recently used xorgsetup from the command line for xorg to detect the settings automatically,i now have an average of 395 frames per sec for glx gears which is a big improvement,i enabled the the dri option in xorg.conf with value of "true"

and added the following line at the end of the xorg.conf section
Section "DRI"
Mode 0666
EndSection

regards

adrian
 
Old 12-07-2006, 10:58 AM   #9
xucaen
Member
 
Registered: Feb 2004
Location: Boston
Distribution: Kubuntu 22.04
Posts: 101

Rep: Reputation: 16
Quote:
Originally Posted by todders
i have been trying to gain more performance out of my matrox g450 dualhead card,i have recently used xorgsetup from the command line for xorg to detect the settings automatically,i now have an average of 395 frames per sec for glx gears which is a big improvement,i enabled the the dri option in xorg.conf with value of "true"

and added the following line at the end of the xorg.conf section
Section "DRI"
Mode 0666
EndSection

regards

adrian

Hi, thanks for the suggestion. I ended up having to install the drivers from the Matrox web site, and even then, their installation script didn't work for Etch. I had to move the driver files to a different directory in order for Etch to load them. It is all working fine now.


Jim
 
  


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
Installation of Matrox G450 REMPLUS Linux - Hardware 0 11-11-2005 11:10 AM
[SOLVED] matrox g450 on asus a7v8x-mx se mobo bones996 Linux - Hardware 5 02-11-2005 09:02 AM
Getting Dual Head to work on Matrox G450 davidcrawley Linux - Hardware 1 02-23-2004 05:43 AM
Matrox G450 for Linux hanserr Linux - Hardware 1 12-30-2003 12:13 PM
Matrox G450 help Neomaster Linux - Hardware 2 07-26-2003 09:15 PM

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

All times are GMT -5. The time now is 02:12 PM.

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