LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Debian Wheezy: OpenGl suddenly stopped working (http://www.linuxquestions.org/questions/debian-26/debian-wheezy-opengl-suddenly-stopped-working-908428/)

jdkaye 10-16-2011 09:31 AM

Debian Wheezy: OpenGl suddenly stopped working
 
Hi all,
I'm running Debian wheezy with a 3.0.0-6.dmz.1-liquorix-amd64 kernel and a Radeon HD 4350 video card for which I'm using the radeon xserver-xorg kernel driver. xserver-xorg-core version 1.11.1-1

Symptoms: suddenly I'm getting a blank black screen for all OpenGl applications. These include: OpenGl screensavers, opengl games like Emilia Pinball and Supertux racer, glxgears. google earth. Running any of these results in a blank black screen. Any ideas out there? If you need more diagnostics, tell me what to try and I'll report back. If run various things through the command line with or without gdb and no info was obtained.
Thanks for the help,
jdk

cynwulf 10-16-2011 11:05 AM

Post output:

Code:

glxinfo | grep -i render

jdkaye 10-16-2011 11:37 AM

Quote:

Originally Posted by caravel (Post 4499822)
Post output:

Code:

glxinfo | grep -i render

Code:

~$ glxinfo |grep -i render
direct rendering: Yes
OpenGL renderer string: Gallium 0.4 on AMD RV710
    GL_NV_conditional_render, GL_AMD_draw_buffers_blend,

I don't recall seeing Gallium before this week. Is this something new? or maybe I just didn't notice it before.
Thanks,
jdk

cynwulf 10-16-2011 11:54 AM

Gallium arrived several weeks ago along with the mesa 7.11 libs.

Post outputs:
Code:

cat /etc/X11/xorg.conf
grep EE /var/log/Xorg.0.log
grep WW /var/log/Xorg.0.log


jdkaye 10-16-2011 12:00 PM

Quote:

Originally Posted by caravel (Post 4499859)
Gallium arrived several weeks ago along with the mesa 7.11 libs.

Post outputs:
Code:

cat /etc/X11/xorg.conf
grep EE /var/log/Xorg.0.log
grep WW /var/log/Xorg.0.log


I don't have an xorg.conf file.
grep EE only returned SCREEN so no errors (I had already looked but it never hurts to check again).
Code:

[    27.029] (WW) Falling back to old probe method for vesa
[    27.029] (WW) Falling back to old probe method for fbdev

Cheers,
jdk

cynwulf 10-16-2011 01:39 PM

Very odd...

Code:

export LIBGL_DEBUG=verbose
export MESA_DEBUG=1
glxinfo

Have a look through that for anything out of the ordinary.

If there's nothing unusual try purging and reinstalling mesa drm and radeon. Also try the obvious stuff like disabling display compositing, etc.

//edit: I doubt it's related, but make sure firmware is installed

Code:

apt-cache policy firmware-linux-nonfree
If none of that helps I'd have a look through the dpkg logs at recent updates to see if anything related was upgraded or removed completely.

k3lt01 10-16-2011 02:01 PM

I used to have this issue in Ubuntu, uninstalling Compiz always fixed it.

jdkaye 10-16-2011 02:30 PM

Quote:

Originally Posted by k3lt01 (Post 4499939)
I used to have this issue in Ubuntu, uninstalling Compiz always fixed it.

No joy. I've never installed compiz. Don't care for it.
thanks though
jdk

jdkaye 10-16-2011 02:37 PM

Quote:

Originally Posted by caravel (Post 4499917)
Very odd...

Code:

export LIBGL_DEBUG=verbose
export MESA_DEBUG=1
glxinfo


Hmmm. You're onto something caravel. I haven't posted all the contents but already something shows up. What do you think?
Code:

$ glxinfo
name of display: :0
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/r600_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/jdkaye/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/jdkaye/.drirc: No such file or directory.
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn compression/decompression unavailable
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4

That looks suspicious, no? Also I had an incident where aptitude hung and I had to run dkpg --config -a or something like that to fix it.
I'll check what package gives me r600 stuff.
Thanks loads,
jdk

jdkaye 10-16-2011 03:07 PM

I tried searching the Debian package site for packages that have libtxc_dxtn.so No luck. No packages have that file and not surprisingly I don't have that package on my system. Very strange.
jdk

odiseo77 10-16-2011 04:44 PM

Code:

apt-file search libtxc_dxtn.so
libtxc-dxtn0: /usr/lib/i386-linux-gnu/libtxc_dxtn.so

So maybe you need libtxc-dxtn0. (I say maybe because I don't have this package, but I don't experience the problem you describe, so maybe the problem is somewhere else... or maybe ATI cards require it, who knows). BTW, it's in debian-multimedia, in case you haven't added it to your sources.list

Regards.

cynwulf 10-16-2011 05:33 PM

Compiz or not, if you are using another compositing capable window manager such as, e.g. xfwm4 or kwin. disable it's compositing and try e.g. glxgears again.

Regarding r600_dri.so, not an error, the second one is loaded otherwise it would spit the usual "cannot open shared object file" error.

The .drirc warnings aren't critical, but install driconf and it will generate a .drirc in your ~

You shouldn't need libtxc-dxtn0, that's the S3TC lib, but installing the one from debian-multimedia shouldn't hurt.

Next, try creating an /etc/X11/xorg.conf, in case it's a DRI permissions issue (unlikely)

Code:

Section "Device"
    Identifier    "Device0"
    Driver        "radeon"
EndSection

Section "DRI"
    Mode 0666
EndSection

Restart x, try again, etc...

If that makes no difference, the next stage is probably to reinstall all the mesa, drm and radeon stuff:

Code:

aptitude reinstall libgl1-mesa-dri libgl1-mesa-glx libdrm-radeon1 libdrm2 xserver-xorg-video-radeon xserver-xorg-core
Do that from outside X, reboot, etc... If it still fails then try booting into a debian kernel and see if that makes any difference.

jdkaye 10-17-2011 12:21 AM

Quote:

Originally Posted by odiseo77 (Post 4500021)
Code:

apt-file search libtxc_dxtn.so
libtxc-dxtn0: /usr/lib/i386-linux-gnu/libtxc_dxtn.so

So maybe you need libtxc-dxtn0. (I say maybe because I don't have this package, but I don't experience the problem you describe, so maybe the problem is somewhere else... or maybe ATI cards require it, who knows). BTW, it's in debian-multimedia, in case you haven't added it to your sources.list

Regards.

Thanks odiseo,
Yes I see the packages. I've always had debian-multimedia in my sources-list since it came into existence.
ciao,
jdk

jdkaye 10-17-2011 12:32 AM

Quote:

Originally Posted by caravel (Post 4500054)
Compiz or not, if you are using another compositing capable window manager such as, e.g. xfwm4 or kwin. disable it's compositing and try e.g. glxgears again

None are running. Desktop effects are disabled.

Quote:

Regarding r600_dri.so, not an error, the second one is loaded otherwise it would spit the usual "cannot open shared object file" error.

The .drirc warnings aren't critical, but install driconf and it will generate a .drirc in your ~

You shouldn't need libtxc-dxtn0, that's the S3TC lib, but installing the one from debian-multimedia shouldn't hurt.
Done. Now installed.

Quote:

Next, try creating an /etc/X11/xorg.conf, in case it's a DRI permissions issue (unlikely)
Created xorg.conf file with this content:
Code:

Section "Device"
    Identifier    "Device0"
    Driver        "radeon"
EndSection

Section "DRI"
    Mode 0666
EndSection



Quote:

Restart x, try again, etc...
Restarting x ....
will report back the results.
thanks again,
jdk

jdkaye 10-17-2011 12:48 AM

All symptoms listed in the first post are now gone. The problem is solved. The solution was either (a) installing the libtxc-dxtn0 package or (b) creating the xorg.conf file as per Caravel's specs. My guess is (b). What do you think Caravel?
Thanks to all. Debian support on linuxquestions is second to none.
Could this indicate a bug in the last update of mesa? Some routine configuration that was left out?
ciao,
jdk


All times are GMT -5. The time now is 08:20 AM.