Hi,
I did installed bumblebee 3.0, bbswitch 0.4.1, nvidia-bumblebee drivers 295.20, VirtualGL 2.3 and SDL 1.2.14 .
Pure OpenGL apps like glxspheres do work:
[INFO]Running application through vglrun.
[DEBUG]Process vglrun started, PID 5890.
Polygons in scene: 62464
Visual ID of window: 0x21
Context is Direct
OpenGL Renderer: GeForce GT 540M/PCIe/SSE2
122.324255 frames/sec - 81.196394 Mpixels/sec
The issue is with games written with SDL libraries like XMoto or BZFlag:
dunric@myhost:~$ optirun -vv bzflag
[DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[DEBUG]Process /sbin/modinfo started, PID 1883.
[DEBUG]Hiding stderr for execution of /sbin/modinfo
[DEBUG]SIGCHILD received, but wait failed with No child processes
[DEBUG]Detected nvidia driver (module nvidia)
[DEBUG]Active configuration:
[DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[DEBUG] X display: :8
[DEBUG] LD_LIBRARY_PATH: /usr/lib64/nvidia-bumblebee:/usr/lib/nvidia-bumblebee
[DEBUG] Socket path: /var/run/bumblebee.socket
[DEBUG] VGL Compression: proxy
[DEBUG]optirun version 3.0 starting...
[INFO]Response: Yes. X is active.
[INFO]Running application through vglrun.
[DEBUG]Process vglrun started, PID 1888.
Could not set Video Mode: Couldn't find matching GLX visual.
[DEBUG]SIGCHILD received, but wait failed with No child processes
[DEBUG]Socket closed.
[DEBUG]Killing all remaining processes.
Every case fails with "Could not set Video Mode: Couldn't find matching GLX visual." error message.
Any idea what's wrong ?
Pretty sure this is a dupe of
https://sourceforge.net/tracker/?func=detail&aid=3459360&group_id=117509&atid=678327
Please see that bug report for links to updated Bumblebee packages that should fix this. VirtualGL 2.3.1 (which is due soon) will also have the fix.
Unfortunately even with latest SVN version of VirtualGL the issue persists - "Could not set Video Mode: Couldn't find matching GLX visual." error message.
Please attach a simple SDL application that reproduces the failure and indicate what operating system you are running. We have no other reports of SDL issues since fixing the bug I linked to below (nor can I personally reproduce any issues), so there must be something different about your system.
Any word on this?
Problem reproduced. Apparently this just occurs on GeForce hardware. Doesn't occur on Quadro. Investigating.
Hmmm... Well, I think I might have been seeing a different issue from the one you described. In my case, the issue was that I had an improper xorg.conf file. My xorg.conf was still referencing the ATI driver, even though I was running nVidia hardware. I run Ubuntu 12.04 off of an external USB drive, and for whatever reason, it worked fine on my Quadro-based system, even with the errant xorg.conf file, but when I booted on my GeForce-based system, every OpenGL app (not just SDL-based ones) failed.
Once I ran 'nvidia-xconfig' to create a new xorg.conf and restarted the system, everything worked properly, and I could successfully run xmoto and bzflag in VGL and TurboVNC. So I guess unless there is any further information, at the moment this falls into the "works for me" category.