LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 10-16-2011, 09:31 AM   #1
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,852

Rep: Reputation: Disabled
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

Last edited by jdkaye; 10-16-2011 at 09:42 AM.
 
Old 10-16-2011, 11:05 AM   #2
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 1,384

Rep: Reputation: Disabled
Post output:

Code:
glxinfo | grep -i render
 
Old 10-16-2011, 11:37 AM   #3
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,852

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by caravel View Post
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
 
Old 10-16-2011, 11:54 AM   #4
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 1,384

Rep: Reputation: Disabled
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
 
Old 10-16-2011, 12:00 PM   #5
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,852

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by caravel View Post
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
 
Old 10-16-2011, 01:39 PM   #6
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 1,384

Rep: Reputation: Disabled
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.

Last edited by cynwulf; 10-16-2011 at 01:43 PM.
 
Old 10-16-2011, 02:01 PM   #7
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,857

Rep: Reputation: 617Reputation: 617Reputation: 617Reputation: 617Reputation: 617Reputation: 617
I used to have this issue in Ubuntu, uninstalling Compiz always fixed it.
 
Old 10-16-2011, 02:30 PM   #8
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,852

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by k3lt01 View Post
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
 
Old 10-16-2011, 02:37 PM   #9
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,852

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by caravel View Post
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
 
Old 10-16-2011, 03:07 PM   #10
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,852

Original Poster
Rep: Reputation: Disabled
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

Last edited by jdkaye; 10-16-2011 at 03:09 PM.
 
Old 10-16-2011, 04:44 PM   #11
odiseo77
Senior Member
 
Registered: Dec 2004
Location: Caracas, Venezuela
Distribution: Debian Sid, OpenSUSE 13.1
Posts: 1,016

Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
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.
 
Old 10-16-2011, 05:33 PM   #12
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 1,384

Rep: Reputation: Disabled
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.

Last edited by cynwulf; 10-16-2011 at 05:40 PM.
 
Old 10-17-2011, 12:21 AM   #13
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,852

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by odiseo77 View Post
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
 
Old 10-17-2011, 12:32 AM   #14
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,852

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by caravel View Post
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
 
Old 10-17-2011, 12:48 AM   #15
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,852

Original Poster
Rep: Reputation: Disabled
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

Last edited by jdkaye; 10-17-2011 at 12:50 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Networking suddenly stopped working wilbyforce Linux - Newbie 7 09-14-2009 11:10 AM
ALSA suddenly stopped working. Optimistic Debian 14 05-23-2008 12:04 PM
Ethernet suddenly stopped working Cherrycat Linux - Networking 7 04-14-2006 08:50 AM
apache suddenly stopped working newlinuxnewbie Linux - General 21 11-25-2005 04:56 PM
yum suddenly stopped working DJOtaku Fedora 3 05-01-2005 12:38 PM


All times are GMT -5. The time now is 11:11 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration