Failed to initialize GLX extension on ubuntu 14.04

Hello,
I have Gigabyte 1080G1 on the server. The driver is

[ 16.354] (II) LoadModule: “glx”
[ 16.354] (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/libglx.so
[ 16.386] (II) Module glx: vendor=“NVIDIA Corporation”
[ 16.387] (II) NVIDIA GLX Module 375.66 M
LoadModule: “nvidia”
[ 16.387] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 16.391] (II) Module nvidia: vendor=“NVIDIA Corporation”
[ 16.392] (II) NVIDIA dlloader X Driver 375.66 Mon May 1 14:03:26 PDT 2017
[ 16.392] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 16.438] (EE) No devices detected.
[ 16.439] (II) Applying OutputClass “nvidia” to /dev/dri/card1
[ 16.439] (II) LoadModule: “ast”
[ 16.439] (II) UnloadModule: “ast”
[ 16.439] (II) Unloading ast
[ 16.439] (EE) Failed to load module “ast” (module does not exist, 0)
[ 16.439] (II) LoadModule: “nvidia”
[ 16.439] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 16.439] (II) Module nvidia: vendor=“NVIDIA Corporation”
[ 16.439] (II) UnloadModule: “nvidia”
[ 16.439] (II) Unloading nvidia

I have two GPUs. not sure why the system unloads NVidia.

please help.

thanks,

There’s a bug in some versions of the X server on some platforms where if there is more than one GPU, it doesn’t detect either one of them as primary. You can try working around that by specifying BusId entries in xorg.conf. That’s most easily done by running “sudo nvidia-xconfig --enable-all-gpus”

If you’re still having problems, please run nvidia-bug-report.sh and attach the resulting nvidia-bug-report.log.gz file to your reply.

Hi, I need similar help. My linux is Deepin 15.8, I have two video cards on my pc:

saama@ASUSVX6:~$ sudo spci | grep -i --color ‘vga|3d|2d’
00:02.0 VGA compatible controller: Intel Corporation Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics Controller (rev 02)
05:00.0 VGA compatible controller: NVIDIA Corporation GT218 [ION 2] (rev a2)

saama@ASUSVX6:~$ sudo lspci -vnn | grep VGA -A 12
00:02.0 VGA compatible controller [0300]: Intel Corporation Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics Controller [8086:a001] (rev 02) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics Controller [1043:8446]
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at f5d00000 (32-bit, non-prefetchable)
I/O ports at cc00
Memory at b0000000 (32-bit, prefetchable)
Memory at f5c00000 (32-bit, non-prefetchable)
[virtual] Expansion ROM at 000c0000 [disabled]
Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Kernel driver in use: i915
Kernel modules: i915
05:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT218 [ION 2] [10de:0a76] (rev a2) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. GT218 [ION 2] [1043:8446]
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at fa000000 (32-bit, non-prefetchable)
Memory at d0000000 (64-bit, prefetchable)
Memory at ce000000 (64-bit, prefetchable)
I/O ports at ec00
Expansion ROM at fbf00000 [disabled]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [b4] Vendor Specific Information: Len=14 <?>
Capabilities: [100] Virtual Channel

And I have the following nvidia packages, which I installed from debian sid repository:

saama@ASUSVX6:~$ sudo dpkg -l |grep nvidia
ii glx-alternative-nvidia 0.8.8 amd64 allows the selection of NVIDIA as GLX provider
ii libegl1-nvidia-legacy-340xx:amd64 340.107-2 amd64 NVIDIA binary EGL library (340xx legacy version)
ii libegl1-nvidia-legacy-340xx:i386 340.107-2 i386 NVIDIA binary EGL library (340xx legacy version)
ii libgl1-nvidia-legacy-340xx-glx:amd64 340.107-2 amd64 NVIDIA binary OpenGL/GLX library (340xx legacy version)
ii libgl1-nvidia-legacy-340xx-glx:i386 340.107-2 i386 NVIDIA binary OpenGL/GLX library (340xx legacy version)
ii libgles1-nvidia-legacy-340xx:amd64 340.107-2 amd64 NVIDIA binary OpenGL|ES 1.x library (340xx legacy version)
ii libgles1-nvidia-legacy-340xx:i386 340.107-2 i386 NVIDIA binary OpenGL|ES 1.x library (340xx legacy version)
ii libgles2-nvidia-legacy-340xx:amd64 340.107-2 amd64 NVIDIA binary OpenGL|ES 2.x library (340xx legacy version)
ii libgles2-nvidia-legacy-340xx:i386 340.107-2 i386 NVIDIA binary OpenGL|ES 2.x library (340xx legacy version)
ii libnvidia-legacy-340xx-cfg1:amd64 340.107-2 amd64 NVIDIA binary OpenGL/GLX configuration library (340xx legacy version)
ii libnvidia-legacy-340xx-cfg1:i386 340.107-2 i386 NVIDIA binary OpenGL/GLX configuration library (340xx legacy version)
ii libnvidia-legacy-340xx-eglcore:amd64 340.107-2 amd64 NVIDIA binary EGL core libraries (340xx legacy version)
ii libnvidia-legacy-340xx-eglcore:i386 340.107-2 i386 NVIDIA binary EGL core libraries (340xx legacy version)
ii libnvidia-legacy-340xx-glcore:amd64 340.107-2 amd64 NVIDIA binary OpenGL/GLX core libraries (340xx legacy version)
ii libnvidia-legacy-340xx-glcore:i386 340.107-2 i386 NVIDIA binary OpenGL/GLX core libraries (340xx legacy version)
ii libnvidia-legacy-340xx-ml1:amd64 340.107-2 amd64 NVIDIA Management Library (NVML) runtime library (340xx legacy version)
ii nvidia-installer-cleanup 20151021+8 amd64 cleanup after driver installation with the nvidia-installer
ii nvidia-kernel-common 20151021+8 amd64 NVIDIA binary kernel module support files
ii nvidia-legacy-340xx-alternative 340.107-2 amd64 allows the selection of NVIDIA as GLX provider (340xx legacy version)
ii nvidia-legacy-340xx-driver 340.107-2 amd64 NVIDIA metapackage (340xx legacy version)
ii nvidia-legacy-340xx-driver-bin 340.107-2 amd64 NVIDIA driver support binaries (340xx legacy version)
ii nvidia-legacy-340xx-driver-libs:amd64 340.107-2 amd64 NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries) (340xx legacy version)
ii nvidia-legacy-340xx-driver-libs:i386 340.107-2 i386 NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries) (340xx legacy version)
ii nvidia-legacy-340xx-driver-libs-i386:i386 340.107-2 i386 NVIDIA metapackage (OpenGL/GLX/EGL/GLES 32-bit libraries) (340xx legacy)
ii nvidia-legacy-340xx-kernel-dkms 340.107-2 amd64 NVIDIA binary kernel module DKMS source (340xx legacy version)
ii nvidia-legacy-340xx-kernel-support 340.107-2 amd64 NVIDIA binary kernel module support files (340xx legacy version)
ii nvidia-legacy-340xx-vdpau-driver:amd64 340.107-2 amd64 Video Decode and Presentation API for Unix - NVIDIA driver (340xx legacy)
ii nvidia-modprobe 390.25-1 amd64 utility to load NVIDIA kernel modules and create device nodes
ii nvidia-persistenced 390.25-1 amd64 daemon to maintain persistent software state in the NVIDIA driver
ii nvidia-settings-legacy-340xx 340.107-1 amd64 tool for configuring the NVIDIA graphics driver (340xx legacy version)
ii nvidia-support 20151021+8 amd64 NVIDIA binary graphics driver support files
ii nvidia-xconfig 340.46-1 amd64 X configuration tool for non-free NVIDIA drivers
ii xserver-xorg-video-nvidia-legacy-340xx 340.107-2 amd64 NVIDIA binary Xorg driver (340xx legacy version)

I installed every package by nvidia after blacklist nouveau, and never used nouveau again.

Currently, I’m using drivers for intel card.

My HDMI will not work inside my OS. If I start the PC with HDMI, it displays the splash screen in both displays, but after that, it will show only on the notebook display. HDMI display goes black. It is like this with nouveau Drivers, with Intel Drivers, Bumblebee never installs correctly, neither the NV-Prime.

I want to try nvidia drivers because I think it will enable my HDMI.

When trying to generate the xorg.conf with nvidia-xconfig his is what I get in an instance of terminal with the X on:

root@ASUSVX6:/home/saama# nvidia-xconfig

WARNING: Unable to locate/open X configuration file.

Package xorg-server was not found in the pkg-config search path.
Perhaps you should add the directory containing `xorg-server.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘xorg-server’ found
New X configuration file written to ‘/etc/X11/xorg.conf’

And this is what I get inside the xorg.conf file:

nvidia-xconfig: X configuration file generated by nvidia-xconfig

nvidia-xconfig: version 340.46 (buildd@brahms) Tue Oct 7 08:00:32 UTC 2014

Section “ServerLayout”
Identifier “Layout0”
Screen 0 “Screen0”
InputDevice “Keyboard0” “CoreKeyboard”
InputDevice “Mouse0” “CorePointer”
EndSection

Section “Files”
EndSection

Section “InputDevice”
# generated from default
Identifier “Mouse0”
Driver “mouse”
Option “Protocol” “auto”
Option “Device” “/dev/psaux”
Option “Emulate3Buttons” “no”
Option “ZAxisMapping” “4 5”
EndSection

Section “InputDevice”
# generated from default
Identifier “Keyboard0”
Driver “kbd”
EndSection

Section “Monitor”
Identifier “Monitor0”
VendorName “Unknown”
ModelName “Unknown”
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option “DPMS”
EndSection

Section “Device”
Identifier “Device0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
EndSection

Section “Screen”
Identifier “Screen0”
Device “Device0”
Monitor “Monitor0”
DefaultDepth 24
SubSection “Display”
Depth 24
EndSubSection
EndSection

If I run nvidia X server settings, I get “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.”

So my two problems are: get nvidia drivers to work and get HDMI to work.

After that, if I restart. I get blacksceen with 2 or 3 lines of text, but will not start X server. I also tryed “sudo nvidia-xconfig --enable-all-gpus”

I’m new to linux world, but really want to get it to work, so please if you have suggestions, tell me what commands to execute with some additional details.

mynvidia-bug-report.sh output file is linked.

https://www.dropbox.com/s/b38zyu5opawbnr0/nvidia-bug-report.log?dl=0