LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   fglrxinfo reposrts Mesa, but ATI installed(?) (https://www.linuxquestions.org/questions/slackware-14/fglrxinfo-reposrts-mesa-but-ati-installed-306724/)

resaguk 03-27-2005 02:25 PM

fglrxinfo reports Mesa, but ATI installed(?)
 
Ok, kernel version 2.4.26 I have installed the ATI driver package following the instructions I have found here on LQ (and by STFW). However, on checking my installation I get:

EDIT: The fglrx driver was installed from the rpm at the ATI website...

Code:

iain@iains:~$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: Brian Paul
OpenGL renderer string: Mesa X11
OpenGL version string: 1.5 Mesa 6.2.1

iain@iains:~$ grep '(EE)' /var/log/Xorg.0.log
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
iain@iains:~$ fgl_glxgears
100 frames in 5.0 seconds = 20.000 FPS
109 frames in 5.0 seconds = 21.800 FPS
X connection to :0.0 broken (explicit kill or server shutdown).

So why does fglrxinfo not report "ATI Technologies" or something similar?

Output from dmesg:

Code:

[fglrx] Maximum main memory to use for locked dma buffers: 429 MBytes.
[fglrx] module loaded - fglrx 8.10.19 [Feb  9 2005] on minor 0
[fglrx:firegl_addmap] *ERROR* mtrr allocation failed (-22)
[fglrx] free  PCIe = 54804480
[fglrx] max  PCIe = 54804480
[fglrx] free  LFB = 114208768
[fglrx] max  LFB = 114208768
[fglrx] free  Inv = 0
[fglrx] max  Inv = 0
[fglrx] total Inv = 0
[fglrx] total TIM = 0
[fglrx] total FB  = 0
[fglrx] total PCIe = 16384

Could the mtrr alocation error be the root of my problem? If so, how to fix it?

Output from syslog:

Code:

Mar 27 20:42:26 iains kernel: mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
Mar 27 20:42:26 iains kernel: mtrr: detected mtrr type: Intel
Mar 27 20:43:23 iains kernel: mtrr: base(0xd0000000) is not aligned on a size(0x7ff0000) boundary
Mar 27 20:43:23 iains kernel: [fglrx:firegl_addmap] *ERROR* mtrr allocation failed (-22)

My xorg.conf is as below:

Code:

Section "dri"
    Mode 0666
EndSection

Section "Module"
    Load        "dbe"  # Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"  # don't initialise the DGA extension
    EndSubSection
    Load        "type1"
    Load        "freetype"
    Load        "glx"  # libglx.a
    Load        "dri"  # libdri.a

EndSection

Section "Files"
    RgbPath "/usr/X11R6/lib/X11/rgb"
    FontPath  "/usr/X11R6/lib/X11/fonts/local/"
    FontPath  "/usr/X11R6/lib/X11/fonts/TTF/"
    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/Speedo/"
    FontPath  "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath  "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "ServerFlags"
EndSection

Section "InputDevice"
    Identifier "Keyboard1"
    Driver "kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbRules" "xfree86"
    Option "XkbModel" "pc104"
    Option "XkbLayout" "gb"
EndSection

Section "InputDevice"
    Identifier "Mouse1"
    Driver "mouse"
    Option "Protocol"  "ImPS/2"
    Option "ZAxisMapping"  "4 5"
    Option "Device"    "/dev/mouse"
    Option "Emulate3Buttons"
EndSection

Section "Monitor"
    Identifier  "Monitor0"
    HorizSync  30.0 - 69.0
    VertRefresh 48.0-125.0
    Option "DPMS"
EndSection

Section "Device"
    Identifier                          "ATI Graphics Adapter"
    Driver                              "fglrx"
    Option "no_accel"                  "no"
    Option "no_dri"                    "no"
    Option "mtrr"                      "off" # disable DRI mtrr mapper, driver has its own code for mtrr
    Option "DesktopSetup"              "0x00000000"
    Option "MonitorLayout"              "AUTO, AUTO"
    Option "IgnoreEDID"                "off"
    Option "HSync2"                    "unspecified"
    Option "VRefresh2"                  "unspecified"
    Option "ScreenOverlap"              "0"
    Option "NoTV"                      "yes"   
    Option "TVStandard"                "NTSC-M"   
    Option "TVHSizeAdj"                "0"   
    Option "TVVSizeAdj"                "0"   
    Option "TVHPosAdj"                  "0"   
    Option "TVVPosAdj"                  "0"   
    Option "TVHStartAdj"                "0"   
    Option "TVColorAdj"                "0"   
    Option "GammaCorrectionI"          "0x00000000"
    Option "GammaCorrectionII"          "0x00000000"
    Option "Capabilities"              "0x00000000"
    Option "VideoOverlay"              "on"
    Option "OpenGLOverlay"              "off"
    Option "CenterMode"                "off"
    Option "PseudoColorVisuals"        "off"
    Option "Stereo"                    "off"
    Option "StereoSyncEnable"          "1"
    Option "FSAAEnable"                "no"
    Option "FSAAScale"                  "1"
    Option "FSAADisableGamma"          "no"
    Option "FSAACustomizeMSPos"        "no"
    Option "FSAAMSPosX0"                "0.000000"
    Option "FSAAMSPosY0"                "0.000000"
    Option "FSAAMSPosX1"                "0.000000"
    Option "FSAAMSPosY1"                "0.000000"
    Option "FSAAMSPosX2"                "0.000000"
    Option "FSAAMSPosY2"                "0.000000"
    Option "FSAAMSPosX3"                "0.000000"
    Option "FSAAMSPosY3"                "0.000000"
    Option "FSAAMSPosX4"                "0.000000"
    Option "FSAAMSPosY4"                "0.000000"
    Option "FSAAMSPosX5"                "0.000000"
    Option "FSAAMSPosY5"                "0.000000"
    Option "UseFastTLS"                "0"
    Option "BlockSignalsOnLock"        "on"
    Option "UseInternalAGPGART"        "yes"
    Option "ForceGenericCPU"            "no"
    BusID "PCI:1:0:0"    # vendor=1002, device=5b60
    Screen 0
EndSection

Section "Screen"
    Identifier  "Screen0"
    Device      "ATI Graphics Adapter"
    Monitor    "Monitor0"
    DefaultDepth 24
    Subsection "Display"
        Depth      24
        Modes      "1400x1050" "1280x1024" "1280x960" "1024x768" "800x600" "640x480"
        ViewPort    0 0  # initial origin if mode is smaller than desktop
    EndSubsection
EndSection

Section "ServerLayout"
    Screen "Screen0"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

tia

Wartz 03-28-2005 06:22 AM

I dont see your graphics device in xorg. It should look something like this.
Code:

Section "Device"
    Identifier  "Radeon"
    Driver      "fglrx"
EndSection

Personally I never did get the ATI drivers working until I found this slackpack of the drivers at linuxpackages.net. Once I installed that, I had 3d accel.

http://www.linuxpackages.net/pkg_details.php?id=5807

resaguk 03-28-2005 07:18 AM

Quote:

I dont see your graphics device in xorg.
Look again - it's there, just below the monitor section...

Code:


Section "Monitor"
    Identifier  "Monitor0"
    HorizSync  30.0 - 69.0
    VertRefresh 48.0-125.0
    Option "DPMS"
EndSection

Section "Device"
    Identifier                          "ATI Graphics Adapter"
    Driver                              "fglrx"
    Option "no_accel"                  "no"
    Option "no_dri"                    "no"
    Option "mtrr"                      "off" # disable DRI mtrr mapper, driver has its own code for mtrr
    Option "DesktopSetup"              "0x00000000"
    Option "MonitorLayout"              "AUTO, AUTO"
    Option "IgnoreEDID"                "off"

etc...

From what I can find everything seems ok apart from the mtrr allocation error but nobody seems to have a surefire fix for it (unless my Googling isn't up to scratch).

egag 03-28-2005 07:44 AM

you could try to change...
---------
Option "UseInternalAGPGART" "yes"
---------

to "no "

then you'll use the agpgart that comes with the kernel.
( it's better )
make sure agpgart is compiled as a module and loaded before X starts.

egag

resaguk 03-28-2005 08:49 AM

Hmmm,

Code:

iain@iains:~$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: Brian Paul
OpenGL renderer string: Mesa X11
OpenGL version string: 1.5 Mesa 6.2.1

iain@iains:~$ cat /etc/X11/xorg.conf | grep Use
    Option "UseFastTLS"                "0"
    Option "UseInternalAGPGART"        "no"
iain@iains:~$ fgl_glxgears
97 frames in 5.0 seconds = 19.400 FPS
104 frames in 5.0 seconds = 20.800 FPS
108 frames in 5.0 seconds = 21.600 FPS

That doesn't seem to help either...

[CODE]
root@iains:/home/iain# modprobe agpgart
/lib/modules/2.4.29/kernel/drivers/char/agp/agpgart.o.gz: init_module: No such device
/lib/modules/2.4.29/kernel/drivers/char/agp/agpgart.o.gz: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.29/kernel/drivers/char/agp/agpgart.o.gz: insmod /lib/modules/2.4.29/kernel/drivers/char/agp/agpgart.o.gz failed
/lib/modules/2.4.29/kernel/drivers/char/agp/agpgart.o.gz: insmod agpgart failed
root@iains:/home/iain# dmesg | grep -i agpgart
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 438M
agpgart: no supported devices found.
/CODE]

Which kind of makes sense - I should have said before that the display adaptor is a Radeon X300 (PCI-X) card.

resaguk 03-28-2005 09:31 AM

Ok, I've now installed the package from LinuxPackages (which seems to just automate the steps taken when building from the ATI package)

The results:

Code:

iain@iains:~$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: Brian Paul
OpenGL renderer string: Mesa X11
OpenGL version string: 1.5 Mesa 6.2.1

iain@iains:~$ fgl_glxgears
96 frames in 5.0 seconds = 19.200 FPS
108 frames in 5.0 seconds = 21.600 FPS
114 frames in 5.0 seconds = 22.800 FPS
112 frames in 5.0 seconds = 22.400 FPS
XIO:  fatal IO error 104 (Connection reset by peer) on X server ":0.0"
      after 1613 requests (1611 known processed) with 0 events remaining.

So, no change.

Any other ideas please?

egag 03-28-2005 10:09 AM

here they say you should use a 2.6.xxx kernel.

http://www.linuxforum.com/forums/ind...0&#entry580584

egag

resaguk 03-28-2005 10:44 AM

Hmmm, interesting, because ATI say:

Quote:

Before attempting to install the ATI Proprietary Linux driver, the following software must be installed:

POSIX Shared Memory (/dev/shm) support is required for 3D apps
glibc version 2.2 or 2.3
Linux kernel 2.4 or higher
XFree86 version 4.1, 4.2, or 4.3
Oh, I have

Code:

tmpfs            /dev/shm        tmpfs      defaults        0  0
In my fstab to take care of the shared memory requirement.

I guess I'll try a new kernel anyway. After all, it is Easter!


All times are GMT -5. The time now is 10:24 AM.