Sunday, November 20, 2011

Possible GLX Bug in Ubuntu; feedback needed (affects Intel video cards 2D/3D acceleration)

So I've been recently screwing around with VirtualBox on a personal project, and I ran into an issue with not being able to enable 2D/3D acceleration on Ubuntu 11.10. After quite a bit of debugging and forum searching, the problem was that the NVIDIA GLX driver was being loaded instead of the standard MESA one, preventing any video acceleration from properly working on my Intel based video card.

I just recently reinstalled Kubuntu on this laptop, and since its a fairly stock install at the moment, I suspect that this is a general (K)ubuntu bug, and not something related to me screwing around with my system. In addition, since I switched to using Kubuntu full time, this is the first time I've seen transparency and other desktop effects, and system performance has improved dramatically. While I can't say for certian, I suspect that my system was also affected on its previous install. Part of the issue may be related to what packages are seeded per flavour, so this bug may only affect those who installed Kubuntu over say Xubuntu or Ubuntu; without more information, its impossible to say.

This is where you can help; if you are running any flavor of Ubuntu with an Intel based video card, you might be affected by this too.

Here's how to check; open a terminal, and type:

mcasadevall@daybreak:/var/log$ cat /var/log/Xorg.0.log

then find the section where the glx module is loaded. It looks something like this:

[236901.570] (II) LoadModule: "glx"
[236901.571] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[236901.578] (II) Module glx: vendor="X.Org Foundation"
[236901.578] compiled for 1.10.4, module version = 1.0.0
[236901.578] ABI class: X.Org Server Extension, version 5.0

(this is on a machine where the Intel acceleration is properly working).

If it says 'ATi' or 'NVIDIA', you've run into the same issue I have. So dear readers, I ask that if you've had any issue with graphic performance, gaming, or simple UI lag and have an Intel video card, please post a comment with you video card, what flavor of Ubuntu you have installed, and the glx section of Xorg.0.log. If I get a few reports that confirm this, I'll file a proper bug in Launchpad, and then work to get this fixed.

11 comments:

molostoff said...

[ 787.668] (II) LoadModule: "glx"
[ 787.669] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 787.669] (II) Module glx: vendor="X.Org Foundation"
[ 787.669] compiled for 1.11.2, module version = 1.0.0
[ 787.669] ABI class: X.Org Server Extension, version 6.0
[ 787.669] (==) AIGLX enabled
[ 787.669] (II) Loading extension GLX

Perhaps I have to look anything else? Anyway Iam very interesting the issue you have got with your inter driver...

molostoff said...

me on oneiric with x-org updates ppa added, so version may differ...

NCommander said...

@molostoff: Looks like your machine is loading the MESA driver properly, so if you have an Intel GMA card (excluding poulsobo based chipsets), you should have working 2D/3D.

NCommander said...

@molostoff: Looks like your machine is loading the MESA driver properly, so if you have an Intel GMA card (excluding poulsobo based chipsets), you should have working 2D/3D.

Ledru Sylvestre said...

Maybe related to https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/877491
?

BeowulfOF said...

This is on a Asus EEE 1215n Notebook with Ubuntu 11.10 upgraded from 11.04. Here it works withouth problem, i guess the slow performance is based on the unity desktop.

It could also be that NVIDIA gets loaded unter heavy graphic load since this notebook has NVIDIA-OPTIMUS technologie inside which is, as i read from kernel-news, supported since kernel 3.0, or so.

Have you checked about that?


[ 22.514] (II) LoadModule: "glx"
[ 22.515] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 22.516] (II) Module glx: vendor="X.Org Foundation"
[ 22.516] compiled for 1.10.4, module version = 1.0.0
[ 22.516] ABI class: X.Org Server Extension, version 5.0
[ 22.516] (==) AIGLX enabled
[ 22.516] (II) Loading extension GLX

Anonymous said...

Sounds like you have a laptop with hybrid graphics, so jockey offered to install nvidia-current. That bug is now fixed, see https://lists.ubuntu.com/archives/oneiric-changes/2011-November/011359.html

jucas said...

The same thing happened to me this week, strangely enough the culprit was Mysql Workbench deb I downloaded and installed the day before I started having problems. The thing was that MySQL workbench depended on the nvidia driver, so software manager installed it, so after reboot xorg loaded the nvidia driver instead of Intel, and I got stuck on a desktop without acceleration.

Uninstalling the nvida driver and MySQL workbench solved the issue (I now use MySQL query browser from repos)

NCommander said...

My laptop doesn't have hybrid graphics (though it is offered as an option). This was on a fresh install of Kubuntu 11.10, but I can't do a reinstall on this machine until next week at the earlist.

Anonymous said...

I am still in kubuntu natty (11.04) in my laptop with the intel graphic card. Everything seems fine here. Not sure about default behavior in oneiric (11.10) though

DavidW said...

[ 29566.583] (II) LoadModule: "glx"
[ 29566.583] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 29566.606] (II) Module glx: vendor="X.Org Foundation"
[ 29566.606] compiled for 1.10.4, module version = 1.0.0
[ 29566.606] ABI class: X.Org Server Extension, version 5.0
[ 29566.606] (==) AIGLX enabled
[ 29566.606] (II) Loading extension GLX

I'm pretty sure that my 2d/3d acceleration is working fine but I get corruption like this: http://s12.postimage.org/4nb5mhykt/Screenshot_at_2011_11_20_15_16_36.png