SolvedBumblebee Xlib: extension "GLX" missing on display ":0.0".

Hello, I have an error when I want to run optirun like;

sudo optirun glxgears

Xlib:  extension "GLX" missing on display ":0.0".
Error: couldn't get an RGB, Double-buffered visual

cat /etc/bumblebee/bumblebee.conf

[bumblebeed]
VirtualDisplay=:8
KeepUnusedXServer=false
ServerGroup=bumblebee
TurnCardOffAtExit=false
NoEcoModeOverride=false
Driver=
XorgConfDir=/etc/bumblebee/xorg.conf.d
XorgBinary=Xorg

[optirun]
Bridge=auto
VGLTransport=proxy
PrimusLibraryPath=/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
AllowFallbackToIGC=false

[driver-nvidia]
KernelDriver=nvidia
PMMethod=auto
LibraryPath=/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
XorgModulePath=/usr/lib/nvidia/nvidia,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

lspci | grep VGA

00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GK104M [GeForce GTX 870M] (rev ff)

ls -l /usr/lib/xorg/modules/extensions

total 288
-rw-r--r-- 1 root root 294312 Feb 11  2015 libglx.so

sudo optirun nvidia-settings

You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run "nvidia-xconfig" as root), and restart the X server.

I tried to reinstall bumblebee and xserver-xorg-core packets, but I take same error anytime.

16 Answers

✔️Accepted Answer

If you run:

sudo update-glx --config glx

Is it set to /usr/lib/nvidia/bumblebee ? If not, set it.

If that is ok as well, given you are running with 3.16, do what /usr/share/doc/bumblebee/README.Debian suggests:

You have to append the following section to /etc/bumblebee/xorg.conf.nvidia:

Section "Screen"
    Identifier "Default Screen"
    Device "DiscreteNvidia"
EndSection

Also refer to https://bugs.debian.org/756522 for a brief explanation.

- If optirun errors out and dmesg reports that the GPU has "fallen off the bus"
or "nvidia_frontend_open: minor 0, module->open() failed, error -5" on Linux
>= 3.10 and < 3.19, either stick with an older kernel version (<= 3.9) or
upgrade to > 3.19, or add rcutree.rcu_idle_gp_delay=1 to your grub command line
(in /etc/default/grub, then run update-grub and reboot) as a workaround.

Other Answers:

Also make sure to restart X (or log out / log back in) and restart bumblebeed.service after the update-glx command

Related Issues:

9
Bumblebee Xlib: extension "GLX" missing on display ":0.0".
If you run: sudo update-glx --config glx Is it set to /usr/lib/nvidia/bumblebee ? If not set it If t...