Bumblebee and backported nvidia driver do not work

Getting your soundcard to work, using Debian on non-i386 hardware, etc

Bumblebee and backported nvidia driver do not work

Postby toquinho » 2020-11-03 04:03

Hello,

I was using bumblebee and the nvidia driver 418 on buster on a Dell G3 with i7 processor and nvidia 1060 MaxQ. This worked without any problems after resolving some initial configuration issues back in 2019 (described here http://forums.debian.net/viewtopic.php?f=17& or https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920633t=139769).

Today I had to upgrade to the backported nvidia driver 450 because of a commercial cuda software I use which requires the new driver. So I first just updated the nvidia driver from buster-backports. The cuda software is a command line application and worked with the new driver without any additional configuration changes using optirun.

Later I noticed that OpenGL applications no longer worked. I noticed that I had not installed libgl1-nvidia-tesla-450-glvnd-glx, which I then added for amd64 and i386. Nevertheless, I kept getting:

Code: Select all
toquinho@CARTMAN:~$ optirun glxgears
primus: fatal: failed to load any of the libraries: /usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1:/usr/lib/i386-linux-gnu/nvidia/libGL.so.1:/usr/lib/nvidia/libGL.so.1
/usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1: cannot open shared object file: No such file or directory
/usr/lib/i386-linux-gnu/nvidia/libGL.so.1: cannot open shared object file: No such file or directory
/usr/lib/nvidia/libGL.so.1: cannot open shared object file: No such file or directory


Then I noticed that my bumblebee.conf was slightly different from the one in the repository. (I had kept my version during the upgrade to the backported driver although there were differences.) So I purged bumblebee and installed it again from the backports. In the fresh bumblebee.conf I made the changes that I had made in my previous version and that were required to make the nvidia GPU run:

Code: Select all
[bumblebeed]
Driver=nvidia
[driver-nvidia]
PMMETHOD=none
AlwaysUnloadKernelDriver=true


Now I get the following when trying to use primusrun or optirun:

Code: Select all
toquinho@CARTMAN:~$ optirun glxgears
[ 1969.112220] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Unable to locate/open config directory: "/etc/bumblebee/xorg.conf.d"

[ 1969.112236] [ERROR]Aborting because fallback start is disabled.


The directory /etc/bumblebee/xorg.conf.d is empty. inxi still sees the nvidia GPU:

Code: Select all
toquinho@CARTMAN:~$ inxi -G
Graphics:  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel
           Device-2: NVIDIA GP106M [GeForce GTX 1060] driver: nvidia v: 450.66
           Display: x11 server: X.Org 1.20.4 driver: intel resolution: 1920x1080~60Hz
           OpenGL: renderer: Mesa DRI Intel UHD Graphics 630 (Coffeelake 3x8 GT2) v: 4.5 Mesa 18.3.6


The libraries that primusrun tried to load before reinstalling bumblebee are still not there (quoting from above):

Code: Select all
primus: fatal: failed to load any of the libraries: /usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1:/usr/lib/i386-linux-gnu/nvidia/libGL.so.1:/usr/lib/nvidia/libGL.so.1


But I have:

Code: Select all
toquinho@CARTMAN:~$ ls /usr/lib/x86_64-linux-gnu/nvidia/
current  legacy-390xx  libnvidia-cfg.so.1  tesla-450

toquinho@CARTMAN:~$ ls /usr/lib/x86_64-linux-gnu/nvidia/current/
libcuda.so          libEGL_nvidia.so.450.66        libGLESv2_nvidia.so.450.66  libnvcuvid.so.1          libnvidia-encode.so         libnvidia-ml.so.1           libnvidia-ptxjitcompiler.so.1
libcuda.so.1        libGLESv1_CM_nvidia.so.1       libGLX_nvidia.so.0          libnvcuvid.so.450.66     libnvidia-encode.so.1       libnvidia-ml.so.450.66      libnvidia-ptxjitcompiler.so.450.66
libcuda.so.450.66   libGLESv1_CM_nvidia.so.450.66  libGLX_nvidia.so.450.66     libnvidia-cfg.so.1       libnvidia-encode.so.450.66  libnvidia-opencl.so.1       libvdpau_nvidia.so.1
libEGL_nvidia.so.0  libGLESv2_nvidia.so.2          libnvcuvid.so               libnvidia-cfg.so.450.66  libnvidia-ml.so             libnvidia-opencl.so.450.66  libvdpau_nvidia.so.450.66


Needles to say that I would be terribly grateful for any advice.

Best regards,

Toquinho
toquinho
 
Posts: 39
Joined: 2014-06-24 16:50

Re: Bumblebee and backported nvidia driver do not work

Postby stevepusser » 2020-11-03 11:17

The Tesla 450 and regular nvidia-driver 450 sets of packages are different sets, derived from different source packages. Can you confirm that you have not mixed up any of those?
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12131
Joined: 2009-10-06 05:53

Re: Bumblebee and backported nvidia driver do not work

Postby toquinho » 2020-11-03 11:46

Thanks a lot for your quick response. I did install libglx-nvidia-tesla-450-0 and libglx-nvidia-tesla-450-0 (both amd64 and i386) in an attempt to make OpenGL work again. (I was trying to run an i386 application that uses OpenGL when I saw that OpenGL did not work with the new nvidia drivers.) Below I posted a list of all installed nvidia packages. I noticed that there are some legacy packages, too. I do not know how they got installed.

Would it make sense to purge all this including bumblebee and revert to 418?

Code: Select all
toquinho@CARTMAN:~# dpkg -l | grep nvidia
ii  bumblebee-nvidia                              3.2.1-26~bpo10+1                             amd64        NVIDIA Optimus support using the proprietary NVIDIA driver
ii  glx-alternative-nvidia                        1.2.0~bpo10+1                                amd64        allows the selection of NVIDIA as GLX provider
ii  libegl-nvidia-legacy-390xx0:i386              390.138-1~deb10u1                            i386         NVIDIA binary EGL library (390xx legacy version)
ii  libegl-nvidia0:amd64                          450.66-1~bpo10+1                             amd64        NVIDIA binary EGL library
ii  libegl-nvidia0:i386                           450.66-1~bpo10+1                             i386         NVIDIA binary EGL library
ii  libegl1-nvidia-legacy-390xx:i386              390.138-1~deb10u1                            i386         NVIDIA binary EGL library (non-GLVND variant) (390xx legacy version)
ii  libgl1-nvidia-glvnd-glx:amd64                 450.66-1~bpo10+1                             amd64        NVIDIA binary OpenGL/GLX library (GLVND variant)
ii  libgl1-nvidia-legacy-390xx-glx:i386           390.138-1~deb10u1                            i386         NVIDIA binary OpenGL/GLX library (non-GLVND variant) (390xx legacy version)
ii  libgl1-nvidia-tesla-450-glvnd-glx:amd64       450.51.06-2~bpo10+1                          amd64        NVIDIA binary OpenGL/GLX library (GLVND variant) (Tesla 450 version)
ii  libgl1-nvidia-tesla-450-glvnd-glx:i386        450.51.06-2~bpo10+1                          i386         NVIDIA binary OpenGL/GLX library (GLVND variant) (Tesla 450 version)
ii  libgles-nvidia-legacy-390xx1:i386             390.138-1~deb10u1                            i386         NVIDIA binary OpenGL|ES 1.x library (390xx legacy version)
ii  libgles-nvidia-legacy-390xx2:i386             390.138-1~deb10u1                            i386         NVIDIA binary OpenGL|ES 2.x library (390xx legacy version)
ii  libgles-nvidia1:amd64                         450.66-1~bpo10+1                             amd64        NVIDIA binary OpenGL|ES 1.x library
ii  libgles-nvidia1:i386                          450.66-1~bpo10+1                             i386         NVIDIA binary OpenGL|ES 1.x library
ii  libgles-nvidia2:amd64                         450.66-1~bpo10+1                             amd64        NVIDIA binary OpenGL|ES 2.x library
ii  libgles-nvidia2:i386                          450.66-1~bpo10+1                             i386         NVIDIA binary OpenGL|ES 2.x library
ii  libglx-nvidia-legacy-390xx0:i386              390.138-1~deb10u1                            i386         NVIDIA binary GLX library (390xx legacy version)
ii  libglx-nvidia-tesla-450-0:amd64               450.51.06-2~bpo10+1                          amd64        NVIDIA binary GLX library (Tesla 450 version)
ii  libglx-nvidia-tesla-450-0:i386                450.51.06-2~bpo10+1                          i386         NVIDIA binary GLX library (Tesla 450 version)
ii  libglx-nvidia0:amd64                          450.66-1~bpo10+1                             amd64        NVIDIA binary GLX library
ii  libglx-nvidia0:i386                           450.66-1~bpo10+1                             i386         NVIDIA binary GLX library
ii  libnvidia-cbl:amd64                           450.66-1~bpo10+1                             amd64        NVIDIA binary Vulkan ray tracing (cbl) library
ii  libnvidia-cfg1:amd64                          450.66-1~bpo10+1                             amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-compiler:amd64                      450.66-1~bpo10+1                             amd64        NVIDIA runtime compiler library
ii  libnvidia-eglcore:amd64                       450.66-1~bpo10+1                             amd64        NVIDIA binary EGL core libraries
ii  libnvidia-eglcore:i386                        450.66-1~bpo10+1                             i386         NVIDIA binary EGL core libraries
ii  libnvidia-encode1:amd64                       450.66-1~bpo10+1                             amd64        NVENC Video Encoding runtime library
ii  libnvidia-glcore:amd64                        450.66-1~bpo10+1                             amd64        NVIDIA binary OpenGL/GLX core libraries
ii  libnvidia-glcore:i386                         450.66-1~bpo10+1                             i386         NVIDIA binary OpenGL/GLX core libraries
ii  libnvidia-glvkspirv:amd64                     450.66-1~bpo10+1                             amd64        NVIDIA binary Vulkan Spir-V compiler library
ii  libnvidia-glvkspirv:i386                      450.66-1~bpo10+1                             i386         NVIDIA binary Vulkan Spir-V compiler library
ii  libnvidia-legacy-390xx-cfg1:amd64             390.138-1~deb10u1                            amd64        NVIDIA binary OpenGL/GLX configuration library (390xx legacy version)
ii  libnvidia-legacy-390xx-cfg1:i386              390.138-1~deb10u1                            i386         NVIDIA binary OpenGL/GLX configuration library (390xx legacy version)
ii  libnvidia-legacy-390xx-eglcore:i386           390.138-1~deb10u1                            i386         NVIDIA binary EGL core libraries (390xx legacy version)
ii  libnvidia-legacy-390xx-glcore:amd64           390.138-1~deb10u1                            amd64        NVIDIA binary OpenGL/GLX core libraries (390xx legacy version)
ii  libnvidia-legacy-390xx-glcore:i386            390.138-1~deb10u1                            i386         NVIDIA binary OpenGL/GLX core libraries (390xx legacy version)
ii  libnvidia-legacy-390xx-ml1:amd64              390.138-1~deb10u1                            amd64        NVIDIA Management Library (NVML) runtime library (390xx legacy version)
ii  libnvidia-ml1:amd64                           450.66-1~bpo10+1                             amd64        NVIDIA Management Library (NVML) runtime library
ii  libnvidia-ptxjitcompiler1:amd64               450.66-1~bpo10+1                             amd64        NVIDIA PTX JIT Compiler
ii  libnvidia-ptxjitcompiler1:i386                450.66-1~bpo10+1                             i386         NVIDIA PTX JIT Compiler
ii  libnvidia-rtcore:amd64                        418.152.00-1                                 amd64        NVIDIA binary Vulkan ray tracing (rtcore) library
ii  libnvidia-tesla-450-glcore:amd64              450.51.06-2~bpo10+1                          amd64        NVIDIA binary OpenGL/GLX core libraries (Tesla 450 version)
ii  libnvidia-tesla-450-glcore:i386               450.51.06-2~bpo10+1                          i386         NVIDIA binary OpenGL/GLX core libraries (Tesla 450 version)
ii  mate-sensors-applet-nvidia                    1.20.3-1                                     amd64        Display readings from hardware sensors in your MATE panel (NVIDIA sensors)
ii  nvidia-alternative                            450.66-1~bpo10+1                             amd64        allows the selection of NVIDIA as GLX provider
ii  nvidia-driver                                 450.66-1~bpo10+1                             amd64        NVIDIA metapackage
ii  nvidia-driver-bin                             450.66-1~bpo10+1                             amd64        NVIDIA driver support binaries
ii  nvidia-driver-libs:amd64                      450.66-1~bpo10+1                             amd64        NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries)
ii  nvidia-egl-common                             450.66-1~bpo10+1                             amd64        NVIDIA binary EGL driver - common files
ii  nvidia-egl-icd:amd64                          450.66-1~bpo10+1                             amd64        NVIDIA EGL installable client driver (ICD)
ii  nvidia-installer-cleanup                      20151021+9                                   amd64        cleanup after driver installation with the nvidia-installer
ii  nvidia-kernel-common                          20151021+9                                   amd64        NVIDIA binary kernel module support files
ii  nvidia-kernel-dkms                            450.66-1~bpo10+1                             amd64        NVIDIA binary kernel module DKMS source
ii  nvidia-kernel-support                         450.66-1~bpo10+1                             amd64        NVIDIA binary kernel module support files
ii  nvidia-legacy-390xx-alternative               390.138-1~deb10u1                            amd64        allows the selection of NVIDIA as GLX provider (390xx legacy version)
ii  nvidia-legacy-390xx-driver-libs-nonglvnd:i386 390.138-1~deb10u1                            i386         NVIDIA metapackage (non-GLVND OpenGL/GLX/EGL/GLES libraries) (390xx legacy)
ii  nvidia-legacy-390xx-kernel-dkms               390.138-1~deb10u1                            amd64        NVIDIA binary kernel module DKMS source (390xx legacy version)
ii  nvidia-legacy-390xx-kernel-support            390.138-1~deb10u1                            amd64        NVIDIA binary kernel module support files (390xx legacy version)
ii  nvidia-legacy-390xx-vdpau-driver:amd64        390.138-1~deb10u1                            amd64        Video Decode and Presentation API for Unix - NVIDIA driver (390xx legacy)
ii  nvidia-legacy-check                           418.152.00-1                                 amd64        check for NVIDIA GPUs requiring a legacy driver
ii  nvidia-modprobe                               450.66-1~bpo10+1                             amd64        utility to load NVIDIA kernel modules and create device nodes
ii  nvidia-opencl-common                          418.152.00-1                                 amd64        NVIDIA OpenCL driver - common files
ii  nvidia-opencl-dev:amd64                       9.2.148-7                                    amd64        NVIDIA OpenCL development files
ii  nvidia-opencl-icd:amd64                       450.66-1~bpo10+1                             amd64        NVIDIA OpenCL installable client driver (ICD)
ii  nvidia-persistenced                           418.56-1                                     amd64        daemon to maintain persistent software state in the NVIDIA driver
ii  nvidia-settings                               450.66-1~bpo10+1                             amd64        tool for configuring the NVIDIA graphics driver
ii  nvidia-settings-legacy-390xx                  390.116-1                                    amd64        tool for configuring the NVIDIA graphics driver (390xx legacy version)
ii  nvidia-support                                20151021+9                                   amd64        NVIDIA binary graphics driver support files
ii  nvidia-tesla-450-alternative                  450.51.06-2~bpo10+1                          amd64        allows the selection of NVIDIA as GLX provider (Tesla 450 version)
ii  nvidia-vdpau-driver:amd64                     450.66-1~bpo10+1                             amd64        Video Decode and Presentation API for Unix - NVIDIA driver
ii  xserver-xorg-video-nvidia                     450.66-1~bpo10+1                             amd64        NVIDIA binary Xorg driver
ii  xserver-xorg-video-nvidia-legacy-390xx        390.138-1~deb10u1                            amd64        NVIDIA binary Xorg driver (390xx legacy version)
toquinho
 
Posts: 39
Joined: 2014-06-24 16:50


Return to Hardware

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable