Announcement

Collapse
No announcement yet.

Installing latest Open Source ATI drivers under Ubuntu 8.04

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #61
    Originally posted by freetime View Post
    I've been using these instructions for the ati driver and it's been working great.

    Today, I installed the pending updates on this Hardy machine and the kernel was updated to 2.6.24-19. I rebuilt the drm module (using "easy" installer) and even went through all the steps again.

    Now my video is almost too slow to use -- with a single xterm running top just moving it shows %85 cpu usage for xorg. glxgears is about 850fps.

    I'm not seeing anything obvious in:
    http://hank.org/Xorg.0.log

    My config is http://hank.org/xorg.conf


    I have a FireGL 5250 on a T60p thinkpad. Again, was working great before (and have been though one kernel update where rebuilding the drm modules was all I needed to do. No I can hardly drag windows.

    Can anyone offer suggestions to get me working again?

    Thanks,
    You should run the module installer after the reboot with the new kernel and then reboot another time.

    Comment


    • #62
      You reboot more often that you do when you use Win

      Comment


      • #63
        Originally posted by oibaf View Post
        You should run the module installer after the reboot with the new kernel and then reboot another time.
        Sorry, I should have included more details. I did reboot -- multiple times. After both building just the drm modules and then again after following all the steps from the first post of this thread.

        UPDATE: When I disabled the AccelMethod EXA then the extreme slowness went away:

        Code:
        Section "Device"
        	Identifier  "FireGL"
        	Driver      "ati"
        #	Option          "AccelMethod"   "EXA"
        	Option		"DVI-0"	"External"
        	Option		"VGA-0"	"External"
        	Option		"LVDS"	"Panel"
        	
        EndSection
        Does that give any clues what might be causing the problem?



        I'm sure I'm missing something obvious. Was there anything in my Xorg.0.log file that indicated what might be the problem?

        What can I check to make sure all the modules are getting installed correctly and that xorg is using the correct parts? Tough part of debugging this is not knowing how all the parts work together and how to check that they are all in use.

        Thanks,


        (II) LoadModule: "dri"
        (II) Loading /usr/lib/xorg/modules/extensions//libdri.so
        (II) Module dri: vendor="X.Org Foundation"
        compiled for 1.4.0.90, module version = 1.0.0
        ABI class: X.Org Server Extension, version 0.3
        (II) Loading extension XFree86-DRI
        (II) LoadModule: "ati"
        (II) Loading /usr/lib/xorg/modules/drivers//ati_drv.so
        (II) Module ati: vendor="X.Org Foundation"
        compiled for 1.4.0.90, module version = 6.8.191
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 2.0
        (II) LoadModule: "radeon"
        (II) Loading /usr/lib/xorg/modules/drivers//radeon_drv.so
        (II) Module radeon: vendor="X.Org Foundation"
        compiled for 1.4.0.90, module version = 4.3.0
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 2.0
        Last edited by freetime; 06-21-2008, 09:58 AM.

        Comment


        • #64
          Thanks so much Tormod! Now I have 3D for my X1250 using radeon (ati)! Woooh. Seems stable enough.

          You may want to add something like this to your script:

          Code:
          SS=/etc/apt/sources.list
          #cp -a $SS $SS.bak
          
          NUM=0
          BAK=$SS.bak
          while [ -e $BAK ]; do
          	 BAK=$SS.bak
          	 BAK=$BAK.$NUM
          	 NUM=$((NUM+1))
          done
          cp -a $SS $BAK
          If it runs into a hitch on the first run, it won't obliterate the original sources.list on subsequent runs.

          Comment


          • #65
            Originally posted by freetime View Post
            I'm not seeing anything obvious in:
            http://hank.org/Xorg.0.log
            I can see that you didn't upgrade the xserver to 1.5... That will probably fix it.

            Comment


            • #66
              Originally posted by izm99 View Post
              You may want to add something like this to your script:
              Thanks izm99, I will add a little check to not overwrite the backup.

              Comment


              • #67
                With the latest libgl1-mesa-dri 7.1.0~git20080704.e187627, I get the following error in Xorg.0.log and Xserver fails to start:

                Code:
                (EE) AIGLX error: dlopen of /usr/lib/dri/r200_dri.so failed (/usr/lib/dri/r200_dri.so: undefined symbol: _glapi_tls_Context)
                (EE) AIGLX: reverting to software rendering
                (EE) AIGLX error: dlopen of /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: undefined symbol: _glapi_tls_Context)
                
                Fatal server error:
                GLX: could not load software renderer
                I've read (http://forums.gentoo.org/viewtopic-t...light-xgl.html) that this is probably because Mesa is built with tls (USE=nptl) but xorg-server / xgl is not.

                Comment


                • #68
                  Originally posted by the_olo View Post
                  With the latest libgl1-mesa-dri 7.1.0~git20080704.e187627, I get the following error in Xorg.0.log and Xserver fails to start:
                  Thanks for reporting this and the hint to the solution. Seems like I *cough* forgot to test this build.

                  It has now been fixed in new packages.

                  BTW, testing this, I discovered an issue with a new input policy in the xserver: mouse and keyboard doesn't work unless I add this to xorg.conf:
                  Code:
                  Section "ServerFlags"
                          Option "AllowEmptyInput" "false"
                  EndSection

                  Comment


                  • #69
                    Originally posted by tormod View Post
                    Thanks for reporting this and the hint to the solution. Seems like I *cough* forgot to test this build.

                    It has now been fixed in new packages.

                    BTW, testing this, I discovered an issue with a new input policy in the xserver: mouse and keyboard doesn't work unless I add this to xorg.conf:
                    Code:
                    Section "ServerFlags"
                            Option "AllowEmptyInput" "false"
                    EndSection
                    Thanks for fixing xserver, I had to revert to 1.4 over the weekend. I'm now back with 1.5 which happens to be much faster than the AMD binary driver on my RS400/Xpress 200. The updated xserver seems to have fixed the only problem I noticed which was the user switch applet that didn' work reporting xserver could'nt start.

                    AIGLX flies with smoother line scrolling with Firefox. F-Spot Screensaver offers better OpenGL transitions. Xv seems to be working on the Video playback side. All this with a lower reported FPS from GLXGEARS 1100 FPS compared to 1800 FPS with AMD Binary. Enabling EXA makes a big difference.

                    Cheers

                    Comment


                    • #70
                      I decided to take a shot with ati-radeon.

                      I'm really glad to see video playback actually working, no flickering.

                      I can even playback some 720p movies without a/v sync problems. (Sapphire AGP X1600 pro)

                      But some others do. Especially those with open scenes eg. like nature shots...

                      glxgears hangs my system. Always.

                      I noticed when using multiple windows, compiz effects seems to lag.

                      Some random freezes while watching movies.

                      here is my Xorg.0.log:

                      http://pastebin.com/m7cfb24b8

                      I really want to keep this driver from now on.

                      PS: I just noticed that my AGP X1600 Pro is running at 4x.

                      [ 24.023286] Linux agpgart interface v0.102
                      [ 32.327080] agpgart: Detected VIA PT880 Ultra chipset
                      [ 32.353007] agpgart: AGP aperture is 512M @ 0x80000000
                      [ 49.502635] agpgart: Found an AGP 3.5 compliant device at 0000:00:00.0.
                      [ 49.502851] agpgart: Putting AGP V3 device at 0000:00:00.0 into 4x mode
                      [ 49.503086] agpgart: Putting AGP V3 device at 0000:01:00.0 into 4x mode
                      [ 69.288550] agpgart: Found an AGP 3.5 compliant device at 0000:00:00.0.
                      [ 69.288584] agpgart: Putting AGP V3 device at 0000:00:00.0 into 4x mode
                      [ 69.288693] agpgart: Putting AGP V3 device at 0000:01:00.0 into 4x mode


                      Anyone?
                      Last edited by hobbes; 07-09-2008, 06:47 PM. Reason: AGP x1600pro running at 4x

                      Comment


                      • #71
                        Hi Oibaf,

                        I have a Dell 600 with Radeon 9000 ( R200 ).
                        Since follwing the manipulations proposed. i changed from almost 900 glxgears to:
                        980 frames in 5.1 seconds = 191.703 FPS
                        960 frames in 5.1 seconds = 187.907 FPS

                        A quicktest of glxinfo:
                        glxinfo | grep 'direct rendering'
                        direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)

                        I see in the logs that the R200 microcode is loaded.
                        My Xorg session looks like this:
                        Section "Device"
                        Identifier "Configured Video Device"
                        Driver "ati"
                        #Option "AccelMethod" "EXA"
                        Option "AccelMethod" "XAA"
                        EndSection

                        There is two accelmethods just because i tried both to see if something changes but no results.

                        Do you have any idea?
                        Ps: fglrx is not installed.

                        Comment


                        • #72
                          Originally posted by benitoa View Post
                          Hi Oibaf,

                          I have a Dell 600 with Radeon 9000 ( R200 ).
                          Since follwing the manipulations proposed. i changed from almost 900 glxgears to:
                          980 frames in 5.1 seconds = 191.703 FPS
                          960 frames in 5.1 seconds = 187.907 FPS

                          A quicktest of glxinfo:
                          glxinfo | grep 'direct rendering'
                          direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)

                          I see in the logs that the R200 microcode is loaded.
                          My Xorg session looks like this:
                          Section "Device"
                          Identifier "Configured Video Device"
                          Driver "ati"
                          #Option "AccelMethod" "EXA"
                          Option "AccelMethod" "XAA"
                          EndSection

                          There is two accelmethods just because i tried both to see if something changes but no results.

                          Do you have any idea?
                          Ps: fglrx is not installed.
                          As the above message suggested try running:
                          Code:
                          LIBGL_DEBUG=verbose glxinfo
                          to see why it's not being enabled. Also check your Xorg log as that may give you further insight.

                          Comment


                          • #73
                            Originally posted by agd5f View Post
                            As the above message suggested try running:
                            Code:
                            LIBGL_DEBUG=verbose glxinfo
                            to see why it's not being enabled. Also check your Xorg log as that may give you further insight.
                            Hi here it is:
                            "LIBGL_DEBUG=verbose glxinfo
                            name of display: :0.0
                            libGL: XF86DRIGetClientDriverName: 5.3.0 r200 (screen 0)
                            libGL: OpenDriver: trying /usr/lib/dri/r200_dri.so
                            libGL error: dlopen /usr/lib/dri/r200_dri.so failed (/usr/lib/dri/r200_dri.so: undefined symbol: _glapi_tls_Context)
                            libGL error: unable to load driver: r200_dri.so

                            display: :0 screen: 0
                            direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
                            server glx vendor string: SGI
                            server glx version string: 1.2
                            server glx extensions:"


                            This is my Xorg log too:
                            (==) RADEON(0): Backing store disabled
                            (II) RADEON(0): [DRI] installation complete
                            (II) RADEON(0): [drm] Added 32 65536 byte vertex/indirect buffers
                            (II) RADEON(0): [drm] Mapped 32 vertex/indirect buffers
                            (II) RADEON(0): [drm] dma control initialized, using IRQ 11
                            (II) RADEON(0): [drm] Initialized kernel GART heap manager, 5111808
                            (WW) RADEON(0): DRI init changed memory map, adjusting ...
                            (WW) RADEON(0): MC_FB_LOCATION was: 0xebffe800 is: 0xebffe800
                            (WW) RADEON(0): MC_AGP_LOCATION was: 0xffffffc0 is: 0xe07fe000
                            (II) RADEON(0): RADEONRestoreMemMapRegisters() :
                            (II) RADEON(0): MC_FB_LOCATION : 0xebffe800 0xebffe800
                            (II) RADEON(0): MC_AGP_LOCATION : 0xe07fe000
                            (II) RADEON(0): Direct rendering enabled
                            (II) RADEON(0): Render acceleration enabled
                            (II) RADEON(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
                            Scanline Image Writes
                            Setting up tile and stipple cache:
                            32 128x128 slots
                            32 256x256 slots
                            14 512x512 slots
                            (II) RADEON(0): Acceleration enabled
                            (II) RADEON(0): DPMS enabled
                            (==) RADEON(0): Silken mouse enabled
                            (II) RADEON(0): Using hardware cursor 0 (scanline 1202)
                            (II) RADEON(0): Using hardware cursor 1 (scanline 1204)
                            (II) RADEON(0): Largest offscreen area available: 1408 x 4749
                            (II) RADEON(0): No video input capabilities detected and no information is provided - disabling multimedia i2c
                            (II) Loading sub module "theatre_detect"
                            (II) LoadModule: "theatre_detect"
                            (II) Loading /usr/lib/xorg/modules/multimedia//theatre_detect_drv.so
                            (II) Module theatre_detect: vendor="X.Org Foundation"
                            compiled for 1.4.0.90, module version = 1.0.0
                            ABI class: X.Org Video Driver, version 2.0
                            (II) RADEON(0): no multimedia table present, disabling Rage Theatre.
                            (II) RADEON(0): Set up overlay video
                            (II) RADEON(0): Textured video disabled on RV250 due to HW bug
                            (II) RADEON(0): RandR 1.2 enabled, ignore the following RandR disabled message.
                            (--) RandR disabled
                            (II) Initializing built-in extension MIT-SHM
                            (II) Initializing built-in extension XInputExtension
                            (II) Initializing built-in extension XTEST
                            (II) Initializing built-in extension XKEYBOARD
                            (II) Initializing built-in extension XC-APPGROUP
                            (II) Initializing built-in extension XAccessControlExtension
                            (II) Initializing built-in extension SECURITY
                            (II) Initializing built-in extension XINERAMA
                            (II) Initializing built-in extension XFIXES
                            (II) Initializing built-in extension XFree86-Bigfont
                            (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) Initializing built-in extension XEVIE
                            drmOpenDevice: node name is /dev/dri/card0
                            drmOpenDevice: open result is 8, (OK)
                            drmOpenByBusid: Searching for BusID pci:0000:01:00.0
                            drmOpenDevice: node name is /dev/dri/card0
                            drmOpenDevice: open result is 8, (OK)
                            drmOpenByBusid: drmOpenMinor returns 8
                            drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
                            (EE) AIGLX error: dlopen of /usr/lib/dri/r200_dri.so failed (/usr/lib/dri/r200_dri.so: undefined symbol: _glapi_tls_Context)
                            (EE) AIGLX: reverting to software rendering
                            (II) Loading sub module "GLcore"
                            (II) LoadModule: "GLcore"
                            (II) Loading /usr/lib/xorg/modules/extensions//libGLcore.so
                            (II) Module GLcore: vendor="X.Org Foundation"
                            compiled for 1.4.0.90, module version = 1.0.0
                            ABI class: X.Org Server Extension, version 0.3
                            (II) GLX: Initialized MESA-PROXY GL provider for screen 0
                            (II) RADEON(0): Setting screen physical size to 370 x 277
                            Atom 4, CARD32 4, unsigned long 4
                            [.....]



                            benoit@mintlab ~ $ locate libGL.so
                            /usr/lib/libGL.so
                            /usr/lib/libGL.so.1
                            /usr/lib/libGL.so.1.2
                            /usr/lib/fglrx/libGL.so.1.2.xlibmesa
                            /usr/lib/fglrx/libGL.so.1.xlibmesa

                            benoit@mintlab ~ $ ldd /usr/X11R6/bin/glxinfo
                            linux-gate.so.1 => (0xb7fdd000)
                            libGL.so.1 => /usr/lib/libGL.so.1 (0xb7f52000)
                            libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7f2d000)
                            libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7ddd000)
                            libX11.so.6 => /usr/lib/libX11.so.6 (0xb7cf6000)
                            libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7cde000)
                            libXext.so.6 => /usr/lib/libXext.so.6 (0xb7cd0000)
                            libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7cc5000)
                            /lib/ld-linux.so.2 (0xb7fde000)
                            libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb7cc2000)
                            libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7caa000)
                            libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7ca6000)
                            libXau.so.6 => /usr/lib/libXau.so.6 (0xb7ca3000)
                            libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7c9e000)

                            $ls -al /usr/lib/libGL.*
                            benoit@mintlab ~ $ ls -al /usr/lib/libGL*
                            lrwxrwxrwx 1 root root 16 2008-06-22 01:33 /usr/lib/libGLEW.so.1.5 -> libGLEW.so.1.5.0
                            -rw-r--r-- 1 root root 225068 2008-02-11 17:48 /usr/lib/libGLEW.so.1.5.0
                            lrwxrwxrwx 1 root root 10 2008-07-09 23:38 /usr/lib/libGL.so -> libGL.so.1
                            lrwxrwxrwx 1 root root 12 2008-07-04 23:44 /usr/lib/libGL.so.1 -> libGL.so.1.2
                            -rw-r--r-- 1 root root 478188 2008-06-11 11:51 /usr/lib/libGL.so.1.2
                            lrwxrwxrwx 1 root root 20 2008-07-09 23:38 /usr/lib/libGLU.so.1 -> libGLU.so.1.3.070100
                            -rw-r--r-- 1 root root 532520 2008-07-04 19:38 /usr/lib/libGLU.so.1.3.070100

                            benoit@mintlab ~ $ ls -al /usr/lib/dri/r*
                            -rw-r--r-- 1 root root 2132308 2008-07-04 19:38 /usr/lib/dri/r128_dri.so
                            -rw-r--r-- 1 root root 2199892 2008-07-04 19:38 /usr/lib/dri/r200_dri.so
                            -rw-r--r-- 1 root root 2233268 2008-07-04 19:38 /usr/lib/dri/r300_dri.so
                            -rw-r--r-- 1 root root 2167928 2008-07-04 19:38 /usr/lib/dri/radeon_dri.so

                            I checked and i don't have installed fglrx.
                            I read those 2 threads but it is not gving an answer to me really.
                            https://launchpad.net/ubuntu/+source/mesa/+bug/48029
                            https://answers.launchpad.net/ubuntu/+question/32636


                            Hope this helps.
                            Last edited by benitoa; 07-10-2008, 02:42 AM.

                            Comment


                            • #74
                              Originally posted by benitoa View Post
                              libGL error: dlopen /usr/lib/dri/r200_dri.so failed (/usr/lib/dri/r200_dri.so: undefined symbol: _glapi_tls_Context)
                              Just update your packages. This was discussed a couple of posts ago in this very thread.

                              Comment


                              • #75
                                GrŁezi

                                Tomrod I have the most recent version of mesa and I still get that error..

                                Comment

                                Working...
                                X