Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Configuring a Matrox G450 and XFree86 under Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
wrs4
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2003
Posts: 98
Location: Alexandria, VA

PostPosted: Thu Jun 12, 2003 9:32 pm    Post subject: Configuring a Matrox G450 and XFree86 under Gentoo Reply with quote

Configuring a Matrox G450 and XFree86 under Gentoo

I began my investigations when I kept seeing errors for agpgart in my dmesg while booting. At the time, I had it compiled into the kernel, and couldn't get X to run. The following is the procedure I used to get X working with a Matrox G450 on an Iwill DPL-533 board. Ammendments to this would be appreciated; the procedure should be a good starting point for other MGA cards.

First emerge xfree if it hasn't already been installed on your system. I found the GRP install a little iffy, so I installed it via emerge:

Code:

kenobi root # emerge xfree


Also, emerge pciutils (if you haven't already) and figure out the chipset you need for your kernel:

Code:

kenobi root # lspci |grep AGP
00:01.0 PCI bridge: Intel Corp. E7000 Series Processor to AGP Controller (rev 03)
01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G400 AGP (rev 85)


Next, make sure you have the proper kernel sources, cd to the directory, and enter menuconfig:

Code:

kenobi root # ls -l /usr/src/linux
lrwxrwxrwx    1 root     root           22 Jun 10 15:12 /usr/src/linux -> linux-2.4.20-gentoo-r5/
kenobi root # cd /usr/src/linux
kenobi linux # make menuconfig


Update your agpgart portion as follows:

Code:

Character devices --->
<M> /dev/agpgart (AGP Support)
[*]   Intel 440LX/BX/GX etc...
[ ]   various other chipsets you *KNOW* you don't need
[ ] Direct Rendering Manager (XFree86 DRI support)


Save, exit, and rebuild the kernel:

Code:

kenobi linux # make dep && make clean bzImage modules modules_install
...


Update your /boot/grub/grub.conf if necessary, and don't forget to copy your new bzImage to your mounted boot partition. Then, re-emerge the DRM module:

Code:

kenobi linux # ACCEPT_KEYWORDS="~x86" emerge xfree-drm


In my case, I also had to add an entry into my /etc/modules.autoload file because my chipset wasn't recognized:

Code:

agpgart agp_try_unsupported=1


If your chipset is supported, either try adding the agpgart module to your /etc/modules.autoload file without the above parameter, or try compiling it straight into the kernel.

If you have questions about any part of the foregoing, you should reference spyderous's Gentoo forum topic.

Next, we need to update your Matrox drivers. I'm using a G450, so that's the code I'll extract, but similar procedures should work for any of the other cards out there. Check the Matrox Linux forums for details.

Find your card along the appropriate row on this page and download the PowerDesk and software drivers available. You'll want the tarballs. I keep mine in /usr/local/src/driver just in case I need to re-extract them, so here's what we do next:


Code:

kenobi linux # cd /usr/local/src
kenobi src # ls -l
drwxr-xr-x    2 root     root         4096 Jun 11 15:42 driver/
kenobi src # ls -l driver
total 4676
-rwxr-xr-x    1 root     root      2916194 May  9 03:04 mgadrivers-2.0.tgz*
-rwxr-xr-x    1 root     root      1856115 Jun 11 13:48 mgapdesk-1_00-7beta_src.tgz*
kenobi src # cp driver/*.tgz .


We copied the drivers to the src directory so we don't mess up the originals. Next,

Code:

kenobi src # tar xvfz mgadrivers-2.0.tgz && rm -f mgadrivers-2.0.tgz
mgadrivers/
mgadrivers/install.sh
mgadrivers/README
mgadrivers/xfree86/
mgadrivers/xfree86/4.0.3/
mgadrivers/xfree86/4.0.3/drivers/
mgadrivers/xfree86/4.0.3/drivers/mga_drv.o
mgadrivers/xfree86/4.0.3/drivers/mga_hal_drv.o
mgadrivers/xfree86/4.1.0/
mgadrivers/xfree86/4.1.0/dri/
mgadrivers/xfree86/4.1.0/dri/mga_dri.so
mgadrivers/xfree86/4.1.0/drivers/
mgadrivers/xfree86/4.1.0/drivers/mga_drv.o
mgadrivers/xfree86/4.1.0/drivers/mga_hal_drv.o
mgadrivers/xfree86/4.2.0/
mgadrivers/xfree86/4.2.0/dri/
mgadrivers/xfree86/4.2.0/dri/mga_dri.so
mgadrivers/xfree86/4.2.0/drivers/
mgadrivers/xfree86/4.2.0/drivers/mga_drv.o
mgadrivers/xfree86/4.2.0/drivers/mga_hal_drv.o


The mgadrivers tarball doesn't come with an entry for xfree > 4.2.0, but one of the Matrox threads indicates that you can replicate one of the directories for 4.3.0 and then install, so this is what we do:

Code:

kenobi src # cd mgadrivers/xfree86/
kenobi xfree86 # cp -rp 4.2.0 4.3.0
kenobi xfree86 # ls -l
total 16
drw-r--r--    3 root     root         4096 Feb 25  2002 4.0.3/
drw-r--r--    4 root     root         4096 Feb 25  2002 4.1.0/
drw-r--r--    4 root     root         4096 Feb 25  2002 4.2.0/
drw-r--r--    4 root     root         4096 Feb 25  2002 4.3.0/
kenobi xfree86 # cd ..
kenobi mgadrivers # sh install.sh


Press 'Y' for each module it offers (XFree86 driver, HAL library, DRI module).

Code:

kenobi mgadrivers # cd ..


Now we install the PowerDesk software. This allows you to configure your monitor orientation through a GUI utility, instead of hacking your XF86Config file:

Code:

kenobi src # tar xvfz mgapdesk-1_00-7beta_src.tgz && rm -f mgapdesk-1_00-7beta_src.tgz
... files extract ...
kenobi src # cd mgapdesk/
kenobi mgapdesk # ./configure --prefix=/usr/X11R6
kenobi mgapdesk # make
kenobi mgapdesk # make install


Once this is done, clean up the mga directories we just extracted, and we can move on to the XF86Config file.

At this point, I took the XF86Config.example file provided by emerge xfree and the XF86Config file that I had used successfully with Red Hat 7.[0-3] and 9, and merged the two, section by section, filling in the pieces specified by spyderous's howto, where necessary. I've left some of the comments in the file, in case I want other options later, but the bulk of the file is tailored to my setup. You may need to change some options to suit your configuration. For example, I have my monitors 180 degrees from the standard arangement, e.g.,

[ 2 ] [ 1 ]

rather than

[ 1 ] [ 2 ]

You might need to change the Section "Screen" Identifier "Merged" positioning from

Code:

    Option      "Monitor2Position" "LeftOf"


to

Code:

    Option      "Monitor2Position" "RightOf"


You can use my XF86Config file as a start, if you wish:

Code:

# $XFree86: xc/programs/Xserver/hw/xfree86/XF86Conf.cpp,v 3.45 2003/02/20 04:05:12 dawes Exp $
#
# Copyright (c) 1994-1998 by The XFree86 Project, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
# THE XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
# OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
# Except as contained in this notice, the name of the XFree86 Project shall
# not be used in advertising or otherwise to promote the sale, use or other
# dealings in this Software without prior written authorization from the
# XFree86 Project.
#
# $XConsortium: XF86Conf.cpp /main/22 1996/10/23 11:43:51 kaleb $

# **********************************************************************
# This is a sample configuration file only, intended to illustrate
# what a config file might look like.  Refer to the XF86Config(4/5)
# man page for details about the format of this file. This man page
# is installed as /usr/X11R6/man/man5/XF86Config.5x
# **********************************************************************

# The ordering of sections is not important in version 4.0 and later.

# **********************************************************************
# Files section.  This allows default font and rgb paths to be set
# **********************************************************************

Section "Files"

# The location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.

    RgbPath   "/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)

    FontPath   "/usr/X11R6/lib/X11/fonts/local/"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/CID/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"

# ModulePath can be used to set a search path for the X server modules.
# The default path is shown here.

#    ModulePath   "/usr/X11R6/lib/modules"

EndSection

# **********************************************************************
# Module section -- this is an optional section which is used to specify
# which run-time loadable modules to load when the X server starts up.
# **********************************************************************

Section "Module"

    Load   "dbe"
    Load   "dri"
    Load   "glx"

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.

    SubSection   "extmod"
        Option   "omit xfree86-dga"
    EndSubSection

# This loads the Type1 and FreeType font modules

    Load   "type1"
    Load   "freetype"

EndSection


# **********************************************************************
# Server flags section.  This contains various server-wide Options.
# **********************************************************************

Section "ServerFlags"

# Uncomment this to cause a core dump at the spot where a signal is
# received.  This may leave the console in an unusable state, but may
# provide a better stack trace in the core dump to aid in debugging

#    Option   "NoTrapSignals"

# Uncomment this to disable the <Crtl><Alt><Fn> VT switch sequence
# (where n is 1 through 12).  This allows clients to receive these key
# events.

#    Option   "DontVTSwitch"

# Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
# This allows clients to receive this key event.

#    Option   "DontZap"

# Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching
# sequences.  This allows clients to receive these key events.

    Option   "DontZoom"

# Uncomment this to disable tuning with the xvidtune client. With
# it the client can still run and fetch card and monitor attributes,
# but it will not be allowed to change them. If it tries it will
# receive a protocol error.

#    Option   "DisableVidModeExtension"

# Uncomment this to enable the use of a non-local xvidtune client.

#    Option   "AllowNonLocalXvidtune"

# Uncomment this to disable dynamically modifying the input device
# (mouse and keyboard) settings.

#    Option   "DisableModInDev"

# Uncomment this to enable the use of a non-local client to
# change the keyboard or mouse settings (currently only xset).

#    Option   "AllowNonLocalModInDev"

# Set the basic blanking screen saver timeout.

    Option   "blank time"   "10"   # 10 minutes

# Set the DPMS timeouts.  These are set here because they are global
# rather than screen-specific.  These settings alone don't enable DPMS.
# It is enabled per-screen (or per-monitor), and even then only when
# the driver supports it.

    Option   "standby time"   "20"
    Option   "suspend time"   "30"
    Option   "off time"   "60"

# On some platform the server needs to estimate the sizes of PCI
# memory and pio ranges. This is done by assuming that PCI ranges
# don't overlap. Some broken BIOSes tend to set ranges of inactive
# devices wrong. Here one can adjust how aggressive the assumptions
# should be. Default is 0.

# Option   "EstimateSizesAggresively" "0"

EndSection

# **********************************************************************
# Input devices
# **********************************************************************

# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************

Section "InputDevice"

    Identifier   "Keyboard1"
    Driver   "keyboard"

# Set the keyboard auto repeat parameters.  Not all platforms implement
# this.

#    Option   "AutoRepeat"   "500 5"

# Specifiy which keyboard LEDs can be user-controlled (eg, with xset(1)).

#    Option   "Xleds"   "1 2 3"

# If you'd like to switch the positions of your capslock and
# control keys, use:
#
#    Option   "XkbOptions"   "ctrl:swapcaps"


# These are the default XKB settings for XFree86
#
    Option   "XkbRules"   "xfree86"
    Option   "XkbModel"   "pc105"
#    Option   "XkbModel"   "pc101"
    Option   "XkbLayout"   "us"

EndSection


# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************

Section "InputDevice"

# Identifier and driver

    Identifier   "Mouse1"
    Driver   "mouse"

# The mouse protocol and device.  The device is normally set to /dev/mouse,
# which is usually a symbolic link to the real device.

    Option   "Protocol"   "PS/2"
    Option   "Device"   "/dev/mouse"
    Option  "ZAxisMapping"  "4 5"

EndSection

Section "InputDevice"
    Identifier   "Mouse2"
    Driver   "mouse"
    Option   "Protocol"   "PS/2"
    Option   "Device"   "/dev/mouse2"
    Option  "ZAxisMapping"  "4 5"
EndSection


# **********************************************************************
# Monitor section
# **********************************************************************

# Any number of monitor sections may be present

Section "Monitor"
   Identifier   "Display 1"
   VendorName   "Monitor Vendor"
   ModelName    "E90fb"
   DisplaySize  360   270
   HorizSync    30.0 - 86.0
   VertRefresh  50.0 - 150.0
   Option       "dpms"
EndSection

Section "Monitor"
   Identifier   "Display 2"
   VendorName   "Monitor Vendor"
   ModelName    "E90fb"
   DisplaySize  360   270
   HorizSync    30.0 - 86.0
   VertRefresh  50.0 - 150.0
EndSection

Section "Monitor"
   Identifier   "Display Merged"
   VendorName   "Monitor Vendor"
   ModelName    "E90fb"
   DisplaySize  360   270
   HorizSync    30.0 - 86.0
   VertRefresh  50.0 - 150.0
EndSection


# **********************************************************************
# Graphics device section
# **********************************************************************

Section "Device"
   Identifier  "MATROX CARD 1"
   Driver      "mga"
   VendorName  "Videocard vendor"
   BoardName   "Matrox Millennium G450"
   VideoRam    32768
   Option      "hw cursor" "off"
   BusID       "PCI:1:0:0"
EndSection

Section "Device"
   Identifier  "MATROX CARD 2"
   Driver      "mga"
   VendorName  "Videocard vendor"
   BoardName   "Matrox Millennium G450"
   VideoRam    32768
   Option      "hw cursor" "off"
   BusID       "PCI:1:0:0"
   Screen      1
EndSection

# **********************************************************************
# Screen sections.
# **********************************************************************

Section "Screen"
   Identifier "Display 1"
   Device     "MATROX CARD 1"
   Monitor    "Display 1"
   DefaultDepth     24
   SubSection "Display"
      Depth     24
      Modes    "1600x1200"
   EndSubSection
   SubSection "Display"
      Depth     8
      Modes    "1600x1200"
   EndSubSection
   SubSection "Display"
      Depth     16
      Modes    "1600x1200"
   EndSubSection
EndSection

Section "Screen"
   Identifier "Display 2"
   Device     "MATROX CARD 2"
   Monitor    "Display 2"
   DefaultDepth     24
   SubSection "Display"
      Depth     24
      Modes    "1600x1200"
   EndSubSection
   SubSection "Display"
      Depth     8
      Modes    "1600x1200"
   EndSubSection
   SubSection "Display"
      Depth     16
      Modes    "1600x1200"
   EndSubSection
EndSection

Section "Screen"
   Identifier "Display Merged"
   Device     "MATROX CARD 1"
   Monitor    "Display Merged"
   DefaultDepth     24
   Option      "Monitor2Position" "LeftOf"
   Option      "MergedFB"
   Option      "MetaModes" "1600x1200-1600x1200 1600x1200 "
   Option      "Monitor2HSync" "30.0-86.0 "
   Option      "Monitor2VRefresh" "50.0-150.0 "
   SubSection "Display"
      Virtual   3200 1200
      Depth     24
      Modes    "1600x1200"
   EndSubSection
EndSection

Section "DRI"
   Mode         0666
EndSection

# **********************************************************************
# ServerLayout sections.
# **********************************************************************

# Any number of ServerLayout sections may be present.  Each describes
# the way multiple screens are organised.  A specific ServerLayout
# section may be specified from the X server command line with the
# "-layout" option.  In the absence of this, the first section is used.
# When now ServerLayout section is present, the first Screen section
# is used alone.

Section "ServerLayout"
   Identifier     "Matrox PowerDesk configured."
   Screen      0  "Display Merged" 0 0
   InputDevice    "Mouse1" "CorePointer"
#   InputDevice    "Mouse2" "SendCoreEvents"
   InputDevice    "Keyboard1" "CoreKeyboard"
EndSection


To ensure that I could use X as a non-root user, I also had to go change some permissions on the mouse device:

Code:

kenobi src # cd /dev
kenobi dev # chgrp users mouse
kenobi dev # chgrp users misc/psaux


Make sure your user belongs to the 'users' group.

Reboot, login, and check your work.

Code:

kenobi root # glxinfo |grep render


If you see 'direct rendering: Yes', you're in business. If not (like me), we're
stuck. Send me an email if you can figure out a work-around.

In any case, at this point, you should have a functioning dual-head merged display (xinerama). Many thanks to spyderous for the work he did explaining DRI; also to various threads on this forum and the Matrox Linux forum for helping me connect the dots. 8)
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Sun Apr 04, 2004 4:47 pm    Post subject: Reply with quote

Usually when I'm going to try a tip, I make sure to read peoples' comments, but surprisingly, this thread lacks them. I guess the G450 isn't too popular?

I think it's a great card. In fact, after I killed mine by pluggin a power supply into it (don't ask)... instead of upgrading to something nicer, I just ebay'd an identical card.

I'm about to go through your tip, I've been meaning to get the DRI stuff working for some time now. I'll let you know how it goes, thanks for starting this thread!
_________________
s/(?<!gnu\/)linux(?! kernel)/GNU\/Linux/gi

Don't blame me. I didn't vote for him.

http://john.simplykiwi.com
Back to top
View user's profile Send private message
karnesky
Apprentice
Apprentice


Joined: 18 Mar 2004
Posts: 218

PostPosted: Sun Apr 04, 2004 6:39 pm    Post subject: Reply with quote

OdinsDream wrote:
I guess the G450 isn't too popular?
I'm the happy owner of a G400-TV card. Matrox seems to have a smaller market share than ATI or NVIDIA, especially on the Linux desktop market. The G series cards aren't that new either. Perhaps there are few comments on this because other matrox users have direct rendering set up fine. I'm still glad that wrs4 posted this, as others apparently have had problems.
Back to top
View user's profile Send private message
wrs4
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2003
Posts: 98
Location: Alexandria, VA

PostPosted: Sun Apr 04, 2004 6:55 pm    Post subject: Reply with quote

Glad to be of help. When I started in on the process, I looked high and low for this information. I couldn't find any howto on the subject, but I found howtos on related subjects, so I combined the material here. The info on installing the Matrox specific modules (particularly for Xfree 4.3.0) came from various places on the Matrox site, combined with some logical deductions about what worked for Red Hat working for Gentoo. I, too, have been surprised that nobody has responded until now. I used to monitor this thread, and it seemed that 10-20 people would look at it per week (how many times viewed) but nobody had much to say. I can only assume that I've done a good enough job that I answered everyone's questions :lol:

I wasn't able to get DRI working because of my mainboard. Good luck with yours, and post a continued howto when you succeed.
Back to top
View user's profile Send private message
reidbold
n00b
n00b


Joined: 30 Sep 2002
Posts: 14

PostPosted: Sun Apr 04, 2004 10:01 pm    Post subject: Reply with quote

Once you install mgapdesk, you can actually just run mgapdesk and it will give you a very nice graphical xfree configuration util.

Code:

rmiller@tycho rmiller $ whereis mgapdesk
mgapdesk: /usr/X11R6/bin/mgapdesk /usr/bin/X11/mgapdesk

_________________
-Reid
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Mon Apr 05, 2004 12:16 am    Post subject: Reply with quote

I just wanted to let everyone know that the steps above worked great for me. It was a big help having your config file for reference.

The bit about having to make 4.3.0 directories is obsolete, though, in the release I downloaded today.

I do have trouble running mgapdesk, though. Here's what it gives:

Code:
localhost odinsdream # mgapdesk
Gdk-ERROR **: XF86VidModeZoomLocked
  serial 10 error_code 136 request_code 134 minor_code 5


...any ideas?
_________________
s/(?<!gnu\/)linux(?! kernel)/GNU\/Linux/gi

Don't blame me. I didn't vote for him.

http://john.simplykiwi.com
Back to top
View user's profile Send private message
wrs4
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2003
Posts: 98
Location: Alexandria, VA

PostPosted: Mon Apr 05, 2004 1:09 am    Post subject: Reply with quote

No ideas. It seems to me that despite my installing Powerdesk I got the same sorts of messages, which is why I ultimately took an existing XF86Config file that I knew worked and adapted it to the Gentoo default XF86Config file. Also why I included the file as a reference on the howto. I'm glad at least that the steps worked for you. How's the DRI support part?
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Mon Apr 05, 2004 2:53 am    Post subject: Reply with quote

It's working very well! I can get 150fps with glxgears, which is far above the 10 or 12 I was getting previously.

I'm not sure that PowerDesk supports xfree 4.3.0.... the readme didn't specifically mention that it did. I was just being hopeful. In any case, I'm satisfied configuring things by hand, if that's what it takes. Thanks again for the tips!

oh, I forgot to mention. X now takes a significant amount of time to start, with the screen flickering all the while. Things of course end up alright, but it is a difference I was wondering about. I've not noticed any error messages in the startup output, though. It's as if it's trying about four different modes, and just ends up working with the last one. I'm not sure why?
_________________
s/(?<!gnu\/)linux(?! kernel)/GNU\/Linux/gi

Don't blame me. I didn't vote for him.

http://john.simplykiwi.com


Last edited by OdinsDream on Mon Apr 05, 2004 2:59 am; edited 1 time in total
Back to top
View user's profile Send private message
wrs4
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2003
Posts: 98
Location: Alexandria, VA

PostPosted: Mon Apr 05, 2004 2:59 am    Post subject: Reply with quote

Excellent, happy to be of service. Also fun for someone ranked "n00b" to help someone ranked "l33t" :)
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Mon Apr 05, 2004 3:12 am    Post subject: Reply with quote

wrs4 wrote:
Excellent, happy to be of service. Also fun for someone ranked "n00b" to help someone ranked "l33t" :)


(setq postcountmeaning nil)
_________________
s/(?<!gnu\/)linux(?! kernel)/GNU\/Linux/gi

Don't blame me. I didn't vote for him.

http://john.simplykiwi.com
Back to top
View user's profile Send private message
dtoo
Tux's lil' helper
Tux's lil' helper


Joined: 29 Mar 2004
Posts: 86

PostPosted: Tue Apr 13, 2004 4:03 am    Post subject: Reply with quote

Great! :D
Mine
Code:

bash-2.05b# glxinfo | grep render
direct rendering: No
OpenGL renderer string: Mesa GLX Indirect
bash-2.05b# glxgears
812 frames in 5.0 seconds = 162.400 FPS
875 frames in 5.0 seconds = 175.000 FPS
874 frames in 5.0 seconds = 174.800 FPS
875 frames in 5.0 seconds = 175.000 FPS
874 frames in 5.0 seconds = 174.800 FPS
875 frames in 5.0 seconds = 175.000 FPS
874 frames in 5.0 seconds = 174.800 FPS

Quote:
If you see 'direct rendering: Yes', you're in business. If not (like me), we're
stuck.

Well :lol: , I'm happy now. BTW, nice tips

thanks
Back to top
View user's profile Send private message
scottfk
n00b
n00b


Joined: 18 May 2003
Posts: 44
Location: New York, NY

PostPosted: Tue Apr 13, 2004 8:11 pm    Post subject: Anybody using the PCI version of the G450? Reply with quote

I've got a PCI G450. I am using the drivers supplied with xorg-x11-6.7.0. 2D works fine, and both my Xorg.log and glxinfo tell me I am using direct rendering.

Unfortuanately, when I run glxgears my X session goes way south and I have to reboot. I can't even break out of X!
_________________
Be seeing you.

scott
Back to top
View user's profile Send private message
labrador
Guru
Guru


Joined: 04 Oct 2003
Posts: 316

PostPosted: Sat Apr 17, 2004 10:08 pm    Post subject: Another sample XF86Config for the G400 AGP card Reply with quote

Here is my XF86Config, which does about 550 FPS in glxgears, running
with a pair of PII 450s and 512 MB RAM. I am using a PS/2 Microsoft
Intellimouse.

Code:


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 "ServerLayout"
        Identifier "XFree86 Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

# Module loading section

Section "Module"
        Load  "xtrap"
        Load  "speedo"
        Load  "type1"
        Load  "dbe"             # Double-buffering
        Load  "GLcore"          # OpenGL support
        Load  "dri"             # Direct rendering infrastructure
        Load  "glx"             # OpenGL X protocol interface
        Load  "extmod"          # Misc. required extensions
        Load  "v4l"             # Video4Linux
        # Load  "record"        # X event recorder
        # You only need the following two modules if you do not use xfs.
        # Load  "freetype"       # TrueType font handler
        # Load  "type1"         # Adobe Type 1 font handler
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option      "XkbLayout" "us"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Device" "/dev/mouse"
        Option      "Protocol" "IMPS/2"
        Option      "Emulate3Buttons" "off"
        Option      "ZAxisMapping" "4 5"
EndSection


Section "Monitor"
        Identifier "S/M 700NF"
        VendorName "Unknown"
        ModelName  "Unknown"
        HorizSync 30 - 96
        VertRefresh 50 - 160
        Option "dpms"
EndSection

Section "Device"
        Identifier "G400 video card"
        Driver "mga"
        BoardName "Unknown"
        VideoRam 16384
EndSection

Section "Device"
        Identifier "Linux Frame Buffer"
        Driver "fbdev"
        BoardName "Unknown"
        Option "UseFBDev" "True"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device "G400 video Card"
#       Device "Linux Frame Buffer"
        Monitor "S/M 700NF"
        DefaultDepth 16
        DefaultFbBpp 16
        Subsection "Display"
                Depth 16
                Modes "1280x1024" "1152x864" "1024x768"
        EndSubSection
EndSection

Section "DRI"
        Mode 0666
EndSection



The requirements for Direct Rendering are to not use the DRM/DRI module in the 2.4 kernel and emerge xfree-drm each and every time you update your 2.4 kernel. If you are using a 2.6 kernel, use the DRM module provided directly by the 2.6 kernel and do not bother with xfree-drm (or so I've read - my 2.6 based machine is running nvidia video card and it is a different story).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum