X Error of failed request: BadRequest (invalid request code or no such operation) [duplicate]

Possible Duplicate:
How to fix error with ATI driver “Error of failed request”?

Though this question is asked before for 11.10, it's still unanswered. I am using ubuntu 12.04 (on Dell Inspiron 1525, 2008 model) and facing the same problem:

milind@Ubuntu11:~$ glxinfo
name of display: :0.0
X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  136 (GLX)
  Minor opcode of failed request:  19 (X_GLXQueryServerString)
  Serial number of failed request:  12
  Current serial number in output stream:  12

From internet, I tried several tricks, say removing/reinstalling some packages like Xorg or flglrx (ATI); but no luck.

The "/var/log/Xorg.0.log" file gives:

(EE) GLX error: Can not get required symbols.

I have another newer laptop (lenovo thinkpad T420 2011 model) which also has Ubuntu 12.04, but there everything is working fine. But don't know what to compare between working and not working laptops!

Any help will be really appreciated.


Solution 1:

I kept trying and used the combination of
this answer
this answer
this link

And it worked like a charm:

milind@Ubuntu11:~$ glxinfo | grep -i yes
direct rendering: Yes

At least as of now, I am able to run some basic OpenGL programs (source code link mentioned here).