Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I've been having 3D acceleration problems playing Wolfenstein: Enemy Territory (Linux client; no emulation) on this system under Mandrake 9.1... looks like I get 1 fps or so, as everything's terribly choppy. I have installed the latest drivers from Matrox, but it's still unplayable.
On this system, WolfET plays perfectly fine under Win2k (no choppiness at all), but under Mandrake 9.1 the game's unplayable due to the choppiness. So, I'm guessing the problem isn't that my hardware isn't powerful enough to run the game.
Does anyone else have experience with Matrox cards under Linux and would know whether the problems I'm experiencing are the result of a driver problem? Could ther be some other configuration error that could account for this discrepency?
Here's the output from glxgears (which I'm guessing is OK):
Quote:
1407 frames in 5.0 seconds = 281.400 FPS
1660 frames in 5.0 seconds = 332.000 FPS
1663 frames in 5.0 seconds = 332.600 FPS
1661 frames in 5.0 seconds = 332.200 FPS
1662 frames in 5.0 seconds = 332.400 FPS
1657 frames in 5.0 seconds = 331.400 FPS
1666 frames in 5.0 seconds = 333.200 FPS
1657 frames in 5.0 seconds = 331.400 FPS
1651 frames in 5.0 seconds = 330.200 FPS
Is there a way I can tell if DRI is running? It doesn't show up under top, but /dev/dri/card0 exists.
And here's my XF86Config; it should be standard as I just kept what Mandrake set up for me on install.
Quote:
# File generated by XFdrake.
# **********************************************************************
# Refer to the XF86Config man page for details about the format of
# this file.
# **********************************************************************
Section "Files"
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Mandrake 6.0 and later now use a font server independent of
# the X server to render fonts.
FontPath "unix/:-1"
EndSection
Section "ServerFlags"
#DontZap # disable <Crtl><Alt><BS> (server abort)
AllowMouseOpenFail # allows the server to start up even if the mouse doesn't work
#DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)
EndSection
# This is a set of standard mode timings. Modes that are out of monitor spec
# are automatically deleted by the server (provided the HorizSync and
# VertRefresh lines are correct), so there's no immediate need to
# delete mode timings (unless particular mode timings don't work on your
# monitor). With these modes, the best standard mode that your monitor
# and video card can support for a given resolution is automatically
# used.
You have no DRI subsection! Whew, this is probably going to be a quick fix (I hope), add at the end, wherever really, but its a good place to put it:
Code:
Section "DRI"
Mode0666
EndSection
That'll let Joe user actually be able to use the hardware acceleration driver. Also, you might want to grab the utility, mgapdesk from Matrox, it does a good job at tailoring your XF86Config for the card, and it makes a backup for it it makes a mess.
Thanks again. I added the Section "DRI" block to XF86Config, but it didn't seem to help. Looking through /etc/X11/, I've got both XF86Config and XF86Config-4. Is this normal?
Here's the contents of XF86Config-4
Code:
# File generated by XFdrake.
# **********************************************************************
# Refer to the XF86Config man page for details about the format of
# this file.
# **********************************************************************
Section "Files"
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Mandrake 6.0 and later now use a font server independent of
# the X server to render fonts.
FontPath "unix/:-1"
EndSection
Section "ServerFlags"
#DontZap # disable <Crtl><Alt><BS> (server abort)
AllowMouseOpenFail # allows the server to start up even if the mouse doesn't work
#DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)
EndSection
Section "Module"
Load "dbe" # Double-Buffering Extension
Load "v4l" # Video for Linux
Load "extmod"
Load "type1"
Load "freetype"
Load "glx" # 3D layer
Load "dri" # direct rendering
EndSection
Section "DRI"
Mode 0666
EndSection
Section "InputDevice"
Identifier "Keyboard1"
Driver "Keyboard"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
Option "XkbCompat" ""
Option "XkbOptions" ""
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/usbmouse"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Mouse2"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons"
Option "Emulate3Timeout" "50"
EndSection
Section "Monitor"
Identifier "monitor1"
VendorName "Plug'n Play"
ModelName "LG StudioWorks 995E"
HorizSync 30-96
VertRefresh 50-160
# Sony Vaio C1(X,XS,VE,VN)?
# 1024x480 @ 85.6 Hz, 48 kHz hsync
ModeLine "1024x480" 65.00 1024 1032 1176 1344 480 488 494 563 -hsync -vsync
# TV fullscreen mode or DVD fullscreen output.
# 768x576 @ 79 Hz, 50 kHz hsync
ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630
# 768x576 @ 100 Hz, 61.6 kHz hsync
ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616
EndSection
Section "Device"
Identifier "device1"
VendorName "Matrox Graphics, Inc."
BoardName "Matrox Millennium G400"
Driver "mga"
VideoRam 32768
Option "DPMS"
EndSection
Section "Screen"
Identifier "screen1"
Device "device1"
Monitor "monitor1"
DefaultColorDepth 24
Subsection "Display"
Depth 8
Modes "1600x1200" "1400x1050" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubsection
Subsection "Display"
Depth 15
Modes "1600x1200" "1400x1050" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubsection
Subsection "Display"
Depth 16
Modes "1600x1200" "1400x1050" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubsection
Subsection "Display"
Depth 24
Modes "1600x1200" "1400x1050" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubsection
EndSection
Section "ServerLayout"
Identifier "layout1"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Mouse1" "CorePointer"
InputDevice "Mouse2" "SendCoreEvents"
Screen "screen1"
EndSection
Is it normal to have both of these files in /etc/X11/?
When XFree86 4.x.x came out, Mandy, RH and SuSe kept 3.3.6 in the distro for cards/monitor combos that go all goofy in X 4.x.x, so they gave the XF86Config file for their 4 setup a different name. It should go away shortly as XFree 4.3.0 is pretty much solid and I don't see it getting much better.
Honestly, mgapdesk... it fed a bunch of card options into my XF file, and I pretty much have the same card as you, a 32Mb DDR card with little slower gpu, and I jumped for fps in the 200s to about 800.
Well, I installed and ran mgapdesk as you suggested... no change to 3D performance.
I checked out the DRI project page on SourceForge and went through the steps they recommend for the situation I'm experiencing (make sure DRI is enabled and make sure I've got the latest libGL module - both of which are the case), yet still no luck.
For gl do not install the default mesa libs as you will be running in software mode. You may need to unisntall mesa and reinstall the XFree86 rpms for XF4.3.0.
We'll see what happens
thanks again for all your help - it's a learning experience.
I just got my g450 running not that long ago myself. I run Slackware 9.0 and DRI(dri.sourceforge.net) wasn't installed by default so I downloaded and compilied it in. I dunno if this has any to do with the hardware acceleration but I also installed SDL(www.libsdl.org) because I noticed that games like UT needed this support. Also, check out the Docs on both of the websites mentioned above, they were a good source of help for me.
I'm running X's with G400 and getting quite decent performance in Enemy Territory - is playable in "fastest" mode, and even in "fast" except for Wurzburg Radar map, but little slower then win32.
My config: PIII600, 256RAM, G400, Slackware 9.0, recompiled X's.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.