[SOLVED] [Optimus/Primus] Could not find required OpenGL entry point 'glGetError'| Either your video card is unsupported, or your OpenGL driver needs to be updated

I successfuly installed Primus with bumblebee on my Ubuntu 12.04 64Bits, i can reach 278 fps with "vblank_mode=0 primusrun glxspheres", but when i try to launch Team Fortress 2 with primusrun %command% (actually OPTIMUS_PREFIX witch correspond to primusrun in etc/environment ) i get this error:

"Could not find required OpenGL entry point 'glGetError'| Either your video card is unsupported, or your OpenGL driver needs to be updated"

I'm running with a Intel and a nVidia GeForce GT 630M - 2Gb, using the nvidia drivers 310-experimental.

And I can start the game with optirun, but it's very laggy and i don't run tf2 with high graphics settings :/

can you tell me from were did you install your drivers ? seems there's no version available from xorg-edgers for my ubuntu 12.04 64 bits :(

(Getting this error :Package nvidia-319 is not available, but exists in the database.This may mean that the package is missing, has been obsoleted, oris only available from another sourceE: Package nvidia-319 has no installation candidate)

Downloaded the 64bits package for nvidia-319 and nvidiasettings-319, i intalled the deb packages with software center and... it get worse x). Now bumblebee is dead. RUnning optirun glxspheres:

[ 191.312202] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.[ 191.312313] [ERROR]Could not connect to bumblebee daemon - is it running?

But i have to say that i edited the config file in /etc/bumblebee/bumblebee.conf to get this:

## Section with nvidia driver specific options, only parsed if Driver=nvidia[driver-nvidia]# Module name to load, defaults to Driver if empty or unsetKernelDriver=nvidia-319PMMethod=auto# colon-separated path to the nvidia librariesLibraryPath=/usr/lib/nvidia-319:/usr/lib32/nvidia-319# comma-separated path of the directory containing nvidia_drv.so and the# default Xorg modules pathXorgModulePath=/usr/lib/nvidia-319/xorg,/usr/lib/xorg/modulesXorgConfFile=/etc/bumblebee/xorg.conf.nvidia

and i did the same for Primusrun in /usr/bin/primusrun

EDIT: Now i reinstalled bumblebee and primus with default 304.88 driver. everything seems to work now. but i'm still getting the same error in steam with primus

I just replaced the "primusrun" command in steam by "optirun --brigde primus' in the TF2 Launch Options and it worked ^^ i didn't know this command, i found it on Bumblebee website, and tf2 runs well :)

"optirun --bridge primus" (or "optirun -b primus") is the same as "primusrun"."optirun -b virtualgl" is the same as "optirun".They merged both commands together so that instead of having two seperate commands, you have one with the option to chose either primus or virtualgl.