You are not logged in.

#1 2009-07-03 01:21:09

Daemonjax
Member
Registered: 2009-07-02
Posts: 43

ATI 3D Rage LT Pro AGP-133 (Mach64) Xorg DRI

This is where I'll be posting my crazy adventures in getting this AGP card working with DRI (Direct Rendering) in Xorg.

I've done it in Debian Lenny, so, surely it must be possible in Archlinux!

This card is integrated into my PII 400Mhz Micron Trek II Laptop from 1999 era.  Supposedly, this is the very first integrated AGP video card used in laptops.  Ever.  Although, I have my doubts as to Wikipedia's accuracy in this regards because I believe the Trident Cyber 9397 AGP came out sooner.  It's one of those questions we may never know the answer to.

I'm new to Arch (coming from debian), so I'd like to take a paragraph and comment on it.  What drew me to it is the i686 optimized packages.  The first thing I noticed is that I like it's fast boot time.  I haven't run bootchart yet, but I can tell it's significantly faster than debian out of the box.  Hopefully there's headroom for additional speed tweaks, but that's for later.   The second thing I noticed is that it's about 200 megs larger than debian's comparably minimal install.  I found that odd, but, oh well. 

Anyways, back to Xorg... one of the final hurdles in setting up a linux box.  Getting a display working is simple enough, and maybe 12 years ago having any kind of GUI would have been good enough, but not anymore.  On older hardware you need DRI in order to play video properly... not to mention run an snes emulator at a decent fps big_smile 

Note: for mplayer I can actually use -vo xv, since Xorg supports 2D accelleration by default.

I noticed that Arch has a package named xf86-video-mach64 6.8.1-1.  I thought to myself, "Can this be?  Will I get dri working out of the box with Arch?!"  The answer is no.  How stupid of me to think that may be true.  So, I'll be adding to this post as developments arise in my little quest.  Feel free to chime in with helpful knowledge, pats on the head, threats, and/or flames.

So, here's what I have so far... luckily, I have a pretty decent xorg.conf already setup and ready to go for this card... all I need are mach64 drivers, DRI, DRM, and all the other module goodies. 

/etc/X11/xorg.conf

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

Section "ServerFlags"
    Option "DontVTSwitch" "true" # causes kernel panic for me
EndSection

Section "Files"
    RgbPath      "/etc/X11/rgb"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/X11/misc"
EndSection

Section "Module" # most of these load by default
    Load  "GLcore"
    Load  "extmod"
    Load  "xtrap"
    Load  "dri"
    Load  "dbe"
    Load  "record"
    Load  "glx"
EndSection

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

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/input/mice"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
    HorizSync    30 - 60
    VertRefresh     70 - 90
    Modeline "1024x768" 65 1024 1032 1176 1344 768 771 777 806 -hsync -vsync
    Modeline "800x600"  36  800  824  896 1024 600 601 603 625
    Modeline "640x480"  25.175 640 664 760 800 480 491 493 525 
    #Modeline "640x400"  25.175 640 664 760 800 400 409 411 450 
    Modeline "320x200"  12.588 320 336 384 400 200 204 205 225 Doublescan
    
#    Option "Gamma" ".6" # doesn't work
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     "probe_sparse"           "False" # ? No noticeable effect
        Option       "lcdblend"                "True" # saw in source code
        
        Option       "LCDSync"                "True" 
        Option     "accel"                  "True"
        Option     "crt_display"            "false"
        Option     "composite_sync"         "True"
        Option     "hw_cursor"              "True"
        #Option     "force_pci_mode"         "True"  # rather use AGP (the default) 
        Option     "dma_mode"               "async" # async is best
        Option     "agp_mode"               "2" 
        Option     "agp_size"               "64" # Aperture
        Option     "local_textures"         "True" # ? No idea, sounds nice though.
        Option     "buffer_size"            "2"
        Option     "tv_out"                 "false" 
        #Option     "tv_standard"            # <str>
        Option     "mmio_cache"             "True"# [<bool>]
        Option     "test_mmio_cache"        "false"# [<bool>]
        #Option     "panel_display"          # [<bool>]
        #Option     "reference_clock"        # <freq>
        Option     "shadow_fb"              "False" # Can't shadow accelerated fb, +5 FPS
        Option     "sw_cursor"              "false" 
        Option     "AccelMethod"            "XAA" # EXA or XAA (XAA is slightly faster)
        #Option      "AccelDFS"                "True" # saw on interwebz, but seems bogus for this driver
        Option     "RenderAccel"            "True" # sounds hot
    Identifier  "Card0"
    Driver      "mach64"
    #Option      "ForcePCIMode"        "True"
    #Option      "TVOut"
    VendorName  "ATI Technologies Inc"
    BoardName   "3D Rage LT Pro AGP-133"
    BusID       "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    DefaultDepth 16
#    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
        Modes "1024x768" "800x600" "640x480" "320x200"

     EndSubSection
#    SubSection "Display"
#        Viewport   0 0
#        Depth     24
#    EndSubSection
EndSection

Section "DRI"
    Mode     0666
EndSection

I can get into X, by typing startx... I get some nice default windows... First thing I notice is that ctrl-alt-backspace does not shutdown X!  I have to type exit into a console?!  That's a PITA, so I change that by inserting: Option    "DontZap" "false"   AND  Option  "XkbOptions" "terminate:ctrl_alt_bksp" AND editing /etc/X11/xinit/xinitrc to add in some lines...

As per the instructions at: http://wiki.archlinux.org/index.php/Xorg (thank you)

[gripe]Whoever was hitting ctrl-alt-backspace by accident... well... I won't say anything bad about anyone... but come on, people.  It sure as hell shouldn't  be neccessary to have to add multiple lines of code in multiple configuration files to re-enable the feature...  Which will probably break anyways once I add a window manager.[/gripe]

So, anyways, here's the errors so far:

Relevant Errors to console:

FATAL: Module mach64 not found.
(EE) [drm] drmOpen failed.
(EE) MACH64(0): [dri] DRIScreenInit Failed.

Relevant Errors in /var/log/Xorg.0.log:

Short story: the fatal error above is due to a failure in loading the mach64 kernel module, which caused the failure of the drm module, which caused
dri to not load, either.  So I learned I need to get/find a mach64 kernel module!  Using the locate command, I see I don't have a mach64.ko file.

So I found this old thread relating to the subject: http://bbs.archlinux.org/viewtopic.php?id=53071
^^^ which refers to packages that haven't been maintained since january...

PKGBUILD?!  What's that?  haha... So I learned about it here: http://wiki.archlinux.org/index.php/ABS … ild_System

I found the tarball on AUR for an unnsupported package (the one from february), and looked at the readme.txt

Preinstall:

You need your own kernel with the following options or the kernel from aur: kernel26-nodrm
Please make sure your kernel has been compiled without built in DRM:
        Device Drivers --->
            Graphics Support --->
                < > Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)  --->  (CONFIG_DRM=n) Must be disabled.

While you are at it, if your mach64 card is agp: (These agp options are optional but recommended)
    Device Drivers --->
        Graphics Support --->        
            <M or *> /dev/agpgart (AGP Support)  --->   (CONFIG_AGP=m or CONFIG_AGP=y)
                <M or *> YOUR CHIPSET (CONFIG_AGP_**CHIPSET**=m or CONFIG_AGP_**CHIPSET**=y)

                For example, my motherboard is via-based:
                <*> VIA chipset support (CONFIG_AGP_VIA=y)

The standard arch kernel has DRM, so it will *not* work

If you need pacman -Uf to install, chances are that your drm.ko still is in your kernel directory, meaning that

... meaning what?  The text just ends, like a the directions to some lost, sunken treasure...  Sounds like I'd have to recompile my kernel.  Not a big deal (only a matter of time before I'd do it for fun), but I want to verify that I actually have to.  So, I checked the config for the Archlinux kernel and CONFIG_DRM=m... so it's modular... isn't that I want?  It's going to have to load drm.ko right?! 

I'm going to try building mach64.ko and drm.ko against the kernel headers for the arch kernel and see how it goes...

Update 1:

Ok, it looks like I do, in fact, need to recompile the kernel... or atleast, that's the next thing I'm going to try....

I can currently get glxinfo to report everything's fine... DRI enabled and such... however, glxgears has an abortion.   

Update 2:

After recompiling the kernel, I've learned that I didn't have to.  The information in the Arch Wiki must be outdated, because there's no reason to recompile to disable the modular support of DRM from the kernel.  Anyways, it still doesn't work (of course, I didn't have to recompile)... so the problem is with either the mesa, drm, or dri packages.

SOOOO... I'm going to downgrade until I find a version that works... stay tuned...

More to come!

Last edited by Daemonjax (2009-07-06 00:10:42)

Offline

#2 2009-07-05 21:57:46

Daemonjax
Member
Registered: 2009-07-02
Posts: 43

Re: ATI 3D Rage LT Pro AGP-133 (Mach64) Xorg DRI

I'm not able to resolve these errors.  Maybe someone more knowledgable than I could help...  Here's every log I could think of... starting with the good, and ending with the bad:

lspci (everything looks good)

00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
***00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03)
00:04.0 Multimedia audio controller: ESS Technology ES1978 Maestro 2E (rev 10)
00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 02)
00:0a.0 CardBus bridge: Texas Instruments PCI1251B
00:0a.1 CardBus bridge: Texas Instruments PCI1251B
***01:00.0 VGA compatible controller: ATI Technologies Inc 3D Rage LT Pro AGP-133 (rev dc)

lsmod (everything looks good)

Module                  Size  Used by
***mach64                 43652  2 
***drm                    94284  3 mach64
snd_seq_dummy           2696  0 
snd_seq_oss            31168  0 
snd_es1968             26720  0 
snd_seq_midi_event      7012  1 snd_seq_oss
gameport               11280  1 snd_es1968
snd_seq                53744  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_ac97_codec        106088  1 snd_es1968
snd_pcm_oss            40352  0 
snd_mixer_oss          17540  1 snd_pcm_oss
ac97_bus                1540  1 snd_ac97_codec
snd_pcm                73768  3 snd_es1968,snd_ac97_codec,snd_pcm_oss
snd_timer              21068  2 snd_seq,snd_pcm
snd_page_alloc          8812  2 snd_es1968,snd_pcm
snd_mpu401_uart         7524  1 snd_es1968
usb_storage            51456  0 
snd_rawmidi            21824  1 snd_mpu401_uart
pcmcia                 36268  0 
snd_seq_device          6768  4 snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi
snd                    58404  11 snd_seq_oss,snd_es1968,snd_seq,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore               6784  1 snd
uhci_hcd               23476  0 
ehci_hcd               35824  0 
radio_maestro           6500  0 
psmouse                59644  0 
yenta_socket           25136  2 
i2c_piix4               9876  0 
v4l2_common            14244  1 radio_maestro
serio_raw               5704  0 
intel_agp              27484  1 
pcspkr                  2404  0 
rsrc_nonstatic         12292  1 yenta_socket
pcmcia_core            35128  3 pcmcia,yenta_socket,rsrc_nonstatic
usbcore               149936  4 usb_storage,uhci_hcd,ehci_hcd
i2c_core               22776  2 i2c_piix4,v4l2_common
shpchp                 34424  0 
sg                     27896  0 
container               3460  0 
videodev               37088  2 radio_maestro,v4l2_common
v4l1_compat            15720  1 videodev
pci_hotplug            28964  1 shpchp
agpgart                32756  2 drm,intel_agp
thermal                13888  0 
evdev                  10176  6 
processor              35864  0 
fan                     4392  0 
button                  5588  0 
battery                10984  0 
ac                      4360  0 
rtc_cmos               11244  0 
rtc_core               18048  1 rtc_cmos
rtc_lib                 2500  1 rtc_core
ext4                  242244  2 
mbcache                 7112  1 ext4
jbd2                   58108  1 ext4
crc16                   1636  1 ext4
sr_mod                 16676  0 
cdrom                  36032  1 sr_mod
sd_mod                 27808  4 
ata_piix               23112  3 
pata_acpi               4228  0 
ata_generic             4680  0 
libata                168428  3 ata_piix,pata_acpi,ata_generic
floppy                 55780  0 
scsi_mod              110516  5 usb_storage,sg,sr_mod,sd_mod,libata

dmesg (everything looks good)

agpgart-intel 0000:00:00.0: AGP 1.0 bridge
***agpgart-intel 0000:00:00.0: putting AGP V2 device into 2x mode
pci 0000:01:00.0: putting AGP V2 device into 2x mode
[drm] descriptor ring: cpu addr cc820000, bus addr: 0x18000000
***DMA test succeeded, using asynchronous DMA mode

/var/log/Xorg.0.log (everything as expected)

This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.

X.Org X Server 1.6.1.901 (1.6.2 RC 1)
Release Date: 2009-5-8
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.30-ARCH i686 
Current Operating System: Linux atropos 2.6.30.1-CUSTNODRM #4 SMP PREEMPT Sat Jul 4 23:40:25 EDT 2009 i686
Build Date: 28 June 2009  11:20:52AM
 
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Jul  5 13:22:21 2009
(==) Using config file: "/etc/X11/xorg.conf"
Parse error on line 15 of section Files in file /etc/X11/xorg.conf
    Ignoring obsolete keyword "RgbPath".
(==) ServerLayout "X.org Configured"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Card0"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(**) Option "DontVTSwitch" "true"
(**) Option "DontZap" "false"
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/share/fonts/X11/misc" does not exist.
    Entry deleted from font path.
(WW) The directory "/usr/share/fonts/Type1" does not exist.
    Entry deleted from font path.
(**) FontPath set to:
    /usr/share/fonts/misc,
    /usr/share/fonts/100dpi:unscaled,
    /usr/share/fonts/75dpi:unscaled,
    /usr/share/fonts/TTF,
    built-ins
(**) ModulePath set to "/usr/lib/xorg/modules"
(WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
(WW) Disabling Mouse0
(WW) Disabling Keyboard0
(II) Loader magic: 0x640
(II) Module ABI versions:
    X.Org ANSI C Emulation: 0.4
    X.Org Video Driver: 5.0
    X.Org XInput driver : 4.0
    X.Org Server Extension : 2.0
(II) Loader running on linux
(--) using VT number 7

(--) PCI:*(0:1:0:0) 1002:4c42:1002:4c42 ATI Technologies Inc 3D Rage LT Pro AGP-133 rev 220, Mem @ 0xfd000000/16777216, 0xfedfe000/4096, I/O @ 0x0000e800/256, BIOS @ 0x????????/131072
(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
(II) No APM support in BIOS or kernel
(II) System resource ranges:
    [0] -1    0    0xffffffff - 0xffffffff (0x1) MX[b]
    [1] -1    0    0x000f0000 - 0x000fffff (0x10000) MX[b]
    [2] -1    0    0x000c0000 - 0x000effff (0x30000) MX[b]
    [3] -1    0    0x00000000 - 0x0009ffff (0xa0000) MX[b]
    [4] -1    0    0x0000ffff - 0x0000ffff (0x1) IX[b]
    [5] -1    0    0x00000000 - 0x00000000 (0x1) IX[b]
(II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
(II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
(II) "glx" will be loaded. This was enabled by default and also specified in the config file.
(II) "record" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri2" will be loaded by default.
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions//libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
    compiled for 1.6.1.901, module version = 1.0.0
    Module class: X.Org Server Extension
    ABI class: X.Org Server Extension, version 2.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "xtrap"
(WW) Warning, couldn't open module xtrap
(II) UnloadModule: "xtrap"
(EE) Failed to load module "xtrap" (module does not exist, 0)
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions//libdri.so
(II) Module dri: vendor="X.Org Foundation"
    compiled for 1.6.1.901, module version = 1.0.0
    ABI class: X.Org Server Extension, version 2.0
(II) Loading extension XFree86-DRI
(II) LoadModule: "dbe"
(II) Loading /usr/lib/xorg/modules/extensions//libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
    compiled for 1.6.1.901, module version = 1.0.0
    Module class: X.Org Server Extension
    ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "record"
(II) Loading /usr/lib/xorg/modules/extensions//librecord.so
(II) Module record: vendor="X.Org Foundation"
    compiled for 1.6.1.901, module version = 1.13.0
    Module class: X.Org Server Extension
    ABI class: X.Org Server Extension, version 2.0
(II) Loading extension RECORD
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions//libglx.so
(II) Module glx: vendor="X.Org Foundation"
    compiled for 1.6.1.901, module version = 1.0.0
    ABI class: X.Org Server Extension, version 2.0
(==) AIGLX enabled
(II) Loading extension GLX
(II) LoadModule: "dri2"
(II) Loading /usr/lib/xorg/modules/extensions//libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
    compiled for 1.6.1.901, module version = 1.0.0
    ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DRI2
(II) LoadModule: "mach64"
(II) Loading /usr/lib/xorg/modules/drivers//mach64_drv.so
(II) Module mach64: vendor="X.Org Foundation"
    compiled for 1.6.1, module version = 6.8.1
    Module class: X.Org Video Driver
    ABI class: X.Org Video Driver, version 5.0
(II) MACH64: Driver for ATI Mach64 chipsets
(II) Primary Device is: PCI 01@00:00:0
(II) resource ranges after probing:
    [0] -1    0    0xffffffff - 0xffffffff (0x1) MX[b]
    [1] -1    0    0x000f0000 - 0x000fffff (0x10000) MX[b]
    [2] -1    0    0x000c0000 - 0x000effff (0x30000) MX[b]
    [3] -1    0    0x00000000 - 0x0009ffff (0xa0000) MX[b]
    [4] -1    0    0x0000ffff - 0x0000ffff (0x1) IX[b]
    [5] -1    0    0x00000000 - 0x00000000 (0x1) IX[b]
(**) MACH64(0): Depth 16, (--) framebuffer bpp 16
(**) MACH64(0): Option "probe_sparse" "False"
(**) MACH64(0): Option "accel" "True"
(**) MACH64(0): Option "crt_display" "false"
(**) MACH64(0): Option "composite_sync" "True"
(**) MACH64(0): Option "hw_cursor" "True"
(**) MACH64(0): Option "dma_mode" "async"
(**) MACH64(0): Option "agp_mode" "2"
(**) MACH64(0): Option "agp_size" "64"
(**) MACH64(0): Option "local_textures" "True"
(**) MACH64(0): Option "buffer_size" "2"
(**) MACH64(0): Option "tv_out" "false"
(**) MACH64(0): Option "mmio_cache" "True"
(**) MACH64(0): Option "test_mmio_cache" "false"
(**) MACH64(0): Option "shadow_fb" "False"
(**) MACH64(0): Option "sw_cursor" "false"
(**) MACH64(0): Option "AccelMethod" "XAA"
(**) MACH64(0): Option "RenderAccel" "True"
(**) MACH64(0): Option "lcdblend" "True"
(**) MACH64(0): Option "lcdsync" "True"
(**) MACH64(0): Using XAA acceleration architecture
(II) MACH64: Mach64 in slot 1:0:0 detected.
(II) resource ranges after xf86ClaimFixedResources() call:
    [0] -1    0    0xffffffff - 0xffffffff (0x1) MX[b]
    [1] -1    0    0x000f0000 - 0x000fffff (0x10000) MX[b]
    [2] -1    0    0x000c0000 - 0x000effff (0x30000) MX[b]
    [3] -1    0    0x00000000 - 0x0009ffff (0xa0000) MX[b]
    [4] -1    0    0x0000ffff - 0x0000ffff (0x1) IX[b]
    [5] -1    0    0x00000000 - 0x00000000 (0x1) IX[b]
(II) Loading sub module "int10"
(II) LoadModule: "int10"
(II) Loading /usr/lib/xorg/modules//libint10.so
(II) Module int10: vendor="X.Org Foundation"
    compiled for 1.6.1.901, module version = 1.0.0
    ABI class: X.Org Video Driver, version 5.0
(II) MACH64(0): Primary V_BIOS segment is: 0xc000
(II) Loading sub module "ddc"
(II) LoadModule: "ddc"
(II) Module "ddc" already built-in
(II) Loading sub module "vbe"
(II) LoadModule: "vbe"
(II) Loading /usr/lib/xorg/modules//libvbe.so
(II) Module vbe: vendor="X.Org Foundation"
    compiled for 1.6.1.901, module version = 1.1.0
    ABI class: X.Org Video Driver, version 5.0
(II) MACH64(0): VESA BIOS detected
(II) MACH64(0): VESA VBE Version 2.0
(II) MACH64(0): VESA VBE Total Mem: 8128 kB
(II) MACH64(0): VESA VBE OEM: ATI MACH64
(II) MACH64(0): VESA VBE OEM Software Rev: 1.0
(II) MACH64(0): VESA VBE OEM Vendor: ATI Technologies Inc.
(II) MACH64(0): VESA VBE OEM Product: MACH64LP
(II) MACH64(0): VESA VBE OEM Product Rev: 01.00
(II) MACH64(0): VESA VBE DDC supported
(II) MACH64(0): VESA VBE DDC Level none
(II) MACH64(0): VESA VBE DDC transfer in appr. 2 sec.
(II) MACH64(0): VESA VBE DDC read failed
(--) MACH64(0): Panel model LG LP141X2-A.
(II) MACH64(0): BIOS Data:  BIOSSize=0xF000, ROMTable=0x010A.
(II) MACH64(0): BIOS Data:  ClockTable=0x08A7, FrequencyTable=0x0000.
(II) MACH64(0): BIOS Data:  LCDTable=0x0184.
(II) MACH64(0): BIOS Data:  VideoTable=0x0000, HardwareTable=0x015A.
(II) MACH64(0): BIOS Data:  I2CType=0x0F, Tuner=0x00, Decoder=0x00, Audio=0x0F.
(--) MACH64(0): ATI 3D Rage LT Pro graphics controller detected.
(--) MACH64(0): Chip type 4C42 "LB", version 4, foundry UMC, class 0, revision 0x03.
(--) MACH64(0): AGP bus interface detected;  block I/O base is 0xE800.
(--) MACH64(0): ATI Mach64 adapter detected.
(!!) MACH64(0): For information on using the multimedia capabilities
    of this adapter, please see http://gatos.sf.net.
(--) MACH64(0): Internal RAMDAC (subtype 1) detected.
(==) MACH64(0): RGB weight 565
(==) MACH64(0): Default visual is TrueColor
(==) MACH64(0): Using gamma correction (1.0, 1.0, 1.0)
(II) MACH64(0): Using Mach64 accelerator CRTC.
(WW) MACH64(0): Logic error setting operating state for VGA I/O.
(--) MACH64(0): 1024x768 panel (ID 1) detected.
(--) MACH64(0): Panel clock is 65.146 MHz.
(II) MACH64(0): Using digital flat panel interface.
(II) MACH64(0): Storing hardware cursor image at 0xFD7FFC00.
(II) MACH64(0): Using 8 MB linear aperture at 0xFD000000.
(!!) MACH64(0): Virtual resolutions will be limited to 8191 kB
 due to linear aperture size and/or placement of hardware cursor image area.
(II) MACH64(0): Using Block 0 MMIO aperture at 0xFEDFE400.
(II) MACH64(0): Using Block 1 MMIO aperture at 0xFEDFE000.
(WW) MACH64(0): Logic error setting operating state for VGA memory aperture.
(II) MACH64(0): MMIO write caching enabled.
(--) MACH64(0): 8192 kB of SGRAM (1:1) detected (using 8191 kB).
(II) MACH64(0): Engine XCLK 79.742 MHz;  Refresh rate code 6.
(--) MACH64(0): Internal programmable clock generator detected.
(--) MACH64(0): Reference clock 29.500 MHz.
(WW) MACH64(0): Extraneous XF86Config HorizSync specification(s) ignored.
(!!) MACH64(0): Conflicting XF86Config VertRefresh specification(s) ignored.
(II) MACH64(0): Maximum clock: 200.00 MHz
(II) MACH64(0): Not using default mode "1152x864" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "576x432" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "1280x960" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "1280x960" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "1280x1024" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "640x512" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "1280x1024" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "640x512" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "1280x1024" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "640x512" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "1600x1200" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "1600x1200" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "1600x1200" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "1600x1200" (bad mode clock/interlace/doublescan)
(II) MACH64(0): Not using default mode "1600x1200" (bad mode clock/interlace/doublescan)
(II) MACH64(0): Not using default mode "1792x1344" (bad mode clock/interlace/doublescan)
(II) MACH64(0): Not using default mode "896x672" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "1792x1344" (bad mode clock/interlace/doublescan)
(II) MACH64(0): Not using default mode "896x672" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "1856x1392" (bad mode clock/interlace/doublescan)
(II) MACH64(0): Not using default mode "928x696" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "1856x1392" (bad mode clock/interlace/doublescan)
(II) MACH64(0): Not using default mode "928x696" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "1920x1440" (bad mode clock/interlace/doublescan)
(II) MACH64(0): Not using default mode "960x720" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "1920x1440" (bad mode clock/interlace/doublescan)
(II) MACH64(0): Not using default mode "960x720" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "1400x1050" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "700x525" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "1400x1050" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "700x525" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "1920x1440" (bad mode clock/interlace/doublescan)
(II) MACH64(0): Not using default mode "960x720" (exceeds panel dimensions)
(II) MACH64(0): Not using default mode "2048x1536" (bad mode clock/interlace/doublescan)
(II) MACH64(0): Not using default mode "2048x1536" (bad mode clock/interlace/doublescan)
(II) MACH64(0): Not using default mode "2048x1536" (bad mode clock/interlace/doublescan)
(--) MACH64(0): Virtual size is 1024x768 (pitch 1024)
(**) MACH64(0): *Mode "1024x768": 65.1 MHz, 48.5 kHz, 60.8 Hz
(II) MACH64(0): Modeline "1024x768"x60.8   65.15  1024 1032 1176 1344  768 770 775 797 -hsync -vsync (48.5 kHz)
(**) MACH64(0): *Mode "800x600": 65.1 MHz, 49.7 kHz, 63.1 Hz
(II) MACH64(0): Modeline "800x600"x63.1   65.15  800 824 928 1088  600 600 603 619 (49.7 kHz)
(**) MACH64(0): *Mode "640x480": 65.1 MHz, 50.9 kHz, 63.5 Hz
(II) MACH64(0): Modeline "640x480"x63.5   65.15  640 672 832 896  480 488 490 514 (50.9 kHz)
(**) MACH64(0): *Mode "320x200": 65.1 MHz, 50.9 kHz, 63.1 Hz (D)
(II) MACH64(0): Modeline "320x200"x63.1   65.15  320 368 528 576  200 203 204 219 doublescan (50.9 kHz)
(**) MACH64(0):  Built-in mode "Native panel mode": 65.1 MHz, 62.6 kHz, 81.4 Hz
(II) MACH64(0): Modeline "Native panel mode"x81.4   65.15  1024 1024 1032 1040  768 768 769 770 (62.6 kHz)
(**) MACH64(0):  Default mode "832x624": 65.1 MHz, 45.7 kHz, 57.1 Hz
(II) MACH64(0): Modeline "832x624"x57.1   65.15  832 864 952 1232  624 624 627 657 -hsync -vsync (45.7 kHz)
(**) MACH64(0):  Default mode "720x400": 65.1 MHz, 48.8 kHz, 60.7 Hz
(II) MACH64(0): Modeline "720x400"x60.7   65.15  720 768 880 1032  400 400 403 435 -hsync +vsync (48.8 kHz)
(**) MACH64(0):  Default mode "640x400": 65.1 MHz, 48.8 kHz, 60.8 Hz
(II) MACH64(0): Modeline "640x400"x60.8   65.15  640 688 800 952  400 400 403 434 -hsync +vsync (48.8 kHz)
(**) MACH64(0):  Default mode "640x350": 65.1 MHz, 48.8 kHz, 58.0 Hz
(II) MACH64(0): Modeline "640x350"x58.0   65.15  640 688 800 952  350 374 377 422 +hsync -vsync (48.8 kHz)
(**) MACH64(0):  Default mode "512x384": 65.1 MHz, 49.7 kHz, 62.7 Hz (D)
(II) MACH64(0): Modeline "512x384"x62.7   65.15  512 528 624 800  384 384 385 396 doublescan +hsync +vsync (49.7 kHz)
(**) MACH64(0):  Default mode "512x384": 65.1 MHz, 49.1 kHz, 61.6 Hz (D)
(II) MACH64(0): Modeline "512x384"x61.6   65.15  512 536 672 816  384 384 387 398 doublescan -hsync -vsync (49.1 kHz)
(**) MACH64(0):  Default mode "512x384": 65.1 MHz, 48.5 kHz, 60.8 Hz (D)
(II) MACH64(0): Modeline "512x384"x60.8   65.15  512 536 672 832  384 384 387 398 doublescan -hsync -vsync (48.5 kHz)
(**) MACH64(0):  Default mode "512x384": 65.1 MHz, 47.3 kHz, 59.3 Hz (D)
(II) MACH64(0): Modeline "512x384"x59.3   65.15  512 560 656 864  384 384 385 399 doublescan +hsync +vsync (47.3 kHz)
(**) MACH64(0):  Default mode "512x384": 65.1 MHz, 51.5 kHz, 65.4 Hz (D)
(II) MACH64(0): Modeline "512x384"x65.4   65.15  512 520 696 752  384 384 387 405 interlace doublescan +hsync +vsync (51.5 kHz)
(**) MACH64(0):  Default mode "416x312": 65.1 MHz, 45.7 kHz, 57.2 Hz (D)
(II) MACH64(0): Modeline "416x312"x57.2   65.15  416 448 536 816  312 312 313 328 doublescan -hsync -vsync (45.7 kHz)
(**) MACH64(0):  Default mode "400x300": 65.1 MHz, 49.7 kHz, 63.2 Hz (D)
(II) MACH64(0): Modeline "400x300"x63.2   65.15  400 424 528 688  300 300 301 309 doublescan +hsync +vsync (49.7 kHz)
(**) MACH64(0):  Default mode "400x300": 65.1 MHz, 48.2 kHz, 61.3 Hz (D)
(II) MACH64(0): Modeline "400x300"x61.3   65.15  400 416 528 728  300 300 301 309 doublescan +hsync +vsync (48.2 kHz)
(**) MACH64(0):  Default mode "400x300": 65.1 MHz, 48.5 kHz, 61.3 Hz (D)
(II) MACH64(0): Modeline "400x300"x61.3   65.15  400 440 528 720  300 300 301 311 doublescan +hsync +vsync (48.5 kHz)
(**) MACH64(0):  Default mode "400x300": 65.1 MHz, 48.2 kHz, 61.1 Hz (D)
(II) MACH64(0): Modeline "400x300"x61.1   65.15  400 448 616 728  300 300 301 310 doublescan +hsync +vsync (48.2 kHz)
(**) MACH64(0):  Default mode "400x300": 65.1 MHz, 48.8 kHz, 59.6 Hz (D)
(II) MACH64(0): Modeline "400x300"x59.6   65.15  400 464 632 712  300 313 316 325 doublescan +hsync +vsync (48.8 kHz)
(**) MACH64(0):  Default mode "320x240": 65.1 MHz, 50.9 kHz, 63.5 Hz (D)
(II) MACH64(0): Modeline "320x240"x63.5   65.15  320 344 504 576  240 243 244 256 doublescan -hsync -vsync (50.9 kHz)
(**) MACH64(0):  Default mode "320x240": 65.1 MHz, 48.5 kHz, 61.9 Hz (D)
(II) MACH64(0): Modeline "320x240"x61.9   65.15  320 344 448 640  240 240 241 247 doublescan -hsync -vsync (48.5 kHz)
(**) MACH64(0):  Default mode "320x240": 65.1 MHz, 48.8 kHz, 61.8 Hz (D)
(II) MACH64(0): Modeline "320x240"x61.8   65.15  320 408 504 632  240 240 241 250 doublescan -hsync -vsync (48.8 kHz)
(**) MACH64(0):  Default mode "320x240": 65.1 MHz, 48.8 kHz, 61.1 Hz (D)
(II) MACH64(0): Modeline "320x240"x61.1   65.15  320 352 424 632  240 243 244 255 doublescan -hsync -vsync (48.8 kHz)
(**) MACH64(0):  Default mode "360x200": 65.1 MHz, 48.8 kHz, 60.7 Hz (D)
(II) MACH64(0): Modeline "360x200"x60.7   65.15  360 408 520 672  200 200 201 217 doublescan -hsync +vsync (48.8 kHz)
(**) MACH64(0):  Default mode "320x175": 65.1 MHz, 48.8 kHz, 58.1 Hz (D)
(II) MACH64(0): Modeline "320x175"x58.1   65.15  320 368 480 632  175 187 188 210 doublescan +hsync -vsync (48.8 kHz)
(==) MACH64(0): DPI set to (96, 96)
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/lib/xorg/modules//libfb.so
(II) Module fb: vendor="X.Org Foundation"
    compiled for 1.6.1.901, module version = 1.0.0
    ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Module "ramdac" already built-in
(II) Loading sub module "xaa"
(II) LoadModule: "xaa"
(II) Loading /usr/lib/xorg/modules//libxaa.so
(II) Module xaa: vendor="X.Org Foundation"
    compiled for 1.6.1.901, module version = 1.2.1
    ABI class: X.Org Video Driver, version 5.0
(II) Loading sub module "i2c"
(II) LoadModule: "i2c"
(II) Module "i2c" already built-in
(II) MACH64(0): I2C bus "Mach64" initialized.
(II) do I need RAC?  No, I don't.
(II) resource ranges after preInit:
    [0] -1    0    0xffffffff - 0xffffffff (0x1) MX[b]
    [1] -1    0    0x000f0000 - 0x000fffff (0x10000) MX[b]
    [2] -1    0    0x000c0000 - 0x000effff (0x30000) MX[b]
    [3] -1    0    0x00000000 - 0x0009ffff (0xa0000) MX[b]
    [4] -1    0    0x0000ffff - 0x0000ffff (0x1) IX[b]
    [5] -1    0    0x00000000 - 0x00000000 (0x1) IX[b]
(II) MACH64(0): [drm] SAREA 2200+1208: 3408
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmOpenByBusid: drmOpenMinor returns 9
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
(II) [drm] DRM interface version 1.3
(II) [drm] DRM open master succeeded.
(II) MACH64(0): [drm] Using the DRM lock SAREA also for drawables.
(II) MACH64(0): [drm] framebuffer handle = 0xfd000000
(II) MACH64(0): [drm] added 1 reserved context for kernel
(II) MACH64(0): X context handle = 0x1
(II) MACH64(0): [drm] installed DRM signal handler
(II) MACH64(0): [drm] Will request asynchronous DMA mode
(**) MACH64(0): [agp] Using AGP 2x Mode
(**) MACH64(0): [agp] Using 64 MB AGP aperture
(II) MACH64(0): [agp] Mode 0x1f000203 [AGP 0x8086/0x7190; Card 0x1002/0x4c42]
(II) MACH64(0): [agp] 65536 kB allocated with handle 0x00000001
(II) MACH64(0): [agp] Using 16 kB for DMA descriptor ring
(**) MACH64(0): [drm] Using 2 MB for DMA buffers
(II) MACH64(0): [agp] Using 62464 kB for AGP textures
(II) MACH64(0): [agp] ring handle = 0x18000000
(II) MACH64(0): [agp] Ring mapped at 0xb7089000
(II) MACH64(0): [agp] vertex buffers handle = 0x18004000
(II) MACH64(0): [agp] Vertex buffers mapped at 0xb6e89000
(II) MACH64(0): [agp] AGP texture region handle = 0x18204000
(II) MACH64(0): [agp] AGP Texture region mapped at 0xb3189000
(II) MACH64(0): [drm] register handle = 0xfedfe000
(II) MACH64(0): [dri] Visual configs initialized
(II) MACH64(0): [dri] Block 0 base at 0xfedfe400
(II) MACH64(0): Memory manager initialized to (0,0) (1024,4095)
(II) MACH64(0): Largest offscreen area available: 1024 x 3327
(II) MACH64(0): Will use 1598 kB of offscreen memory for XAA
(II) MACH64(0): Will use back buffer at offset 0x30f800
(II) MACH64(0): Will use depth buffer at offset 0x48f800
(II) MACH64(0): Will use 1985 kB for local textures at offset 0x60f800
(II) MACH64(0): Using XFree86 Acceleration Architecture (XAA)
    Screen to screen bit blits
    Solid filled rectangles
    8x8 mono pattern filled rectangles
    Indirect CPU to Screen color expansion
    Solid Lines
    Setting up tile and stipple cache:
        32 128x128 slots
        18 256x256 slots
        6 512x512 slots
(==) MACH64(0): Backing store disabled
(==) MACH64(0): Silken mouse enabled
(II) MACH64(0): DPMS enabled
(II) MACH64(0): [DRI] installation complete
(II) MACH64(0): [drm] Added 128 16384 byte DMA buffers
(II) MACH64(0): [drm] Mapped 128 DMA buffers at 0xb2f89000
(II) MACH64(0): [drm] Installed interrupt handler, using IRQ 11
(II) MACH64(0): Direct rendering enabled
(==) RandR enabled
(II) Initializing built-in extension Generic Event Extension
(II) Initializing built-in extension SHAPE
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension BIG-REQUESTS
(II) Initializing built-in extension SYNC
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension XC-MISC
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
(II) AIGLX: Screen 0 is not DRI2 capable
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 10, (OK)
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 10, (OK)
drmOpenByBusid: drmOpenMinor returns 10
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
(II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
(II) AIGLX: Loaded and initialized /usr/lib/xorg/modules/dri/mach64_dri.so
(II) GLX: Initialized DRI GL provider for screen 0
(II) config/hal: Adding input device Macintosh mouse button emulation
(II) LoadModule: "evdev"
(II) Loading /usr/lib/xorg/modules/input//evdev_drv.so
(II) Module evdev: vendor="X.Org Foundation"
    compiled for 1.6.1, module version = 2.2.2
    Module class: X.Org XInput Driver
    ABI class: X.Org XInput driver, version 4.0
(**) Macintosh mouse button emulation: always reports core events
(**) Macintosh mouse button emulation: Device: "/dev/input/event0"
(II) Macintosh mouse button emulation: Found 3 mouse buttons
(II) Macintosh mouse button emulation: Found x and y relative axes
(II) Macintosh mouse button emulation: Configuring as mouse
(**) Macintosh mouse button emulation: YAxisMapping: buttons 4 and 5
(**) Macintosh mouse button emulation: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "Macintosh mouse button emulation" (type: MOUSE)
(**) Macintosh mouse button emulation: (accel) keeping acceleration scheme 1
(**) Macintosh mouse button emulation: (accel) filter chain progression: 2.00
(**) Macintosh mouse button emulation: (accel) filter stage 0: 20.00 ms
(**) Macintosh mouse button emulation: (accel) set acceleration profile 0
(II) config/hal: Adding input device TPPS/2 IBM TrackPoint
(**) TPPS/2 IBM TrackPoint: always reports core events
(**) TPPS/2 IBM TrackPoint: Device: "/dev/input/event5"
(II) TPPS/2 IBM TrackPoint: Found 3 mouse buttons
(II) TPPS/2 IBM TrackPoint: Found x and y relative axes
(II) TPPS/2 IBM TrackPoint: Configuring as mouse
(**) TPPS/2 IBM TrackPoint: YAxisMapping: buttons 4 and 5
(**) TPPS/2 IBM TrackPoint: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "TPPS/2 IBM TrackPoint" (type: MOUSE)
(**) TPPS/2 IBM TrackPoint: (accel) keeping acceleration scheme 1
(**) TPPS/2 IBM TrackPoint: (accel) filter chain progression: 2.00
(**) TPPS/2 IBM TrackPoint: (accel) filter stage 0: 20.00 ms
(**) TPPS/2 IBM TrackPoint: (accel) set acceleration profile 0
(II) config/hal: Adding input device AT Translated Set 2 keyboard
(**) AT Translated Set 2 keyboard: always reports core events
(**) AT Translated Set 2 keyboard: Device: "/dev/input/event1"
(II) AT Translated Set 2 keyboard: Found keys
(II) AT Translated Set 2 keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"

xorg.conf (I'm very sure the problem is NOT here, but included for sake of completeness)

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

Section "ServerFlags"

    Option "DontVTSwitch" "true" # causes kernel panic
    Option "DontZap" "false" # disabled by default?!
EndSection

Section "Files"
    RgbPath      "/etc/X11/rgb"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/X11/misc"
EndSection

Section "Module" # most of these load by default
    Load  "GLcore"
    Load  "extmod"
    Load  "xtrap"
    Load  "dri"
    Load  "dbe"
    Load  "record"
    Load  "glx"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
    Option "XkbdOptions" "terminate::ctrl_alt_bksp"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/input/mice"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
    HorizSync    30 - 60
    VertRefresh     70 - 90
    Modeline "1024x768" 65 1024 1032 1176 1344 768 771 777 806 -hsync -vsync
    Modeline "800x600"  36  800  824  896 1024 600 601 603 625
    Modeline "640x480"  25.175 640 664 760 800 480 491 493 525 
    #Modeline "640x400"  25.175 640 664 760 800 400 409 411 450 
    Modeline "320x200"  12.588 320 336 384 400 200 204 205 225 Doublescan
    
#    Option "Gamma" ".6" # doesn't work
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     "probe_sparse"           "False" # ?
        Option       "lcdblend"            "True" # saw in source code
        
    Option       "LCDSync"            "True"
        Option     "accel"                  "True"
        Option     "crt_display"            "false"
        Option     "composite_sync"         "True"
        Option     "hw_cursor"              "True"
        #Option     "force_pci_mode"         "True" # rather use AGP 
        Option     "dma_mode"               "async" # async is best
        Option     "agp_mode"               "2" 
        Option     "agp_size"               "64" # Aperture
        Option     "local_textures"         "True"# [<bool>]
        Option     "buffer_size"            "2"
        Option     "tv_out"                 "false" 
        #Option     "tv_standard"            # <str>
        Option     "mmio_cache"             "True"# [<bool>]
        Option     "test_mmio_cache"        "false"# [<bool>]
        #Option     "panel_display"          # [<bool>]
        #Option     "reference_clock"        # <freq>
        Option     "shadow_fb"              "False" # Can't shadow accelerated fb
        Option     "sw_cursor"              "false" 
        Option     "AccelMethod"            "XAA" # EXA or XAA (XAA is slightly faster)
        #Option      "AccelDFS"            "True" # saw on internetz
        Option     "RenderAccel"            "True"
    Identifier  "Card0"
    Driver      "mach64"
    #Option      "ForcePCIMode"        "True"
    #Option      "TVOut"
    VendorName  "ATI Technologies Inc"
    BoardName   "3D Rage LT Pro AGP-133"
    BusID       "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    DefaultDepth 16
#    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
        Modes "1024x768" "800x600" "640x480" "320x200"

     EndSubSection
#    SubSection "Display"
#        Viewport   0 0
#        Depth     24
#    EndSubSection
EndSection

Section "DRI"
    Mode     0666
EndSection

glxinfo (everything looks good)

name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_OML_swap_method, 
    GLX_SGI_swap_control, GLX_SGIS_multisample, GLX_SGIX_fbconfig, 
    GLX_SGIX_visual_select_group
client glx vendor string: SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory, 
    GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control, 
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control, 
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap
GLX version: 1.2
GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_swap_control, 
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_SGI_swap_control, 
    GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig, 
    GLX_SGIX_visual_select_group
OpenGL vendor string: Gareth Hughes, Leif Delgass, José Fonseca
OpenGL renderer string: Mesa DRI Mach64 [Rage Pro] 20051019 AGP 2x x86/MMX
OpenGL version string: 1.2 Mesa 7.4.4
OpenGL extensions:
    GL_ARB_imaging, GL_ARB_multisample, GL_ARB_multitexture, 
    GL_ARB_transpose_matrix, GL_ARB_vertex_buffer_object, GL_ARB_window_pos, 
    GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_logic_op, 
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint, 
    GL_EXT_compiled_vertex_array, GL_EXT_convolution, GL_EXT_copy_texture, 
    GL_EXT_draw_range_elements, GL_EXT_histogram, GL_EXT_packed_pixels, 
    GL_EXT_polygon_offset, GL_EXT_rescale_normal, 
    GL_EXT_separate_specular_color, GL_EXT_subtexture, GL_EXT_texture, 
    GL_EXT_texture3D, GL_EXT_texture_edge_clamp, GL_EXT_texture_object, 
    GL_EXT_vertex_array, GL_APPLE_packed_pixels, GL_IBM_rasterpos_clip, 
    GL_MESA_ycbcr_texture, GL_MESA_window_pos, GL_NV_light_max_exponent, 
    GL_NV_texgen_reflection, GL_OES_read_format, GL_SGI_color_matrix, 
    GL_SGI_color_table, GL_SGIS_generate_mipmap, GL_SGIS_texture_edge_clamp, 
    GL_SGIS_texture_lod

16 GLX Visuals
   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x21 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x22 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x4e 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x4f 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x50 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x51 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x52 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x53 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x54 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x55 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x56 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x57 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x58 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x59 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x5a 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x5b 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow

16 GLXFBConfigs:
   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x3e  0 tc  0 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x3f  0 tc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x40  0 tc  0 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x41  0 tc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x42  0 tc  0 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x43  0 tc  0 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x44  0 tc  0 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x45  0 tc  0 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x46  0 dc  0 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x47  0 dc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x48  0 dc  0 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x49  0 dc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x4a  0 dc  0 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x4b  0 dc  0 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x4c  0 dc  0 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x4d  0 dc  0 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow

ldd $path/glxgears (everything looks good, once again)

linux-gate.so.1 =>  (0xb7f6c000)
    libGL.so.1 => /usr/lib/libGL.so.1 (0xb7efb000)
    libm.so.6 => /lib/libm.so.6 (0xb7ed5000)
    libc.so.6 => /lib/libc.so.6 (0xb7d8d000)
    libX11.so.6 => /usr/lib/libX11.so.6 (0xb7c70000)
    libXext.so.6 => /usr/lib/libXext.so.6 (0xb7c61000)
    libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0xb7c5c000)
    libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb7c58000)
    libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb7c53000)
    libX11-xcb.so.1 => /usr/lib/libX11-xcb.so.1 (0xb7c51000)
    libxcb-glx.so.0 => /usr/lib/libxcb-glx.so.0 (0xb7c40000)
    libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7c27000)
    libdrm.so.2 => /usr/lib/libdrm.so.2 (0xb7c1e000)
    libpthread.so.0 => /lib/libpthread.so.0 (0xb7c05000)
    libdl.so.2 => /lib/libdl.so.2 (0xb7c01000)
    /lib/ld-linux.so.2 (0xb7f6d000)
    libXau.so.6 => /usr/lib/libXau.so.6 (0xb7bfe000)
    libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7bf9000)
    librt.so.1 => /lib/librt.so.1 (0xb7bf0000)
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_OML_swap_method, 
    GLX_SGI_swap_control, GLX_SGIS_multisample, GLX_SGIX_fbconfig, 
    GLX_SGIX_visual_select_group
client glx vendor string: SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory, 
    GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control, 
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control, 
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap
GLX version: 1.2
GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_swap_control, 
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_SGI_swap_control, 
    GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig, 
    GLX_SGIX_visual_select_group
OpenGL vendor string: Gareth Hughes, Leif Delgass, José Fonseca
OpenGL renderer string: Mesa DRI Mach64 [Rage Pro] 20051019 AGP 2x x86/MMX
OpenGL version string: 1.2 Mesa 7.4.4
OpenGL extensions:
    GL_ARB_imaging, GL_ARB_multisample, GL_ARB_multitexture, 
    GL_ARB_transpose_matrix, GL_ARB_vertex_buffer_object, GL_ARB_window_pos, 
    GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_logic_op, 
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint, 
    GL_EXT_compiled_vertex_array, GL_EXT_convolution, GL_EXT_copy_texture, 
    GL_EXT_draw_range_elements, GL_EXT_histogram, GL_EXT_packed_pixels, 
    GL_EXT_polygon_offset, GL_EXT_rescale_normal, 
    GL_EXT_separate_specular_color, GL_EXT_subtexture, GL_EXT_texture, 
    GL_EXT_texture3D, GL_EXT_texture_edge_clamp, GL_EXT_texture_object, 
    GL_EXT_vertex_array, GL_APPLE_packed_pixels, GL_IBM_rasterpos_clip, 
    GL_MESA_ycbcr_texture, GL_MESA_window_pos, GL_NV_light_max_exponent, 
    GL_NV_texgen_reflection, GL_OES_read_format, GL_SGI_color_matrix, 
    GL_SGI_color_table, GL_SGIS_generate_mipmap, GL_SGIS_texture_edge_clamp, 
    GL_SGIS_texture_lod

16 GLX Visuals
   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x21 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x22 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x4e 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x4f 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x50 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x51 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x52 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x53 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x54 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x55 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x56 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x57 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x58 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x59 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x5a 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x5b 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow

16 GLXFBConfigs:
   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x3e  0 tc  0 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x3f  0 tc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x40  0 tc  0 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x41  0 tc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x42  0 tc  0 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x43  0 tc  0 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x44  0 tc  0 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x45  0 tc  0 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x46  0 dc  0 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x47  0 dc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x48  0 dc  0 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x49  0 dc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x4a  0 dc  0 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x4b  0 dc  0 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x4c  0 dc  0 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x4d  0 dc  0 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow

glxgears (here's where it just crashes, though X continues to function just fine...)
Note1: I get roughly the same problem using any applications that use GL
Note2: The error for the drirc isn't a fatal error, so isn't a big deal in my experience.
Note3: No seg fault reported in dmesg.

libGL: XF86DRIGetClientDriverName: 6.7.0 mach64 (screen 0)
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/tls/mach64_dri.so
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/mach64_dri.so
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
libGL error: 
Can't open configuration file /etc/drirc: No such file or directory.
libGL error: 
Can't open configuration file /root/.drirc: No such file or directory.
*** glibc detected *** glxgears: free(): invalid next size (fast): 0x097031d8 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7f12281]
/lib/libc.so.6[0xb7f139ba]
/lib/libc.so.6(cfree+0x6d)[0xb7f16abd]
/usr/lib/libX11.so.6(_XReply+0x2c7)[0xb7dcd667]
/usr/lib/libGL.so.1(XF86DRICreateDrawable+0x9c)[0xb8052d3c]
/usr/lib/libGL.so.1[0xb80524f3]
/usr/lib/libGL.so.1[0xb802f50e]
/usr/lib/libGL.so.1(glXMakeCurrentReadSGI+0xaa)[0xb802f78a]
/usr/lib/libGL.so.1(glXMakeCurrent+0x23)[0xb802faf3]
glxgears[0x804a35e]
/lib/libc.so.6(__libc_start_main+0xe6)[0xb7ebca36]
glxgears[0x8049101]
======= Memory map: ========
08048000-0804c000 r-xp 00000000 08:02 66014      /usr/bin/glxgears
0804c000-0804d000 rwxp 00003000 08:02 66014      /usr/bin/glxgears
0949d000-09717000 rwxp 00000000 00:00 0          [heap]
b2f00000-b2f21000 rwxp 00000000 00:00 0 
b2f21000-b3000000 ---p 00000000 00:00 0 
b30be000-b30db000 r-xp 00000000 08:02 6925       /usr/lib/libgcc_s.so.1
b30db000-b30dc000 rwxp 0001c000 08:02 6925       /usr/lib/libgcc_s.so.1
b30e7000-b339b000 rwxp 00000000 00:00 0 
b339b000-b709b000 rwxs 18204000 00:0c 5948       /dev/dri/card0
b709b000-b729b000 rwxs 18004000 00:0c 5948       /dev/dri/card0
b729b000-b7a9b000 rwxs fd000000 00:0c 5948       /dev/dri/card0
b7a9b000-b7abf000 r-xp 00000000 08:02 34101      /usr/lib/libexpat.so.1.5.2
b7abf000-b7ac1000 rwxp 00023000 08:02 34101      /usr/lib/libexpat.so.1.5.2
b7ac1000-b7c9a000 r-xp 00000000 08:02 59243      /usr/lib/xorg/modules/dri/libdricore.so
b7c9a000-b7cae000 rwxp 001d9000 08:02 59243      /usr/lib/xorg/modules/dri/libdricore.so
b7cae000-b7cb9000 rwxp 00000000 00:00 0 
b7cb9000-b7d04000 r-xp 00000000 08:02 60911      /usr/lib/xorg/modules/dri/mach64_dri.so
b7d04000-b7d06000 rwxp 0004a000 08:02 60911      /usr/lib/xorg/modules/dri/mach64_dri.so
b7d06000-b7d09000 rwxp 00000000 00:00 0 
b7bb0000-b7bb7000 r-xp 00000000 08:02 2676       /lib/librt-2.10.1.so
b7bb7000-b7bb8000 r-xp 00006000 08:02 2676       /lib/librt-2.10.1.so
b7bb8000-b7bb9000 rwxp 00007000 08:02 2676       /lib/librt-2.10.1.so
b7bb9000-b7bbd000 r-xp 00000000 08:02 34750      /usr/lib/libXdmcp.so.6.0.0
b7bbd000-b7bbe000 rwxp 00003000 08:02 34750      /usr/lib/libXdmcp.so.6.0.0
b7bbe000-b7bc0000 r-xp 00000000 08:02 34742      /usr/lib/libXau.so.6.0.0
b7bc0000-b7bc1000 rwxp 00001000 08:02 34742      /usr/lib/libXau.so.6.0.0
b7bc1000-b7bc3000 r-xp 00000000 08:02 2687       /lib/libdl-2.10.1.so
b7bc3000-b7bc4000 r-xp 00001000 08:02 2687       /lib/libdl-2.10.1.so
b7bc4000-b7bc5000 rwxp 00002000 08:02 2687       /lib/libdl-2.10.1.so
b7bc5000-b7bd9000 r-xp 00000000 08:02 2673       /lib/libpthread-2.10.1.so
b7bd9000-b7bda000 r-xp 00014000 08:02 2673       /lib/libpthread-2.10.1.so
b7bda000-b7bdb000 rwxp 00015000 08:02 2673       /lib/libpthread-2.10.1.so
b7bdb000-b7bde000 rwxp 00000000 00:00 0           
b7bde000-b7be6000 r-xp 00000000 08:02 59196      /usr/lib/libdrm.so.2.4.0
b7be6000-b7be7000 rwxp 00008000 08:02 59196      /usr/lib/libdrm.so.2.4.0
b7be7000-b7bff000 r-xp 00000000 08:02 34843      /usr/lib/libxcb.so.1.1.0
b7bff000-b7c00000 rwxp 00017000 08:02 34843      /usr/lib/libxcb.so.1.1.0
b7c00000-b7c10000 r-xp 00000000 08:02 34851      /usr/lib/libxcb-glx.so.0.0.0
b7c10000-b7c11000 rwxp 00010000 08:02 34851      /usr/lib/libxcb-glx.so.0.0.0
b7c11000-b7c12000 r-xp 00000000 08:02 36038      /usr/lib/libX11-xcb.so.1.0.0
b7c12000-b7c13000 rwxp 00000000 08:02 36038      /usr/lib/libX11-xcb.so.1.0.0
b7c13000-b7c17000 r-xp 00000000 08:02 59215      /usr/lib/libXfixes.so.3.1.0
b7c17000-b7c18000 rwxp 00003000 08:02 59215      /usr/lib/libXfixes.so.3.1.0
b7c18000-b7c1a000 r-xp 00000000 08:02 59234      /usr/lib/libXdamage.so.1.1.0
b7c1a000-b7c1b000 rwxp 00001000 08:02 59234      /usr/lib/libXdamage.so.1.1.0
b7c1b000-b7c1c000 rwxp 00000000 00:00 0 
b7c1c000-b7c20000 r-xp 00000000 08:02 58625      /usr/lib/libXxf86vm.so.1.0.0
b7c20000-b7c21000 rwxp 00003000 08:02 58625      /usr/lib/libXxf86vm.so.1.0.0
b7c21000-b7c2f000 r-xp 00000000 08:02 57974      /usr/lib/libXext.so.6.4.0
b7c2f000-b7c30000 rwxp 0000d000 08:02 57974      /usr/lib/libXext.so.6.4.0
b7c30000-b7d49000 r-xp 00000000 08:02 36044 Aborted

So there it is.  I'm using the latest and greatest archlinux has to offer.  I've followed every wiki, and every forum post since 2004 that relates to DRI on the Mach64 on linux.  I've spent a solid 5 days on this, and can't resolve it.

I believe the problem to solve is this error:
*** glibc detected *** glxgears: free(): invalid next size (fast): 0x097031d8 ***

I also believe it's related to this reported bug:
http://bugs.archlinux.org/task/15354

Although, he was able to solve the problem by using newer drivers for his video card... I believe that the ones available in extra for the mach64 card actually are the latest.

I'm not a C guru (I'm more of a java guy), so memory management isn't my thing.  I don't believe that I could hack the source to solve any memory allocation errors (even if I could find the specific source file to modify). 

Perhaps I should try recompiling the mach64 drivers using the new mesa?  I don't actually know enough about that to know where to start, but it's the best idea I have.

The more I look into the problem, the more it appears to be a mach64 driver problem related to memory mismanagement.

Note:  I can get this to work in Debian Lenny, so it is possible.

UPDATE: I can't figure out how to compile xf86-video-mach64... I can get the latest with git, but it doesn't seem to include a Makefile... so I'm stumped. 

UPDATE2: Ok, I got them to compile (had to use autogen.sh), but it didn't solve my problem... So I'm onto recompiling mesa from git...  I'm currently stuck on:

makedepend: command not found



Ideas welcome.

Last edited by Daemonjax (2009-07-06 02:43:56)

Offline

#3 2009-07-06 05:49:25

Daemonjax
Member
Registered: 2009-07-02
Posts: 43

Re: ATI 3D Rage LT Pro AGP-133 (Mach64) Xorg DRI

Solved!

I managed to recompile mesa from git source, and now DRI is working!  http://bbs.archlinux.org/viewtopic.php? … 57#p580357

then I 'copied' over the ne GL* libs to my /usr/libs folder, along with my  mach64_dri.so (heh, I had to make a symlink to it from /opt/gfx-test/lib/ due to my lack of understanding when I configured the mesa makefile using autogen), and the xglgears and xglinfo to their rightful places.

Sure... it's only 188 fps in glxgears (about 20 less than I got in debian) but oh well!  Better than the 27 fps I was gettnig using software raster!  At this point, now that I know roughly what the problem is (mesa) I can experiment with different versions of drivers, mesa, DRM, etc, and get back up to 206 FPS... perhaps higher!  Maybe throw in some compiler optimizations... who knows, the sky's the limit.

I'm sure it's buggy as hell, too, since I used the latest from git... I bet I'd get better stability/performance if I reverted some of the "improvements" big_smile

Last edited by Daemonjax (2009-07-06 05:54:43)

Offline

Board footer

Powered by FluxBB