Bumblebee-Project/Bumblebee — Issue #74: Wine can't init openGL
Author: m0nt0
Created: 2012-02-08 00:51:36+00:00
State: open

**Distro:** Gentoo

**Kernel:** Linux daneel 3.2.2-gentoo #1 SMP PREEMPT Fri Feb 3 23:08:56 CET 2012 x86_64 Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz GenuineIntel GNU/Linux

**Manufacturer and model:**
baseboard-manufacturer: SAMSUNG ELECTRONICS CO., LTD.
baseboard-product-name: RC530/RC730
baseboard-version : 02WD
system-manufacturer : SAMSUNG ELECTRONICS CO., LTD.
system-product-name : RC530/RC730
system-version : 02WD
bios-vendor : American Megatrends Inc.
bios-version : 02WD.M007.20110810.PSA
bios-release-date : 08/10/2011

**Bumblebee version:** optirun (Bumblebee) 3.0

**Probelm description:**
Well running game that with old bumblebee was working now stopped, done some investigation without results. It still says that wine can't initialize the openGL so expect problem ahead, the games stops there (starcraft 2 stops here, counter strike source stops when you try to join a server) and here is when the game is trying to set up the opengl environment.
Given that minecraft is working flawlessy with java64 all opengl this lead me think that has something to do with wine at 32bit. With the previous version there where 2 executables optirun64 and optirun32, optirun32 for everything wine related else it won't work, with the new version seems that this is not necessary anymore (bit of magic imho) so how can i play my games? :D
I've tried to describe the problem, if something is missing please ask.

**Some quesitons/answers**
is the secondary X running? yes
is it running on the nvidia card? yes
are you using the elvish nvidia blob or the saint nuveau? bad guy so elvish nvidia blob :D
is glxspheres running? yes (60 fps on intel, 99 on nvidia with optirun)
is vgl installed? yes
how did you installed bumblebee? layman -a mva ; emerge bumblebee (thanks mva for the ebuilds!!)
is it the wine bug? no it isn't. everything was working before, also tried bumblee bash and then run the wine but without success. moreover steam doesn't quit while sc2 does but it has alwasy worked before the upgrade

**another little info:**
monto@daneel ~ $ optirun bash
monto@daneel ~ $ glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: VirtualGL
server glx version string: 1.4
server glx extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_SGI_make_current_read, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SUN_get_transparent_index, GLX_ARB_create_context
client glx vendor string: VirtualGL
client glx version string: 1.4
client glx extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_SGI_make_current_read, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SUN_get_transparent_index, GLX_ARB_create_context
GLX version: 1.4
GLX extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_SGI_make_current_read, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SUN_get_transparent_index, GLX_ARB_create_context
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GT 540M/PCI/SSE2
OpenGL version string: 4.2.0 NVIDIA 290.10
OpenGL shading language version string: 4.20 NVIDIA via Cg compiler
....