[Bug 230300] New: Xorg & ATI DRI reverts to s/w emulation
https://bugzilla.novell.com/show_bug.cgi?id=230300 Summary: Xorg & ATI DRI reverts to s/w emulation Product: openSUSE 10.2 Version: Final Platform: i586 OS/Version: Linux Status: NEW Severity: Major Priority: P5 - None Component: X.Org AssignedTo: sndirsch@novell.com ReportedBy: roeland@linux-it.nl QAContact: sndirsch@novell.com Used the proposed ATI closed source driver and ran SAX to create a new configuration for Xorg. I found out that the glxgear is very slow and the system reverts to the OpenGL mesa. The Xorg.o.log states that the DRI module is not loaded. Similar entries are found using google all with the same result. I'll add the requested files next hour like the logfiles. the hardware is an Uniwill 258SAx also known as an Fujitsu Siemens Amilo D1840W. The videocard is an ATI mobility radeon 9600 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |roeland@linux-it.nl ------- Comment #1 from sndirsch@novell.com 2006-12-21 12:03 MST ------- Could you attach /etc/X11/xorg.conf and /var/log/Xorg.0.log? Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 roeland@linux-it.nl changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|roeland@linux-it.nl | ------- Comment #2 from roeland@linux-it.nl 2006-12-21 12:33 MST ------- The following logfiles and config files are attached. first.txt contains the logfile without disabling AIXGL It shows (EE) AIGLX error: dlsym for __driCreateNewScreen_20050727 failed (/usr/lib/dri/fglrx_dri.so: undefined symbol: __driCreateNewScreen_20050727) (EE) AIGLX: reverting to software rendering For the sake of testing, I added the following line in xorg.conf in the ServerFlags section: Option "AIGLX" "off" and the error disappears as shown in second.txt still, no accelerated X. Attached is the xorg.conf file without the last serverflag added. (attachments will show up in minutes) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 ------- Comment #3 from roeland@linux-it.nl 2006-12-21 12:34 MST ------- Created an attachment (id=110741) --> (https://bugzilla.novell.com/attachment.cgi?id=110741&action=view) the first Xorg.0.log file -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 ------- Comment #4 from roeland@linux-it.nl 2006-12-21 12:34 MST ------- Created an attachment (id=110742) --> (https://bugzilla.novell.com/attachment.cgi?id=110742&action=view) second file when AIXGL is set off. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 ------- Comment #5 from roeland@linux-it.nl 2006-12-21 12:35 MST ------- Created an attachment (id=110743) --> (https://bugzilla.novell.com/attachment.cgi?id=110743&action=view) xorg.conf as it runs now. will show the EE lines in the first.txt log -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #110743|application/octet-stream |text/plain mime type| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |roeland@linux-it.nl ------- Comment #6 from sndirsch@novell.com 2006-12-21 12:40 MST ------- Ignore the AIGLX errors. AIGLX will not work with the fglrx driver anyway. What's the output of glxinfo? Did you enable Xgl/compiz? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 roeland@linux-it.nl changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|roeland@linux-it.nl | ------- Comment #7 from roeland@linux-it.nl 2006-12-21 12:51 MST ------- originally, the laptop was Xgl/compiz enabled under 10.1 and that worked fine. With 10.2 I found out that switching desktops was taking approx 15 seconds as fglrx was not loaded. I disabled compiz/Xgl as it also causedweird problems like no window controls (resize, close etc) as well as unreadable terminal screens. glxinfo added as attachment. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 ------- Comment #8 from roeland@linux-it.nl 2006-12-21 12:52 MST ------- Created an attachment (id=110746) --> (https://bugzilla.novell.com/attachment.cgi?id=110746&action=view) glxinfo output ran as root -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #110746|application/octet-stream |text/plain mime type| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |roeland@linux-it.nl ------- Comment #9 from sndirsch@novell.com 2006-12-21 12:59 MST -------
direct rendering: No Hmm. What's the output of
LIBGL_DEBUG=1 glxinfo 2>&1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 ------- Comment #10 from roeland@linux-it.nl 2006-12-21 13:18 MST ------- Created an attachment (id=110750) --> (https://bugzilla.novell.com/attachment.cgi?id=110750&action=view) as requested, the output. libGL error: dlopen /usr/X11R6/lib/modules/dri/fglrx_dri.so failed (/usr/X11R6/ lib/modules/dri/fglrx_dri.so: cannot open shared object file: No such file or d irectory) libGL error: unable to find driver: fglrx_dri.so libGL error: dlopen /usr/X11R6/lib/modules/dri/fglrx_dri.so failed (/usr/X11R6/ lib/modules/dri/fglrx_dri.so: cannot open shared object file: No such file or d irectory) libGL error: unable to find driver: fglrx_dri.so probably hurts.... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 roeland@linux-it.nl changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #110750|application/octet-stream |text/plain mime type| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 ------- Comment #11 from roeland@linux-it.nl 2006-12-21 13:38 MST ------- I found the file in /usr/lib/dri which is not included in /etc/ld/so.conf I'll add it to the config file and rerun ldconfig. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 ------- Comment #12 from roeland@linux-it.nl 2006-12-21 13:47 MST ------- hmm, I should read the error better. this ifs of no use of course. will experiment with the error in the path... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 roeland@linux-it.nl changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|roeland@linux-it.nl | ------- Comment #13 from roeland@linux-it.nl 2006-12-21 13:57 MST ------- ok. what I did is: /usr/X11R6/lib/modules/dri/ moved to /usr/X11R6/lib/modules/dri.old as it doesn't contain any useful files except a dri directory with a readme (which I'll read later). I then linked /usr/lib/dri to this place and the missing module is found. fglrxinfo now will report: display: :0.0 screen: 0 OpenGL vendor string: ATI Technologies Inc. OpenGL renderer string: MOBILITY RADEON 9600 Generic OpenGL version string: 2.0.6234 (8.32.5) thanks for the help! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |roeland@linux-it.nl ------- Comment #14 from sndirsch@novell.com 2006-12-21 14:13 MST ------- Ok. Sure, you've created and installed the RPM for openSUSE 10.2? http://www.suse.de/~sndirsch/ati-installer-HOWTO.html
From the %post script of this RPM:
[...] # ATI libGL still uses the old X11R6 path :-( mkdir -p usr/X11R6/%{_lib}/modules ln -snf /usr/%{_lib}/dri usr/X11R6/%{_lib}/modules/dri -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 roeland@linux-it.nl changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|roeland@linux-it.nl | ------- Comment #15 from roeland@linux-it.nl 2006-12-21 14:35 MST ------- Yes, I used the latest & greatest package, and manually installed it (and created the rpm package from the *.run file). isn't a forward slash missing in the usr path causing the symlink to fail ? ln -snf /usr/%{_lib}/dri /usr/X11R6/%{_lib}/modules/dri ^ I think that causes the link not to be made. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 andreas.hanke@gmx-topmail.de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andreas.hanke@gmx-topmail.de ------- Comment #16 from andreas.hanke@gmx-topmail.de 2006-12-21 14:52 MST ------- No, rpm scriptlets are executed with "/" as the current directory, so it should work unless something else in that scriptlet changed the cwd. If the scriptlet failed to create the symlink, it must have a different reason. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME ------- Comment #17 from sndirsch@novell.com 2006-12-21 15:28 MST ------- (In reply to comment #16)
No, rpm scriptlets are executed with "/" as the current directory, so it should work unless something else in that scriptlet changed the cwd. Yes, that's correct.
If the scriptlet failed to create the symlink, it must have a different reason. Indeed. I can't reproduce this issue.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 ------- Comment #18 from andreas.hanke@gmx-topmail.de 2006-12-21 15:29 MST ------- One possible reason why it might have failed is that usr/X11R6/%{_lib}/modules/dri already existed as a real directory. roeland: Is this a fresh openSUSE 10.2 installation or did you upgrade from a previous release? Do you remember what usr/X11R6/%{_lib}/modules/dri was at the moment you installed fglrx.rpm (directory, symlink to directory, symlink to file, regular file, nothing...)? If this was an upgrade, it might explain why usr/X11R6/%{_lib}/modules/dri already existed (because rpm doesn't remove it on upgrade if there are unpackaged files in it) and the %post script of fglrx.rpm does not handle this case. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 ------- Comment #19 from roeland@linux-it.nl 2006-12-22 01:37 MST ------- it indeed is an upgrade from 10.1. I don't remember what it was at the moment I installed the fglrx rpm (with -Uvh). I know that I have several times installed and removed the rpm and it seems to never have make that symlink correctly. I have renamed the /usr/X11R6/lib/modules/dri to dri.old and manually created the symlink. inside the dri.old there is a symlink though: taplop:/usr/X11R6/lib/modules/dri.old # ls -l total 0 lrwxrwxrwx 1 root root 12 Dec 14 09:32 dri -> /usr/lib/dri so it seems one level too deep. dec 14 was the first shot at the fglrx part thx for the tip on the scriplet's current directory. I reverted to novell's bugzilla as it seems, according to google, that more people have reversions to the software gl implementation. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | ------- Comment #20 from sndirsch@novell.com 2006-12-22 02:43 MST ------- Oops. Now I remember. The %post of 8.32.5 still uses "ln -s" instead of "ln -snf", so this issue will be fixed in 8.33.x. I'll close this bugreport once 8.33.x has been released. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 ------- Comment #21 from andreas.hanke@gmx-topmail.de 2006-12-22 03:01 MST ------- I just wanted to reopen it, too, but for a different reason: "ln -snf" does not do what you probably think it does. The symlink target really has to be removed (or renamed) first to be sure that the symlink is created where you want to have it. The "-n" option to ln only makes a difference if /usr/X11R6/lib/modules/dri was previously a symlink to a directory, but not if it was a real directory. If it was a real directory, even "ln -snf" will create a symlink inside it instead of replacing it. Besides that, there might be a better solution to this problem than symlinking stuff across the filesystem: The LIBGL_DRIVERS_PATH environment variable. ATI's libGL seems to respect that (at least I can find the string in the libGL.so.1.2 binary; cannot test myself because I don't have ATI hardware). Obvious drawback with using LIBGL_DRIVERS_PATH: It won't work for GL applications that have been run via kdesu (because kdesu uses sudo which in turn resets the complete environment) and it won't work with setuid binaries. Maybe you can experiment with a profile.d script that does something like: export LIBGL_DRIVERS_PATH=/usr/lib64/dri/updates:/usr/lib/dri/updates:/usr/lib64/dri:/usr/lib/dri lib64 _and_ lib are needed for biarch platforms, and of course it should be installed only if needed (i.e., it should be part of fglrx.rpm). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 ------- Comment #22 from andreas.hanke@gmx-topmail.de 2006-12-22 03:16 MST ------- See also: http://www.mail-archive.com/pld-cvs-commit@lists.pld-linux.org/msg62230.html http://www.mail-archive.com/pld-cvs-commit@lists.pld-linux.org/msg62400.html http://forums.gentoo.org/viewtopic-t-327287.html -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
Obvious drawback with using LIBGL_DRIVERS_PATH: It won't work for GL applications that have been run via kdesu (because kdesu uses sudo which in turn resets the complete environment) and it won't work with setuid binaries. We already had this situation by setting LD_LIBRARY_PATH for using the correct
https://bugzilla.novell.com/show_bug.cgi?id=230300 ------- Comment #23 from sndirsch@novell.com 2006-12-22 03:23 MST ------- libGL. Therefore this is not an option. Instead I'll rename the /usr/X11R6/lib/modules/dri directory if it exists. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230300 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #24 from sndirsch@novell.com 2006-12-27 10:38 MST ------- This issue will be fixed with driver release 8.33.x. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com