Nvidia Prime Select Intel GLX errors

Screen resolution, 3D Acceleration, nVidia, ATI
Forum rules
Before you post please read this
Pickle
Level 1
Level 1
Posts: 22
Joined: Sat Aug 24, 2019 7:56 pm

Re: Nvidia Prime Select Intel GLX errors

Post by Pickle » Sat Aug 31, 2019 9:09 pm

yeah i thought was odd too that it reported 3

Inxi

Code: Select all

Graphics:
  Device-1: Intel Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics 
  vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:a001 
  Device-2: NVIDIA GT218M [ION 2] driver: N/A bus ID: 04:00.0 
  chip ID: 10de:0a76 
  Display: x11 server: X.Org 1.19.6 driver: intel 
  unloaded: fbdev,modesetting,vesa resolution: 1366x768~60Hz 
  OpenGL: renderer: N/A v: N/A direct render: N/A 
lspci

Code: Select all

00:00.0 Host bridge: Intel Corporation Atom Processor D4xx/D5xx/N4xx/N5xx DMI Bridge (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics Controller (rev 02)
00:02.1 Display controller: Intel Corporation Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics Controller (rev 02)
00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 3 (rev 02)
00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 02)
00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 02)
00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 02)
00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 02)
00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation NM10 Family LPC Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation NM10/ICH7 Family SATA Controller [AHCI mode] (rev 02)
00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 02)
01:00.0 Ethernet controller: Qualcomm Atheros AR8152 v2.0 Fast Ethernet (rev c1)
02:00.0 Network controller: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
04:00.0 VGA compatible controller: NVIDIA Corporation GT218M [ION 2] (rev ff)
04:00.1 Audio device: NVIDIA Corporation High Definition Audio Controller (rev ff)
modprobe,d

Code: Select all

aliases.conf				fbdev-blacklist.conf  systemd.conf
blacklist_linux_4.15.0-58-generic.conf	nvidia-340.conf
blacklist-nvidia.conf			nvidia-kms.con
f

User avatar
roblm
Level 10
Level 10
Posts: 3388
Joined: Sun Feb 24, 2013 2:41 pm

Re: Nvidia Prime Select Intel GLX errors

Post by roblm » Sun Sep 01, 2019 8:48 am

What’s also confusing is that the Xorg.0.log from the Live USB session also lists these 3 lines:

Code: Select all

[    12.930] (--) PCI: (0:0:2:0) 8086:a001:1043:8446 rev 2, Mem @ 0xf5e00000/524288, 0xb0000000/268435456, 0xf5d00000/1048576, I/O @ 0x0000cc00/8, BIOS @ 0x????????/131072
[    12.930] (--) PCI: (0:0:2:1) 8086:a002:1043:8446 rev 2, Mem @ 0xf5e80000/524288
[    12.930] (--) PCI:*(0:4:0:0) 10de:0a76:1043:8446 rev 162, Mem @ 0xfa000000/16777216, 0xd0000000/268435456, 0xce000000/33554432, I/O @ 0x0000ec00/128, BIOS

I suggest trying this step, with the Intel GPU selected. Use this command to create an xorg.conf file:
sudo touch /etc/X11/xorg.conf

Open the file for editing: xed admin:///etc/X11/xorg.conf

Add these lines:

Code: Select all

Section "Device"
   Identifier   "intel"
   Driver   "intel"   			
   BusID  "PCI:0:2:0"
EndSection
Log out and back in and check with inxi -Gx
If there is a problem getting back to the desktop, then press Ctrl+Alt+F1 to enter virtual console tty1. Use this command to remove the xorg.conf file and reboot: sudo rm /etc/X11/xorg.conf; reboot

Pickle
Level 1
Level 1
Posts: 22
Joined: Sat Aug 24, 2019 7:56 pm

Re: Nvidia Prime Select Intel GLX errors

Post by Pickle » Sun Sep 01, 2019 2:36 pm

With xorg file it acted exactly the same. I tried BusID "PCI:0:2:1" and that locked up.

User avatar
roblm
Level 10
Level 10
Posts: 3388
Joined: Sun Feb 24, 2013 2:41 pm

Re: Nvidia Prime Select Intel GLX errors

Post by roblm » Sun Sep 01, 2019 4:44 pm

I don’t remember ever seeing this exact problem in any other forum topic I've read.

If you’re still using the acpi_osi=Linux parameter in the grub file, then remove it and try using this:
acpi_osi=! acpi_osi='windows 2009'

So the grub line will now look like this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=! acpi_osi='windows 2009'"

Then update grub and reboot.

If that PCI: (0:0:2:1) line had not been listed in the Xorg.0.log from the Live USB session, then I would have suggested trying to remove it’s listing in /sys/devices/pci0000:00/0000:02.1

Possibly a BIOS setting may be at fault or perhaps a BIOS update would help.

The Live USB session listed the intel and nouveau drivers in the Xorg.0.log. Try this test to see if it corrects the problem, which temporarily loads the nouveau driver instead of Nvidia.

Select the Nvidia GPU and reboot. Then use these commands and reboot:
sudo mv /lib/modprobe.d/nvidia-340.conf /lib/modprobe.d/nvidia-340.conf.old
sudo update-initramfs -u


To reverse:
sudo mv /lib/modprobe.d/nvidia-340.conf.old /lib/modprobe.d/nvidia-340.conf
sudo update-initramfs -u

Pickle
Level 1
Level 1
Posts: 22
Joined: Sat Aug 24, 2019 7:56 pm

Re: Nvidia Prime Select Intel GLX errors

Post by Pickle » Sun Sep 01, 2019 8:19 pm

I set the acpi_osi=Linux to enable eee_laptop driver that enabled some of the function keys.

I also checked yesterday the bios settings and that ive got the latest from asus. The bios is vert bare bones and there are no video settings.

Tried your modprobe idea, and it loaded both but the glx is still broke

Code: Select all

Graphics:
  Device-1: Intel Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics 
  vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:a001 
  Device-2: NVIDIA GT218M [ION 2] vendor: ASUSTeK GT218 driver: nouveau 
  v: kernel bus ID: 04:00.0 chip ID: 10de:0a76 
  Display: x11 server: X.Org 1.19.6 driver: intel,nouveau 
  unloaded: fbdev,modesetting,vesa resolution: 1366x768~60Hz 
  OpenGL: renderer: N/A v: N/A direct render: N/A
I feel like something from the nvidia driver is still taking control.

Pickle
Level 1
Level 1
Posts: 22
Joined: Sat Aug 24, 2019 7:56 pm

Re: Nvidia Prime Select Intel GLX errors

Post by Pickle » Sun Sep 01, 2019 8:53 pm

I did compete removal on the 340 nvidia packages and intel works again:

Code: Select all

Graphics:
  Device-1: Intel Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics 
  vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:a001 
  Device-2: NVIDIA GT218M [ION 2] vendor: ASUSTeK GT218 driver: nouveau 
  v: kernel bus ID: 04:00.0 chip ID: 10de:0a76 
  Display: x11 server: X.Org 1.19.6 driver: intel,nouveau 
  unloaded: fbdev,modesetting,vesa compositor: compton 
  resolution: 1366x768~60Hz 
  OpenGL: renderer: Mesa DRI Intel Pineview 
  v: 1.4 Mesa 19.2.0-devel - padoka PPA direct render: Yes 

User avatar
roblm
Level 10
Level 10
Posts: 3388
Joined: Sun Feb 24, 2013 2:41 pm

Re: Nvidia Prime Select Intel GLX errors

Post by roblm » Mon Sep 02, 2019 8:59 am

What I usually do next is try disabling the gpu-manager and manually switch GPUs, but you’re using the older nvidia-340 driver, which may complicate things.

If you want to pursue this, then re-install the Nvidia driver. With the Nvidia GPU selected, use this command:
ls /usr/share/X11/xorg.conf.d

If there is a file named 11-nvidia-prime.conf listed, then post the output of this command:
cat /usr/share/X11/xorg.conf.d/11-nvidia-prime.conf

If that file doesn’t exist, then post the name and contents of any other file listed that has the word nvidia in it. For example:
cat /usr/share/X11/xorg.conf.d/FILE-NAME

Also post the output of this command: ls /usr/lib/xorg/modules/extensions


Then select the Intel GPU, reboot and post the output of this command:
cat /lib/modprobe.d/blacklist-nvidia.conf

Also post the output of: ls /usr/lib/xorg/modules/extensions

Pickle
Level 1
Level 1
Posts: 22
Joined: Sat Aug 24, 2019 7:56 pm

Re: Nvidia Prime Select Intel GLX errors

Post by Pickle » Mon Sep 02, 2019 8:51 pm

Nvidia:

Code: Select all

cat /usr/share/X11/xorg.conf.d/11-nvidia-prime.conf
# DO NOT EDIT. AUTOMATICALLY GENERATED BY gpu-manager

Section "OutputClass"
    Identifier "Nvidia Prime"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "IgnoreDisplayDevices" "CRT"
    Option "PrimaryGPU" "Yes"
    ModulePath "/x86_64-linux-gnu/nvidia/xorg"
EndSection

ls /usr/lib/xorg/modules/extensions
libglx.so
Intel:

Code: Select all

cat /lib/modprobe.d/blacklist-nvidia.conf
# Do not modify
# This file was generated by nvidia-prime
blacklist nvidia
blacklist nvidia-drm
blacklist nvidia-modeset
alias nvidia off
alias nvidia-drm off
alias nvidia-modeset off

ls /usr/lib/xorg/modules/extensions
libglx.so

User avatar
roblm
Level 10
Level 10
Posts: 3388
Joined: Sun Feb 24, 2013 2:41 pm

Re: Nvidia Prime Select Intel GLX errors

Post by roblm » Tue Sep 03, 2019 9:31 am

Switch to the Nvidia GPU and reboot.

Create a file named /lib/modprobe.d/blacklist-nvidia.conf.old:
sudo touch /lib/modprobe.d/blacklist-nvidia.conf.old

Open the file for editing: xed admin:///lib/modprobe.d/blacklist-nvidia.conf.old

Add these lines:

Code: Select all

blacklist nvidia
blacklist nvidia-drm
blacklist nvidia-modeset
alias nvidia off
alias nvidia-drm off
alias nvidia-modeset off

Open the grub file for editing: xed admin:///etc/default/grub
Add nogpumanager to this line, to disable it:

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
So it will look like this:

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nogpumanager"
Update grub: sudo update-grub


Use this command to switch to the Intel GPU and reboot:

Code: Select all

sudo mv /lib/modprobe.d/blacklist-nvidia.conf.old /lib/modprobe.d/blacklist-nvidia.conf && sudo mv /usr/share/X11/xorg.conf.d/11-nvidia-prime.conf  /usr/share/X11/xorg.conf.d/11-nvidia-prime.conf.old && sudo prime-select intel 
If that corrects the problem, then use this command to switch back to the Nvidia GPU:

Code: Select all

sudo mv /lib/modprobe.d/blacklist-nvidia.conf /lib/modprobe.d/blacklist-nvidia.conf.old && sudo mv /usr/share/X11/xorg.conf.d/11-nvidia-prime.conf.old  /usr/share/X11/xorg.conf.d/11-nvidia-prime.conf && sudo prime-select nvidia

Pickle
Level 1
Level 1
Posts: 22
Joined: Sat Aug 24, 2019 7:56 pm

Re: Nvidia Prime Select Intel GLX errors

Post by Pickle » Tue Sep 03, 2019 11:16 am

The method has the same effect.
Were you expecting nouveau to be loaded in the intel mode?

User avatar
roblm
Level 10
Level 10
Posts: 3388
Joined: Sun Feb 24, 2013 2:41 pm

Re: Nvidia Prime Select Intel GLX errors

Post by roblm » Tue Sep 03, 2019 12:31 pm

Pickle wrote:Were you expecting nouveau to be loaded in the intel mode?
No.

The only other procedure I can think of trying is to install the nvidia-340 driver downloaded from Nvidia’s website and using the info in this topic, under the section: How to install the Nvidia driver on an Optimus laptop

viewtopic.php?f=59&t=154932&start=20#p847465

However, I don’t know if that guide would work because it was tested on newer Nvidia drivers and the modesetting driver was used instead of intel. The intel driver is only used for older Intel GPUs now. You would have to use the Timeshift restore point to go back to the time right after the Mint installation, remove the intel driver (see my 3rd post) and post the Xorg.0.log file before proceeding.


EDITED: Also, you could try Mint 18.3.

Pickle
Level 1
Level 1
Posts: 22
Joined: Sat Aug 24, 2019 7:56 pm

Re: Nvidia Prime Select Intel GLX errors

Post by Pickle » Tue Sep 03, 2019 2:36 pm

roblm I appreciate the time you took to try to get this working, so thank you.

One thing im not sure about is that ive noticed all the GL lib soft links are always pointing at the nvidia libs.
Was the gpumanager supposed to change these?

Ive been wondering if everything was changeing but actual applications like glxinfo /glxgears are being linked with nvidia libs instead of the mesa ones.

Edit:

I have some good news, it works. All was needed is switching the soft links to the GL libs.
sudo ln -s -f /usr/lib/x86_64-linux-gnu/libGL.so.1.0.0 /usr/lib/x86_64-linux-gnu/libGL.so.1
sudo ln -s -f /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0 /usr/lib/x86_64-linux-gnu/libGLX.so.0
ldd /usr/bin/glxinfo

Code: Select all

	linux-vdso.so.1 (0x00007ffd13132000)
	libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007fac237c3000)
	libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fac2348b000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fac2309a000)
	libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x00007fac22e69000)
	libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007fac22bb3000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fac22994000)
	libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fac2276c000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fac22568000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fac23c5e000)
	libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fac22364000)
	libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fac2215e000)
	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007fac21f49000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fac21d41000)
now there are no nvidia libs mentioned in the ldd.
I think i can add these ln commands to the prime-select and it should happen automatically

Edit 2:

I dont know if this a proper solution but it relatively works.
If I do full reboots either mode works every time.
Ive been able to logout from nvidia to intel and intel works. (but nvidia is still on)
Logging back to nvidia doesnt work. Rebooting causes it to work.
But im ok with that, the reboots are pretty quick.
Also i didnt need the GLX change, its the same lib for both. I think the critical one is the GL, but ive also swapped the EGL/GLES libs.

My changes are the unlink and symlink calls in prime-select

Code: Select all

    def _disable_nvidia(self):
        try:
            os.unlink(self._old_blacklist_file)
        except:
            pass

        self._blacklist_nvidia()

        # point back to mesa libs
        os.unlink("/usr/lib/x86_64-linux-gnu/libEGL.so.1")
        os.unlink("/usr/lib/x86_64-linux-gnu/libGLESv1_CM.so.1")
        os.unlink("/usr/lib/x86_64-linux-gnu/libGLESv2.so.2")
        os.unlink("/usr/lib/x86_64-linux-gnu/libGL.so.1")
        os.symlink("libEGL.so.1.0.0", "/usr/lib/x86_64-linux-gnu/libEGL.so.1")
        os.symlink("libGLESv1_CM.so.1.0.0", "/usr/lib/x86_64-linux-gnu/libGLESv1_CM.so.1")
        os.symlink("libGLESv2.so.2.0.0", "/usr/lib/x86_64-linux-gnu/libGLESv2.so.2")
        os.symlink("libGL.so.1.0.0", "/usr/lib/x86_64-linux-gnu/libGL.so.1")

    def _enable_nvidia(self):
        try:
            os.unlink(self._old_blacklist_file)
        except:
            pass

        try:
            os.unlink(self._blacklist_file)
        except:
            pass

        # We only enable KMS once, so that the user
        # can disable it
        if not os.path.isfile(self._nvidia_kms_file):
            self._enable_kms()

        # point back to nvidia libs
        os.unlink("/usr/lib/x86_64-linux-gnu/libEGL.so.1")
        os.unlink("/usr/lib/x86_64-linux-gnu/libGLESv1_CM.so.1")
        os.unlink("/usr/lib/x86_64-linux-gnu/libGLESv2.so.2")
        os.unlink("/usr/lib/x86_64-linux-gnu/libGL.so.1")
        os.symlink("libEGL.so.340.107", "/usr/lib/x86_64-linux-gnu/libEGL.so.1")
        os.symlink("libGLESv1_CM.so.340.107", "/usr/lib/x86_64-linux-gnu/libGLESv1_CM.so.1")
        os.symlink("libGLESv2.so.340.107", "/usr/lib/x86_64-linux-gnu/libGLESv2.so.2")
        os.symlink("libGL.so.340.107", "/usr/lib/x86_64-linux-gnu/libGL.so.1")

User avatar
roblm
Level 10
Level 10
Posts: 3388
Joined: Sun Feb 24, 2013 2:41 pm

Re: Nvidia Prime Select Intel GLX errors

Post by roblm » Tue Sep 03, 2019 8:31 pm

Pickle wrote: One thing im not sure about is that ive noticed all the GL lib soft links are always pointing at the nvidia libs.
Was the gpumanager supposed to change these?
To my knowledge, I know the gpu-manager creates and removes configuration files, depending on what GPU is selected, such as 11-nvidia-prime.conf, blacklist-nvidia.conf and xorg.conf, but I was wondering if it could be involved in creating some misconfiguration.

I have used the ldd /usr/bin/glxinfo command in several older topics to troubleshoot Nvidia problems but the idea never crossed my mind to use it for this Intel problem.

Are you saying that initially libGL.so in /usr/lib/x86_64-linux-gnu was linked to the nvidia-340 driver and the original file was possibly removed? If that is true, then that file could be copied to another location right after installing Mint, before installing the Nvidia driver, and then added back.

This is what is listed on my Optimus system in that location:

Code: Select all

libGL.so.1  	(linked to libGL.so.1.0.0) 
libGL.so.1.0.0
Using the ldd /usr/bin/glxinfo command gets the same output for the Nvidia and Intel GPUs:

Code: Select all

glxinfo |grep renderer
OpenGL renderer string: GeForce GTX 1050/PCIe/SSE2

ldd /usr/bin/glxinfo
	linux-vdso.so.1 (0x00007fff245c2000)
	libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007f6aa576e000)
	libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f6aa5436000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6aa5045000)
	libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f6aa4e14000)
	libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f6aa4b5e000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f6aa493f000)
	libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f6aa4717000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f6aa4513000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f6aa5c09000)
	libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f6aa430f000)
	libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f6aa4109000)
	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f6aa3ef4000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f6aa3cec000)

Code: Select all

glxinfo |grep renderer
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
    GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer, GLX_MESA_query_renderer, 
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: Mesa DRI Intel(R) UHD Graphics 620 (Kabylake GT2) 

ldd /usr/bin/glxinfo
	linux-vdso.so.1 (0x00007ffeb4bd8000)
	libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007fb8d5b0e000)
	libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fb8d57d6000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb8d53e5000)
	libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x00007fb8d51b4000)
	libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007fb8d4efe000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fb8d4cdf000)
	libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fb8d4ab7000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fb8d48b3000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fb8d5fa9000)
	libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fb8d46af000)
	libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fb8d44a9000)
	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007fb8d4294000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fb8d408c000)
I think the newer drivers such as nvidia-driver-390 don’t even install any libGL.so libraries, but are using Nvidia’s GLVND (OpenGL Vendor-Neutral Dispatch) libraries instead:
https://devtalk.nvidia.com/default/topi ... glstreams/

The ldd /usr/bin/glxinfo output from a desktop system using the nvidia-384 driver lists a Nvidia libGL.so library:

Code: Select all

linux-vdso.so.1 =>  (0x00007ffd035c4000)
	libGL.so.1 => /usr/lib/nvidia-384/libGL.so.1 (0x00007f92925fe000)
	libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f92922c4000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9291efa000)
	libnvidia-tls.so.384.130 => /usr/lib/nvidia-384/tls/libnvidia-tls.so.384.130 (0x00007f9291cf6000)
	libnvidia-glcore.so.384.130 => /usr/lib/nvidia-384/libnvidia-glcore.so.384.130 (0x00007f928fe3a000)
	libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f928fc28000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f928fa24000)
	libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f928f802000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f9292940000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f928f4f9000)
	libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f928f2f5000)
	libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f928f0ef000)

Also, it appears that you are not an unlearned newcomer to Linux.

Pickle
Level 1
Level 1
Posts: 22
Joined: Sat Aug 24, 2019 7:56 pm

Re: Nvidia Prime Select Intel GLX errors

Post by Pickle » Tue Sep 03, 2019 8:46 pm

Yes ive been running linux for some time, but im not so versed in the in's and out's of X or ubuntu based distros. But ive learned a bit so far.

I noticed I had multiple copies of the GL libs and i also compared it to the list of installed files from the packages.

Here is my current GL libs pointing to the Nvidia ones. Im not sure if i need to bother with the .distrib ones.

Code: Select all

lrwxrwxrwx  1 root root       20 Jul 14 17:13 libEGL_mesa.so.0 -> libEGL_mesa.so.0.0.0
-rw-r--r--  1 root root   259416 Jul 14 17:13 libEGL_mesa.so.0.0.0
lrwxrwxrwx  1 root root       11 Jul 25 01:06 libEGL.so -> libEGL.so.1
lrwxrwxrwx  1 root root       17 Sep  3 20:16 libEGL.so.1 -> libEGL.so.340.107
-rw-r--r--  1 root root    80448 May 10 08:17 libEGL.so.1.0.0
lrwxrwxrwx  1 root root       15 Sep  3 10:09 libEGL.so.1.distrib -> libEGL.so.1.0.0
-rw-r--r--  1 root root   987736 May 25  2018 libEGL.so.340.107
lrwxrwxrwx  1 root root       17 Jul 25 01:06 libGLESv1_CM.so -> libGLESv1_CM.so.1
lrwxrwxrwx  1 root root       23 Sep  3 20:16 libGLESv1_CM.so.1 -> libGLESv1_CM.so.340.107
-rw-r--r--  1 root root    43328 May 10 08:17 libGLESv1_CM.so.1.0.0
lrwxrwxrwx  1 root root       21 Sep  3 10:09 libGLESv1_CM.so.1.distrib -> libGLESv1_CM.so.1.0.0
-rw-r--r--  1 root root    48024 May 25  2018 libGLESv1_CM.so.340.107
lrwxrwxrwx  1 root root       14 Jul 25 01:06 libGLESv2.so -> libGLESv2.so.2
lrwxrwxrwx  1 root root       20 Sep  3 20:16 libGLESv2.so.2 -> libGLESv2.so.340.107
-rw-r--r--  1 root root    72000 May 10 08:17 libGLESv2.so.2.0.0
lrwxrwxrwx  1 root root       18 Sep  3 10:09 libGLESv2.so.2.distrib -> libGLESv2.so.2.0.0
-rw-r--r--  1 root root    62160 May 25  2018 libGLESv2.so.340.107
lrwxrwxrwx  1 root root       10 Jul 25 01:06 libGL.so -> libGL.so.1
lrwxrwxrwx  1 root root       16 Sep  3 20:16 libGL.so.1 -> libGL.so.340.107
-rw-r--r--  1 root root   567624 May 10 08:17 libGL.so.1.0.0
lrwxrwxrwx  1 root root       14 Sep  3 10:09 libGL.so.1.distrib -> libGL.so.1.0.0
-rw-r--r--  1 root root  1267800 May 25  2018 libGL.so.340.107
-rw-r--r--  1 root root   926218 May 21  2016 libGLU.a
lrwxrwxrwx  1 root root       15 May 21  2016 libGLU.so -> libGLU.so.1.3.1
lrwxrwxrwx  1 root root       15 Aug 22 20:33 libGLU.so.1 -> libGLU.so.1.3.1
-rw-r--r--  1 root root   453352 May 21  2016 libGLU.so.1.3.1
lrwxrwxrwx  1 root root       16 Jul 14 17:13 libGLX_indirect.so.0 -> libGLX_mesa.so.0
lrwxrwxrwx  1 root root       20 Jul 14 17:13 libGLX_mesa.so.0 -> libGLX_mesa.so.0.0.0
-rw-r--r--  1 root root   484184 Jul 14 17:13 libGLX_mesa.so.0.0.0
lrwxrwxrwx  1 root root       11 Sep  3 15:25 libGLX.so -> libGLX.so.0
lrwxrwxrwx  1 root root       15 Sep  3 15:53 libGLX.so.0 -> libGLX.so.0.0.0
-rw-r--r--  1 root root    68144 May 10 08:17 libGLX.so.0.0.0
Here is a ldd of glxinfo with nvidia

ldd /usr/bin/glxinfo

Code: Select all

	linux-vdso.so.1 (0x00007ffd51f38000)
	libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007f74ebd6a000)
	libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f74eba32000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f74eb641000)
	libnvidia-tls.so.340.107 => /usr/lib/x86_64-linux-gnu/tls/libnvidia-tls.so.340.107 (0x00007f74eb43e000)
	libnvidia-glcore.so.340.107 => /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.340.107 (0x00007f74e882a000)
	libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f74e8618000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f74e8414000)
	libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f74e81ec000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f74ec2c5000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f74e7e4e000)
	libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f74e7c4a000)
	libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f74e7a44000)
	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f74e782f000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f74e7627000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f74e7408000)

Post Reply

Return to “Graphics Cards & Monitors”