How to fix error "Xlib: extension "NV-GLX" missing on display"?
Solution 1
This error occurs when you install the proprietary nvidia driver on NVidia Optimus laptop. The nvidia card cannot directly be used due to the Optimus design. To repair this, uninstall the nvidia-current
package and re-login. After that, you'll solely be running off the Intel graphics card which renders the nvidia card unused though it'll still be using power. Bumblebee allows you to switch off the card, see Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?
Solution 2
If I remember well GLX have something to do with OpenGL windowsing in X systems. So make sure you install mesa package which is implementation of OGL in Linux
Solution 3
Is that a system with 2 graphics cards? If so, the following makes google earth work for me: https://launchpad.net/~bumblebee/+archive/stable
As that page mentiones, you could always try experimental drivers, although that alone didn't solve my problems. Open a console and type:
add-apt-repository ppa:ubuntu-x-swat/x-updates
or, if you're feeling lucky, the latest-but-less-stable:
add-apt-repository ppa:xorg-edgers/ppa
then update the drivers
apt-get update
apt-get upgrade
apt-get install nvidia-current ppa-purge
and update /etc/X11/xorg.conf nvidia-xconfig
Note that the last step breaks my system. I have restore the old xorg.conf to make it work again:
cp /etc/X11/xorg.conf.backup /etc/X11/xorg.conf
The 'driver' line in the 'device' section is what's giving me problems. For more details, see: https://launchpad.net/~ubuntu-x-swat/+archive/x-updates
and launchpad.net/~xorg-edgers/+archive/ppa
Solution 4
I have a Dell Latitude E6240 with nVidia card. Just this afternoon I noticed an optimus option in the bios which indicated it was only for Windows 7 32-64 bit, turned it of and voila. I have no more errors, Cheese Webcam Booth worked and certain features (probably Unity) started to work. (transparent windows, Expo/DesktopWall worked properly)
Oscar
Updated on September 18, 2022Comments
-
Oscar almost 2 years
When I try to confirm than I can run Unity 3D on my Asus U31SD with intel's i5 Sandy Brigde and Nvidia 520 and Nvidia Optimus I receive this error: Xlib: extension "GLX" missing on display ":0".
Of course, I cannot run any of the effects of Ubuntu 11.10, not even the simple app switcher.
Can anybody help me? Thank you
-
Mr. White over 12 yearssee also askubuntu.com/questions/37590/…
-
H2ONaCl almost 12 yearsI removed and purged
nvidia-current
but there is still the error "extension GLX missing on display :0". -
Lekensteyn almost 12 years@broiyan If you have an Optimus laptop, please see the linked question.
-
H2ONaCl almost 12 yearsYes, I have an Optimus card. I tried removing nvidia-current via the command line and still Ubuntu Software Center thinks it's installed. I tried various things at the link as well, including rebooting to uninstall the Nvidia 295.53 driver. Still I can't get glxspheres to run. My aim is to get 32 pixel icons in the Launcher and that's why I'm using Optimus.
-
Lekensteyn almost 12 yearsIf you are using Bumblebee, you can try to get help from the IRC channel #bumblebee on Freenode IRC. Ensure that /etc/X11/xorg.conf is removed, that you have not installed the nvidia driver directly from nvidia.com and then reinstall Bumblebee using:
sudo apt-get purge bumblebee bumblebee-nvidia nvidia-current && sudo apt-get install bumblebee
. Reboot (or restart the DE) and try again. -
Torrien over 5 yearsInstalled "mesa-vulkan-drivers" and the error was fixed!
-
Ahmed I. Elsayed over 5 yearsactually, that helped