Xlib: extension "GLX" missing on display ":0.0" Error: glewCreateContext failed

I installed nvidia binary drivers from official site: http://www.nvidia.com/download/driverResults.aspx/72250/en-us

My operating system is: Ubuntu 13.04

lspci output:

01:00.0 3D controller: NVIDIA Corporation GF117M [FeForce 610M/710M / GT 620M/625M/630M/720M ] (rev a1)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core Processor Graphics Controller (rev 09)

lsmod | grep nvidia output:

nvidia 10675226 0

lsmod | grep video output:

video 19390 3 i915, nouveau, asus_wmi

sudo lshw output:

*-display
                description: 3D controller
                product: GF117M [GeForce 610M/710M / GT 620M/625M/630M/720M]
                vendor: NVIDIA Corporation
                physical id: 0
                bus info: pci@0000:01:00.0
                version: a1
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list rom
                configuration: driver=nvidia latency=0
                resources: irq:16 memory:f6000000-f6ffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:f7000000-f707ffff
        *-display
             description: VGA compatible controller
             product: 3rd Gen Core processor Graphics Controller
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             version: 09
             width: 64 bits
             clock: 33MHz
             capabilities: msi pm vga_controller bus_master cap_list rom
             configuration: driver=i915 latency=0
             resources: irq:48 memory:f7400000-f77fffff memory:d0000000-dfffffff ioport:f000(size=64)

My current xorg.conf file is: xorg.conf (see in Attachments)
Corresponding log file is Xorg.0.log (see in Attachments)

Some of xorg.conf output:

Section "Device"
	Identifier  "Card0"
	Driver      "nvidia"
	BusID       "PCI:0:2:0"
EndSection

Section "Device"
	Identifier  "Card1"
	Driver      "intel"
	BusID       "PCI:0:2:0"
EndSection

Section "Device"
	Identifier  "Card2"
	Driver      "modesetting"
	BusID       "PCI:0:2:0"
EndSection

Section "Device"
	Identifier  "Card3"
	Driver      "modesetting"
	BusID       "PCI:1:0:0"
EndSection

Section "Device"
	Identifier  "Card4"
	Driver      "fbdev"
	BusID       "PCI:0:2:0"
EndSection

Some of Xorg.0.log output:

********************************************
[  2443.352] (II) LoadModule: "glx"
[  2443.352] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  2443.367] (II) Module glx: vendor="NVIDIA Corporation"
[  2443.367] 	compiled for 4.0.2, module version = 1.0.0
[  2443.367] 	Module class: X.Org Server Extension
[  2443.367] (II) NVIDIA GLX Module  331.38  Wed Jan  8 19:10:17 PST 2014
[  2443.367] Loading extension GLX
[  2443.367] (II) LoadModule: "nvidia"
[  2443.368] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[  2443.368] (II) Module nvidia: vendor="NVIDIA Corporation"
[  2443.368] 	compiled for 4.0.2, module version = 1.0.0
[  2443.368] 	Module class: X.Org Video Driver
[  2443.368] (II) LoadModule: "intel"
[  2443.369] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[  2443.369] (II) Module intel: vendor="X.Org Foundation"
[  2443.369] 	compiled for 1.13.3, module version = 2.21.6
[  2443.369] 	Module class: X.Org Video Driver
[  2443.369] 	ABI class: X.Org Video Driver, version 13.1
[  2443.369] (II) LoadModule: "modesetting"
[  2443.369] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[  2443.369] (II) Module modesetting: vendor="X.Org Foundation"
[  2443.369] 	compiled for 1.13.3, module version = 0.7.0
[  2443.369] 	Module class: X.Org Video Driver
[  2443.369] 	ABI class: X.Org Video Driver, version 13.1
[  2443.369] (II) LoadModule: "fbdev"
[  2443.370] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[  2443.370] (II) Module fbdev: vendor="X.Org Foundation"
[  2443.370] 	compiled for 1.12.99.902, module version = 0.4.3
[  2443.370] 	Module class: X.Org Video Driver
[  2443.370] 	ABI class: X.Org Video Driver, version 13.0
[  2443.370] (II) NVIDIA dlloader X Driver  331.38  Wed Jan  8 18:51:00 PST 2014
[  2443.370] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
********************************************
[  2443.532] (EE) modesetting(1): Specified fbbpp (7169389) is not a permitted value
[  2443.532] (II) UnloadModule: "modesetting"
[  2443.532] (II) UnloadModule: "nvidia"
[  2443.532] (II) Unloading nvidia
[  2443.532] (II) UnloadModule: "fbdev"
[  2443.532] (II) Unloading fbdev
*********************************************
[  2443.546] (EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)
********************************************

For a given configuration an error: Xlib: extension “GLX” missing on display “:0.0”

Also try nvidia-xconfig, but X don’t loading
(see xorg.conf.nvidia, Xorg.0.log.nvidia in Attachments)

Some of xorg.conf.nvidia output:

Section "Device"
    Identifier     "Card0"
    Driver         "nvidia"
    BusID          "PCI:0:2:0"
EndSection

Section "Device"
    Identifier     "Card1"
    Driver         "nvidia"
    BusID          "PCI:0:2:0"
EndSection

Section "Device"
    Identifier     "Card2"
    Driver         "nvidia"
    BusID          "PCI:0:2:0"
EndSection

Section "Device"
    Identifier     "Card3"
    Driver         "nvidia"
    BusID          "PCI:1:0:0"
EndSection

Section "Device"
    Identifier     "Card4"
    Driver         "nvidia"
    BusID          "PCI:0:2:0"
EndSection

Some of Xorg.0.nvidia.log output:

********************************************
[ 25804.383] (II) LoadModule: "glx"
[ 25804.383] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 25804.392] (II) Module glx: vendor="NVIDIA Corporation"
[ 25804.392] 	compiled for 4.0.2, module version = 1.0.0
[ 25804.392] 	Module class: X.Org Server Extension
[ 25804.392] (II) NVIDIA GLX Module  331.38  Wed Jan  8 19:10:17 PST 2014
[ 25804.392] Loading extension GLX
[ 25804.392] (II) LoadModule: "nvidia"
[ 25804.393] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 25804.393] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 25804.393] 	compiled for 4.0.2, module version = 1.0.0
[ 25804.393] 	Module class: X.Org Video Driver
[ 25804.393] (II) NVIDIA dlloader X Driver  331.38  Wed Jan  8 18:51:00 PST 2014
[ 25804.393] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 25804.393] (II) NVIDIA X compatibility module for ABI 13.0 built from git commit 98e3f3fde35ca805d44ee38394bfd86058f9f4b8
[ 25804.393] (II) X log verbosity: 5
[ 25804.393] (--) using VT number 8
********************************************
[ 25804.549] (--) NVIDIA(0): Valid display device(s) on GeForce GT 720M at PCI:1:0:0
[ 25804.549] (--) NVIDIA(0):     none
[ 25804.549] (II) NVIDIA(0): NoScanout X screen configured with resolution 640x480
[ 25804.549] (II) NVIDIA(0):     (default)
[ 25804.549] (II) NVIDIA(0): Validated MetaModes:
[ 25804.549] (II) NVIDIA(0): MetaMode "NULL":
[ 25804.549] (II) NVIDIA(0):     Size: 640 x 480
[ 25804.549] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[ 25804.549] (WW) NVIDIA(0): Unable to get display device for DPI computation.
********************************************
[ 25804.549] (II) NVIDIA:     access.
[ 25804.552] (II) NVIDIA(0): kernel module enabled successfully
[ 25804.552] (II) NVIDIA(0): GPU initialized
[ 25804.552] (II) NVIDIA(0): ACPI: AC state file path: /sys/class/power_supply/AC0/online
[ 25804.552] (II) NVIDIA(0): ACPI: the system is running on AC power
[ 25804.552] (WW) NVIDIA(0): ACPI: failed to determine the system's docking state: Unable
[ 25804.552] (WW) NVIDIA(0):     to find /sys/devices/platform/dock.*/docked file. Kernel
[ 25804.552] (WW) NVIDIA(0):     version may be less than 2.6.20 or dock.ko driver may not
[ 25804.552] (WW) NVIDIA(0):     be present
[ 25804.552] (II) NVIDIA(0): Registered for mobile display change hotkey events.
[ 25804.552] (II) NVIDIA(0): Setting mode "NULL"
[ 25804.552] (EE) NVIDIA(0): Failed to initiate mode change.
[ 25804.552] (EE) NVIDIA(0): Failed to complete mode change
********************************************
[ 25804.563] Loading extension NV-GLX
[ 25804.567] Loading extension NV-CONTROL
********************************************

Attachments(can not attach file to the post):
https://drive.google.com/file/d/0BzbcLWb40KS4MUxkdHhVa0pWUEk/edit?usp=sharing
https://drive.google.com/file/d/0BzbcLWb40KS4S1ZIN2tDZ20yN3M/edit?usp=sharing
https://drive.google.com/file/d/0BzbcLWb40KS4d2V2OE43ckpMWjQ/edit?usp=sharing
https://drive.google.com/file/d/0BzbcLWb40KS4d09udkJ1OGhFSDg/edit?usp=sharing

nvidia-bug-report.log.gz (90.7 KB)

This happens on ubuntu 14.04 also for me (well, really linux mint 17 x64). I wish I could help but thought I’d at least add a “me too”

There’s a lot of chatter on various sites about the GPUs of the nvidia card some how conflicting with the GPUs on an internal card, but that seems like a red herring. It took a number of installs from scratch with various versions of the nvidia driver to come alive to start with, and I suspect that theres some path change, etc, that happens. If this weren’t X11 (of which I know very very little) and some other utility I’d wonder about LD_LIBRARY_PATH, or the like being out of order.

gnuplot and totem do the same thing:

Xlib: extension “GLX” missing on display “:0.0”.
*** Error in `totem’: double free or corruption (!prev): 0x00007f2358e7af20 ***
Aborted

However, vlc works fine: I suspect it has a video driver/code of its own - or calls x differently.