After updating my nvidia drivers (for GeForce GT 540m) in OpenSuse 12.1, Gnome shell starts up in fallback mode and my graphics cards don’t work with bumblebee.
I’ve posted some relevant info here:
Pastebin
daniel@linux-ychl:~> glxgears
Xlib: extension "GLX" missing on display ":0.0".
glxgears: Error: couldn't get an RGB, Double-buffered visual.
daniel@linux-ychl:~> optirun glxgears
[ERROR]Cannot access secondary GPU - error: [XORG] (EE) Failed to load module "extmod" (module does not exist, 0)
[WARN]The Bumblebee server was not available.
Xlib: extension "GLX" missing on display ":0.0".
glxgears: Error: couldn't get an RGB, Double-buffered visual.
Looking at your bumblebee.conf I see the following:
-
colon-separated path to the nvidia libraries
- LibraryPath=/usr/X11R6/lib/:/usr/X11R6/lib64/:/usr/lib/:/usr/lib64:/usr/lib64/vdpau:/usr/lib64/tls:/usr/lib/vdpau:usr/lib/tls
-
comma-separated path of the directory containing nvidia_drv.so and the
-
default Xorg modules path
- XorgModulePath=/usr/lib64/xorg/modules/updates/drivers,/usr/lib64/xorg/modules/updates/extensions
- XorgConfFile=/etc/bumblebee/xorg.conf.nvidia
The original file has this:
colon-separated path to the nvidia libraries
LibraryPath=/usr/lib64/nvidia:/usr/lib/nvidia
comma-separated path of the directory containing nvidia_drv.so and the
default Xorg modules path
XorgModulePath=/usr/lib64/nvidia/xorg/modules/updates,/usr/lib64/xorg/modules/updates,/usr/lib64/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia
I believe you should stick to the original, furthermore after every update of the Nvidia driver you’ll have to move some files, use those commands:
mkdir -p /usr/lib64/nvidia/xorg/modules/updates/extensions
mv /usr/X11R6/lib64/libGL* /usr/lib64/nvidia/
mv /usr/lib64/xorg/modules/updates/extensions/libglx* /usr/lib64/nvidia/xorg/modules/updates/extensions/
mkdir -p /usr/lib/nvidia
mv /usr/X11R6/lib/libGL* /usr/lib/nvidia
Probably you alraedy have the folders so you may skip the mkdir commands.
Besides that I don’t think you really need the file /etc/X11/xorg.conf, it’s mostly confusing.
Thank you, that did the trick!