Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

2.6.20 fglrx Direct rendering

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
User avatar
hash
Posts: 159
Joined: 2007-04-14 05:59
Location: Vancouver, BC, Canada

2.6.20 fglrx Direct rendering

#1 Post by hash »

Wondering if anyone is using the latest fgrlx (ATI drivers) with 2.6.20?

I downloaded the laters ATI drivers from the ATI site (8.35.5), ran it to create .deb's for Debian/unstable. (Since 'sarge' did not install, it said it needed xorg >7.1.99!). Installed those debs.

Had to download a patch
http://darcs.frugalware.org/repos/fruga ... 6.20.patch
to compile the kernel module, Installed it sucessfully,
checked with modprobe.

Some more info (output edited):

>uname -a
Linux scratchy 2.6.20.6070413 #1 PREEMPT Fri Apr 13 13:26:20 PDT 2007 i686 GNU/Linux
>Xorg -version
X Window System Version 7.1.1

>grep WW /var/log/Xorg.0.log
(WW) The directory "/usr/share/fonts/X11/Speedo/" does not exist.
(WW) Ignoring unrecognized extension "AIGLX"
(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
(WW) fglrx: No matching Device section for instance (BusID PCI:1:0:1) found

The last is coz am using a dual head config...

>grep EE /var/log/Xorg.0.log
(EE) AIGLX error: dlsym for __driCreateNewScreen_20050727 failed (/usr/lib/dri/fglrx_dri.so: undefined symbol: __driCreateNewScreen_20050727)
(EE) AIGLX: reverting to software rendering
I think this ^ is not an issue

Now the baffling part: (excerpts from xorg log)
(**) fglrx(0): Option "NoDRI" "no"
(II) fglrx(0): DRI initialization successfull!
(II) fglrx(0): Direct rendering enabled

BUT
>fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.5.1)

and

>glxinfo |grep direct
direct rendering: No
OpenGL renderer string: Mesa GLX Indirect


Can anyone help me out here? have googled to no end, cant seem to find this kinda case.

did I miss anything obvious??

User avatar
hash
Posts: 159
Joined: 2007-04-14 05:59
Location: Vancouver, BC, Canada

#2 Post by hash »

btw, that card is a firegl v7100 (has dual output)
used to get 1000+fps on fgl_glxgears before..

User avatar
rickh
Posts: 3434
Joined: 2006-06-29 02:13
Location: Albuquerque, NM USA

#3 Post by rickh »

I've been told that ATI has no support for kernel 2.6.20. and will not have until their 8.36 drivers.
Debian-Lenny/Sid 32/64
Desktop: Generic Core 2 Duo, EVGA 680i, Nvidia
Laptop: Generic Intel SIS/AC97

john-boro
Posts: 12
Joined: 2006-12-22 14:57

#4 Post by john-boro »

with the patch that the OP mentioned, ati does support 2.6.20. I've got no clue about the specific problem, but maybe you are right in that kernel 2.6.20 is weird with the more complex parts of the ati drivers, eg dual head etc. All I can say is it worked fine with my x1600, but I've only used it in a simple way.

thamarok

#5 Post by thamarok »

john-boro wrote:with the patch that the OP mentioned, ati does support 2.6.20.
How can you tell? The link is for sure an unofficial one:
http://darcs.frugalware.org/repos/fruga ... 6.20.patch

As far as I know, ATI doesn't host its files on Frugalware Linux servers.
Might be interesting for you: The Ubuntu FGLRX packages support 2.6.20.

User avatar
hash
Posts: 159
Joined: 2007-04-14 05:59
Location: Vancouver, BC, Canada

#6 Post by hash »

yeah, Its not official for sure.
But it did get the module to compile ..apprently in a way that doesnt work for me :(

John, you have 3D rendering? maybe you could tell me what you did?

john-boro
Posts: 12
Joined: 2006-12-22 14:57

#7 Post by john-boro »

right. what I did was:

Download the ati driver installer. Try to run it, it runs and exits, and probably shows an error because it can't build the fglrx module.

Go into the directory /lib/modules/fglrx
In here there is a directory called build_mod. Cd into this directory, and copy the patch into it. run 'patch -p5 < [nameofpatch]' and then when it asks you which file to patch, enter firegl_public.c and press enter. It should patch with no errors.

Run ./make.sh from this directory. Then cd .. back into /lib/modules/fglrx. Run ./make_install.sh from this directory. It should run and build the module. You can then 'modprobe fglrx' to load the fglrx module, which will autoload from now on. Use aticonfig as normal to create a working xorg.conf, if you don't have one.

User avatar
hash
Posts: 159
Joined: 2007-04-14 05:59
Location: Vancouver, BC, Canada

#8 Post by hash »

thx john.
Pretty much exactly what I did.

The module compiled (after the patch), loaded and X runs fine with the conf file having 'fglrx' for the driver section.
Even the log files say that 3D rendering should be up
Only glxinfo fails to confirm this, and the gears dont run fast :(

In your case glxinfo confirms that you have 3D rendering?

Just wanted to know if the problem am having is coz
(a)
there is a miss-match in the driver /kernel code which fails to log the error message for the reason that I dont get 3D rendering...
(b)
umm.. something weird thats happening only to me. Which would be the case if you have 3D enabled and working.

User avatar
hash
Posts: 159
Joined: 2007-04-14 05:59
Location: Vancouver, BC, Canada

#9 Post by hash »

just wait for the next ati update..:(
Disclaimer: Any errors/misstakes in spilling, glammer, tact, or fact are transmission errors

User avatar
rickh
Posts: 3434
Joined: 2006-06-29 02:13
Location: Albuquerque, NM USA

#10 Post by rickh »

Did you see Spontan's howto.
Debian-Lenny/Sid 32/64
Desktop: Generic Core 2 Duo, EVGA 680i, Nvidia
Laptop: Generic Intel SIS/AC97

User avatar
hash
Posts: 159
Joined: 2007-04-14 05:59
Location: Vancouver, BC, Canada

#11 Post by hash »

Saw it now. Noticed that the patch was different from what I used, so went through the whole rigmarole using his patch info.

No dice.

If you notice the initial post, I have manged to compile, install and load fglrx.
Some more excerpts from the log file:

Correctly detects my card:
(--) fglrx(0): Chipset: "ATI FireGL V7100" (Chipset = 0x5550)

Load other required things:

(II) Loading sub module "fglrxdrm"
(II) LoadModule: "fglrxdrm"
(II) Loading /usr/lib/xorg/modules/linux/libfglrxdrm.so
(II) Module fglrxdrm: vendor="FireGL - ATI Technologies Inc."
compiled for 7.1.0, module version = 8.35.5
ABI class: X.Org Server Extension, version 0.3
(--) fglrx(0): VideoRAM: 131072 kByte, Type: DDR3

fglrx(0): OpenGL ClientDriverName: "fglrx_dri.so"


more good stuff:

(II) fglrx(0): Name: fglrx
(II) fglrx(0): Version: 8.35.5
(II) fglrx(0): Date: Mar 27 2007
(II) fglrx(0): Desc: ATI FireGL DRM kernel module
(II) fglrx(0): Kernel Module version matches driver.
(II) fglrx(0): Kernel Module Build Time Information:
(II) fglrx(0): Build-Kernel UTS_RELEASE: 2.6.20.6070413
(II) fglrx(0): Build-Kernel MODVERSIONS: yes
(II) fglrx(0): Build-Kernel __SMP__: yes
(II) fglrx(0): Build-Kernel PAGE_SIZE: 0x1000

And finally, understand the dual head config AND supposedly enables direct rendering.

(II) fglrx(0): Initialized in-driver Xinerama extension
(II) fglrx(0): Using XFree86 Acceleration Architecture (XAA)
Screen to screen bit blits
Solid filled rectangles
8x8 mono pattern filled rectangles
Solid Lines
Dashed Lines
Offscreen Pixmaps
Setting up tile and stipple cache:
20 128x128 slots
(II) fglrx(0): Acceleration enabled
(II) fglrx(0): X context handle = 0x1
(II) fglrx(0): [DRI] installation complete
(II) fglrx(0): Direct rendering enabled

And then the error:

(EE) AIGLX error: dlsym for __driCreateNewScreen_20050727 failed (/usr/lib/dri/fglrx_dri.so: undefined symbol: __driCreateNewScreen_20050727)
(EE) AIGLX: reverting to software rendering

Which from my limited understanding (and googling) shouldnt effect output of glxinfo.

And then :(( :
glxinfo|grep direct
direct rendering: No
OpenGL renderer string: Mesa GLX Indirect
Disclaimer: Any errors/misstakes in spilling, glammer, tact, or fact are transmission errors

User avatar
hash
Posts: 159
Joined: 2007-04-14 05:59
Location: Vancouver, BC, Canada

#12 Post by hash »

yaye!

googled some more..and then tried:
>setenv LIBGL_DEBUG verbose
>glxgears

and then realised that it was unable to locate fglrx_dri.so!
a quick locate showed me where it was, copied it over as:

cp /usr/ati/usr/lib/dri/fglrx_dri.so /usr/X11R6/lib/modules/dri/

and now:
>fgl_glxgears
Using GLX_SGIX_pbuffer
5668 frames in 5.0 seconds = 1133.600 FPS
5983 frames in 5.0 seconds = 1196.600 FPS
6342 frames in 5.0 seconds = 1268.400 FPS


muhahahaa :)

:oops: it prolly means I did something wrong initially.
Also wonder why this didnt show up in the log file.. :?:
Disclaimer: Any errors/misstakes in spilling, glammer, tact, or fact are transmission errors

User avatar
rickh
Posts: 3434
Joined: 2006-06-29 02:13
Location: Albuquerque, NM USA

#13 Post by rickh »

You might still be interested in this
Debian-Lenny/Sid 32/64
Desktop: Generic Core 2 Duo, EVGA 680i, Nvidia
Laptop: Generic Intel SIS/AC97

User avatar
rickh
Posts: 3434
Joined: 2006-06-29 02:13
Location: Albuquerque, NM USA

#14 Post by rickh »

ATI has now posted the new drivers ... 8.36.5 ... Working great on my AMD64.
Debian-Lenny/Sid 32/64
Desktop: Generic Core 2 Duo, EVGA 680i, Nvidia
Laptop: Generic Intel SIS/AC97

trey
Posts: 119
Joined: 2005-06-09 17:47

#15 Post by trey »

New ATI drivers... Any support for AIGLX? Not in the release notes... Will there ever be? Why oh why did I ever buy anything ATI (besides being an idiot)? *suffering in agony*

EDIT:

And What is up with the supposed catalyst control panel, where is it?

$ dpkg -c fglrx-amdcccle_8.36.5-1_amd64.deb
drwxr-xr-x root/root 0 2007-04-20 17:00 ./
drwxr-xr-x root/root 0 2007-04-20 16:59 ./usr/
drwxr-xr-x root/root 0 2007-04-20 16:59 ./usr/share/
drwxr-xr-x root/root 0 2007-04-20 16:59 ./usr/share/doc/
drwxr-xr-x root/root 0 2007-04-20 16:59 ./usr/share/doc/fglrx-amdcccle/
-rw-r--r-- root/root 10711 2007-04-20 16:59 ./usr/share/doc/fglrx-amdcccle/copyright


I must have used ./ati* --buildpkg Debian/sid wrong...

ANOTHER EDIT:

Ah, found some hint at http://www.rage3d.com/board/showthread.php?t=33886840

Need ia32-libs maybe.

Post Reply