Sunday, 26 May 2013

glxinfo and steam detecting incorrect video driver (Ubuntu 12.04)

glxinfo and steam detecting incorrect video driver (Ubuntu 12.04)

I've asked for help on the Steam discussion boards and on the Steam Github bug page and I was told to ask about this issue on an Ubuntu forum. Here are the links:
https://github.com/ValveSoftware/steam-for-linux/issues/2516
http://steamcommunity.com/app/221410/discussions/5/828939797039531960/
Anyways, I compiled a custom 3.7.9 kernel a long time ago because I was having issues with my laptop (closing the lid made the screen permanently black, keyboard didn't light up, no hibernation, etc). The 3.7.9 kernel fixed all of these issues and everything has been running a whole lot smoother ever since.
Unfortunately, the Nvidia drivers from Jockey did not work. I don't remember the reason; it was a long time ago. I downloaded and installed the 310.32 driver manually from Nvidia's website. I had to manually patch the installer because my kernel was too new, but other than that everything seems to have installed fine.
tail -n 21 /var/log/nvidia-installer.log

-> Installing both new and classic TLS OpenGL libraries.
-> Installing classic TLS 32bit OpenGL libraries.
-> Install NVIDIA's 32-bit compatibility OpenGL libraries? (Answer: Yes)
-> Searching for conflicting X files:
-> done.
-> Searching for conflicting OpenGL files:
-> done.
-> Installing 'NVIDIA Accelerated Graphics Driver for Linux-x86_64' (310.32):
   executing: '/sbin/ldconfig'...
   executing: '/sbin/depmod -aq'...
-> done.
-> Driver file installation is complete.
-> Running post-install sanity check:
-> done.
-> Post-install sanity check passed.
-> Shared memory test passed.
-> Running runtime sanity check:
-> done.
-> Runtime sanity check passed.
-> Would you like to run the nvidia-xconfig utility to automatically update your X configuration file so that the NVIDIA X driver will be used when you restart X?  Any pre-existing X configuration file will be backed up. (Answer: Yes)
-> Your X configuration file has been successfully updated.  Installation of the NVIDIA Accelerated Graphics Driver for Linux-x86_64 (version: 310.32) is now complete.
As shown in the links I provided at the top, the Nvidia X Server Settings and my xorg.conf seem okay. Now for the problem, glxinfo displays this:
glxinfo | grep -i opengl

OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 0x300)
OpenGL version string: 2.1 Mesa 8.0.4
OpenGL shading language version string: 1.20
OpenGL extensions:
and Steam's system information displays this: (Error, I do not have enough reputation to post a picture, the picture is near the top of the page of the first link that I posted.)
I believe the problem has to do with the contents of the /etc/ld.so.conf.d. In particular, there are two symbolic links in this folder:
i386-linux-gnu_GL.conf -> /etc/alternatives/i386-linux-gnu_gl_conf and
x86_64-linux-gnu_GL.conf -> /etc/alternatives/x86_64-linux-gnu_gl_conf
cat i386-linux-gnu_GL.conf

/usr/lib/i386-linux-gnu/mesa
and
cat x86_64-linux-gnu_GL.conf

/usr/lib/x86_64-linux-gnu/mesa
I'm almost certain that this is the problem. /usr/lib/x86_64-linux-gnu/mesa is a folder. Here are its contents:
ls -l /usr/lib/x86_64-linux-gnu/mesa | grep -o " l.*"

ld.so.conf
libGL.so -> libGL.so.1
libGL.so.1 -> libGL.so.1.2
li

No comments:

Post a Comment