direct rending problem on savage

Asked by Michele

If I make LIBGL_DEBUG=1 glxinfo >gldebug.txt 2>&1 in terminal nothing happens!!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Michele
Solved:
Last query:
Last reply:
Revision history for this message
Michele (micele) said :
#1

If I make LIBGL_DEBUG=1 glxinfo >gldebug.txt 2>&1 in terminal nothing happens!!

Revision history for this message
Michele (micele) said :
#2

And how can I attach a file??

Revision history for this message
Tormod Volden (tormodvolden) said :
#3

> And how can I attach a file??
Good question! I shouldn't have told you to use this tracker before checking it out better myself. I can't believe it, a support tracker without file attachments! launchpad can really be braindead (but it is improving, I hope).

Please attach the output to the forum again then... The alternative would be to open a bug report (where you certainly can attach files), but that would be a little wrong as well, since I think there is no real bug, just a question of configuration and reinstallation.

Revision history for this message
williamts99 (williamts99) said :
#4

You can copy and paste the information into http://paste.ubuntu-nl.org/

Best Regards,

Williamts99

Revision history for this message
Tormod Volden (tormodvolden) said :
#5

Thanks William. (The thing I don't like about copy/paste is that for instance white-space and line breaks can get messed up and then I can't reliably run "diff" on it afterwards.)

Revision history for this message
Michele (micele) said :
#6

Hi Tormond, and thanks for the quikly answer. As William wrote, I paste my xorg.0.log into http://paste.ubuntu-nl.org/2262/.
One more thing: what about: LIBGL_DEBUG=1 glxinfo >gldebug.txt 2>&1? If I run this command in terminal nothing happens!!
Bye, and thanks for the help!

Revision history for this message
Tormod Volden (tormodvolden) said :
#7

You are supposed to attach (or paste it :) the gldebug.txt file that the command produces.

BTW, your newest Xorg.0.log tells me that you're doing progress: DRI is enabled in the xserver.

Revision history for this message
Tormod Volden (tormodvolden) said :
#8

Try also to reinstall the mesa packages:
sudo apt-get install --reinstall libglu1-mesa libgl1-mesa-glx libgl1-mesa-dri

Revision history for this message
Michele (micele) said :
#9

I paste the gldebug.txt here: http://paste.ubuntu-nl.org/2279/

Now I try to reinstall mesa packages and I'll post the result!
Thanks again for you patient!!!
Michele

Revision history for this message
Michele (micele) said :
#10

Hi Tormod...I reinstalled mesa packages...but nothing changes!!! I really would like to active the 3d acceleration!
I read the gldebug...there is an error oading DRI, is it??
Michele

Revision history for this message
Michele (micele) said :
#11

What do you think, I have to reconfigure xserver using: sudo dpkg-reconfigure xserver-xorg and change some proprierties?

Revision history for this message
Tormod Volden (tormodvolden) said :
#12

No, the xserver is correctly configured as far as I can see. It is the clients (the programs, like glxinfo ) that fail. Reinstall more:
sudo apt-get install --reinstall freeglut3 libglew1 libglut3

Revision history for this message
Tormod Volden (tormodvolden) said :
#13

And one more (let's hope that's all):
sudo apt-get install --reinstall libdrm2

I recommend to avoid installing stuff without using the package manager...

Revision history for this message
Michele (micele) said :
#14

I reinstalled all the packages with the shell (the package libglew1 wasn't already installed!!) I reboot the system but the glxinfo still says direct rending: NO...

Revision history for this message
Tormod Volden (tormodvolden) said :
#15

Maybe glxinfo itself is broken:
sudo apt-get install --reinstall mesa-utils

Can you do the LIBGL_DEBUG thing again to see if anything has changed?

(Just for my own reference, the original thread: http://ubuntuforums.org/showthread.php?t=32043&page=12)

Revision history for this message
Tormod Volden (tormodvolden) said :
#16

I would also like you to do:
 strace -o glxinfo.strace -f -e open /usr/bin/glxinfo
and attach/paste the file glxinfo.strace

Revision history for this message
Michele (micele) said :
#17

I still have the direct rendering:NO
This is my new gldebug.txt: http://paste.ubuntu-nl.org/2298/.

This is the first line:
libGL error: dlopen /usr/X11R6/lib/modules/dri/savage_dri.so failed (/usr/X11R6/lib/modules/dri/savage_dri.so: cannot open shared object file: No such file or directory). Infact the folder /usr/X11R6/lib/modules/dri/ is empty! I have to copy here the file savage_dri.so??

Revision history for this message
Tormod Volden (tormodvolden) said :
#18

No, that directory should not be used. You have some old, broken version of a library that looks in the wrong place. Are you sure you have reinstalled all the packages I asked you about? I have to ask, because sometimes you haven't answered to all my questions, so I am afraid some details are forgotten.

Revision history for this message
Michele (micele) said :
#19

Yes, I reinstall everything!!

This is the glxinfo.strace: http://paste.ubuntu-nl.org/2301/

Revision history for this message
Tormod Volden (tormodvolden) said :
#20

In fact, /usr/X11R6/lib/modules should not exist on a clean system. Can you run:
dpkg -S /usr/X11R6/lib/modules

Revision history for this message
Tormod Volden (tormodvolden) said :
#21

Thanks, I think I've found it: there's a broken library being used instead of the right one:
/usr/X11R6/lib/libGL.so.1
Under /usr/X11R6/lib there should only be an X11 directory and nothing else. Please give me:
 ls -l /usr/X11R6/lib
and
 dpkg -S /usr/X11R6/lib/libGL.so.1

Revision history for this message
Michele (micele) said :
#22

dpkg: /usr/X11R6/lib/modules not found

Revision history for this message
Michele (micele) said :
#23

 ls -l /usr/X11R6/lib:

total 1324
-rwxr-xr-x 1 root root 666468 2006-11-26 14:11 dri-old.libGL.so.1.2
lrwxrwxrwx 1 root root 27 2006-11-26 15:52 libGL.so -> /usr/X11R6/lib/libGL.so.1.2
lrwxrwxrwx 1 root root 27 2006-11-26 15:52 libGL.so.1 -> /usr/X11R6/lib/libGL.so.1.2
-rwxr-xr-x 1 root root 666468 2006-11-26 15:52 libGL.so.1.2
drwxr-xr-x 6 root root 4096 2006-11-26 13:51 modules
-rw-r--r-- 1 root root 68 2006-11-26 15:52 tmp.log
drwxr-xr-x 4 root root 4096 2006-10-25 16:06 X11

dpkg -S /usr/X11R6/lib/libGL.so.1:

dpkg: /usr/X11R6/lib/libGL.so.1 not found

Revision history for this message
Tormod Volden (tormodvolden) said :
#24

It seems like you did something interesting 2006-11-26 :) I think you can safely delete everything except X11 from that directory:
 sudo rm /usr/X11R6/lib/*
 sudo rm -r /usr/X11R6/lib/modules

(you may take a backup of it first if you like)
If dpkg -S says "not found" it means the file doesn't belong to any package.

Revision history for this message
Michele (micele) said :
#25

YES!!!You are the best!!!!!Really, I have no words to thank you!!
GLXINFO SAYS:

libGL warning: 3D driver claims to not support visual 0x42
display: :0 screen: 0
direct rendering: Yes.

So, direct rendering YES!. But what about the libGL warning??
Thank you so much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Revision history for this message
Tormod Volden (tormodvolden) said :
#26

"Mi ha fatto piacere"!
That libGL warning is nothing to care about, it's normal.
What laptop do you have? With your card, I would not be surprised if you get some troubles with X crashing when for instance running 3D screensavers. If you experience this, please mail me, and I can send you some patched packages.

Revision history for this message
Best Michele (micele) said :
#27

Really, I have no words to thank you! You spent a lot of time to help a "stupid" italian guy with his old laptop!!
People like you make world better!!!!!
Thank you again...I hope I don't need more your help :-)))...but now if I'm in trouble I now who call!!!!!!!!!!!!!
I close this "forum"!!!
Bye..and thanks again!!!

Revision history for this message
Cyberlion (rodrigoleao) said :
#28

Hi, I have the same problem... (libGL warning: 3D driver claims to not support visual 0x42) and my xserver crashing when I running one 3D screensaver.

some suggestion?

Revision history for this message
Tormod Volden (tormodvolden) said :
#29

That libGL warning is nothing to care about, it's normal.

Revision history for this message
Tormod Volden (tormodvolden) said :
#30

Cyberlion, can you please try the test package from bug #60288 and see if that helps? Then, try add
 Option "BusType" "PCI"
to the Driver section of your /etc/X11/xorg.conf
Are you using Edgy or Feisty, and which updates?

Revision history for this message
Cyberlion (rodrigoleao) said :
#31

I make this (add the line and install the package) and the problem pparently it was decid. But, one problem apperead: now, when I closed the gnome-session and open again... the glxgear appeas very slow and when I try close the session the system stops.

Revision history for this message
Tormod Volden (tormodvolden) said :
#32

It would be nice if you can test first without that BusType option to see if just the new package helps. Then, try with the BusType option.

If after this, you still have crashes, try add the option:
 Option "DmaMode" "None"

Revision history for this message
Tormod Volden (tormodvolden) said :
#33

If the test package helps (if only a little bit) please make a comment about it in bug #60288. If enough people report that it helps, the fix may get into the official updates.