Bug#954905: Can not using optirun to access second GPU and run opengl program
gulfstream
wglxy at china.com
Wed Mar 25 06:11:01 GMT 2020
Package: bumblebee
Version: 3.2.1-22
Severity: grave
My laptop has two GPU, the first is intel GPU, the second is NVIDIA Quadro P2000 Mobile.
After I install bumblebee, the second GPU can be shut down.
$ lspci -nn | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:3e94]
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107GLM [Quadro P2000 Mobile] [10de:1cba] (rev ff)
When I want to run opengl program with the second GPU, I run the program using optirun, for example:
$optirun glxgears
But the opengl program can not be run, and error message is got:
$ optirun glxgears
[ 871.970860] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[ 871.970883] [ERROR]Aborting because fallback start is disabled.
And the second GPU is turned on. If I use lspci command, the message is got as below.
$ lspci -nn | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:3e94]
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107GLM [Quadro P2000 Mobile] [10de:1cba] (rev a1)
Then, I run nvidia-smi, and get the messages:
$ nvidia-smi
Wed Mar 25 14:07:57 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.64 Driver Version: 440.64 CUDA Version: N/A |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Quadro P2000 wi... Off | 00000000:01:00.0 Off | N/A |
| N/A 46C P0 N/A / N/A | 0MiB / 4040MiB | 2% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
The bumblebee can not manage the second GPU for long time. Would you please resolve the problem? Thank you very much!
Best regards,
Gulfstream
-- Package-specific info:
OpenGL and NVIDIA library files installed:
lrwxrwxrwx 1 root root 25 Mar 25 00:03 /etc/alternatives/glx -> /usr/lib/nvidia/bumblebee
lrwxrwxrwx 1 root root 51 Mar 25 00:03 /etc/alternatives/glx--libEGL.so.1-x86_64-linux-gnu -> /usr/lib/mesa-diverted/x86_64-linux-gnu/libEGL.so.1
lrwxrwxrwx 1 root root 48 Mar 25 00:03 /etc/alternatives/glx--libGL.so.1-i386-linux-gnu -> /usr/lib/mesa-diverted/i386-linux-gnu/libGL.so.1
lrwxrwxrwx 1 root root 50 Mar 25 00:03 /etc/alternatives/glx--libGL.so.1-x86_64-linux-gnu -> /usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1
lrwxrwxrwx 1 root root 54 Mar 25 00:03 /etc/alternatives/glx--libGLESv2.so.2-x86_64-linux-gnu -> /usr/lib/mesa-diverted/x86_64-linux-gnu/libGLESv2.so.2
lrwxrwxrwx 1 root root 40 Mar 25 00:03 /etc/alternatives/glx--libGLX_indirect.so.0-i386-linux-gnu -> /usr/lib/i386-linux-gnu/libGLX_mesa.so.0
lrwxrwxrwx 1 root root 42 Mar 25 00:03 /etc/alternatives/glx--libGLX_indirect.so.0-x86_64-linux-gnu -> /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
lrwxrwxrwx 1 root root 42 Mar 25 00:03 /etc/alternatives/glx--nvidia-blacklists-nouveau.conf -> /etc/nvidia/nvidia-blacklists-nouveau.conf
lrwxrwxrwx 1 root root 32 Mar 25 00:03 /etc/alternatives/glx--nvidia-modprobe.conf -> /etc/nvidia/nvidia-modprobe.conf
lrwxrwxrwx 1 root root 23 Mar 25 00:03 /etc/alternatives/nvidia -> /usr/lib/nvidia/current
lrwxrwxrwx 1 root root 57 Mar 25 00:03 /etc/alternatives/nvidia--libGLX_nvidia.so.0-i386-linux-gnu -> /usr/lib/i386-linux-gnu/nvidia/current/libGLX_nvidia.so.0
lrwxrwxrwx 1 root root 59 Mar 25 00:03 /etc/alternatives/nvidia--libGLX_nvidia.so.0-x86_64-linux-gnu -> /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.0
lrwxrwxrwx 1 root root 46 Mar 25 00:03 /etc/alternatives/nvidia--libglxserver_nvidia.so -> /usr/lib/nvidia/current/libglxserver_nvidia.so
lrwxrwxrwx 1 root root 58 Mar 25 00:03 /etc/alternatives/nvidia--libnvidia-ml.so.1-x86_64-linux-gnu -> /usr/lib/x86_64-linux-gnu/nvidia/current/libnvidia-ml.so.1
lrwxrwxrwx 1 root root 70 Mar 25 00:03 /etc/alternatives/nvidia--libnvidia-ptxjitcompiler.so.1-x86_64-linux-gnu -> /usr/lib/x86_64-linux-gnu/nvidia/current/libnvidia-ptxjitcompiler.so.1
lrwxrwxrwx 1 root root 61 Mar 25 00:03 /etc/alternatives/nvidia--libvdpau_nvidia.so.1-x86_64-linux-gnu -> /usr/lib/x86_64-linux-gnu/nvidia/current/libvdpau_nvidia.so.1
lrwxrwxrwx 1 root root 38 Mar 25 00:03 /etc/alternatives/nvidia--nv-control-dpy -> /usr/lib/nvidia/current/nv-control-dpy
lrwxrwxrwx 1 root root 50 Mar 25 00:03 /etc/alternatives/nvidia--nvidia-blacklists-nouveau.conf -> /etc/nvidia/current/nvidia-blacklists-nouveau.conf
lrwxrwxrwx 1 root root 47 Mar 25 00:03 /etc/alternatives/nvidia--nvidia-drm-outputclass.conf -> /etc/nvidia/current/nvidia-drm-outputclass.conf
lrwxrwxrwx 1 root root 36 Mar 25 00:03 /etc/alternatives/nvidia--nvidia-load.conf -> /etc/nvidia/current/nvidia-load.conf
lrwxrwxrwx 1 root root 40 Mar 25 00:03 /etc/alternatives/nvidia--nvidia-modprobe.conf -> /etc/nvidia/current/nvidia-modprobe.conf
lrwxrwxrwx 1 root root 39 Mar 25 00:03 /etc/alternatives/nvidia--nvidia-settings -> /usr/lib/nvidia/current/nvidia-settings
lrwxrwxrwx 1 root root 44 Mar 25 00:03 /etc/alternatives/nvidia--nvidia-settings.1.gz -> /usr/lib/nvidia/current/nvidia-settings.1.gz
lrwxrwxrwx 1 root root 47 Mar 25 00:03 /etc/alternatives/nvidia--nvidia-settings.desktop -> /usr/lib/nvidia/current/nvidia-settings.desktop
lrwxrwxrwx 1 root root 34 Mar 25 00:03 /etc/alternatives/nvidia--nvidia-smi -> /usr/lib/nvidia/current/nvidia-smi
lrwxrwxrwx 1 root root 39 Mar 25 00:03 /etc/alternatives/nvidia--nvidia-smi.1.gz -> /usr/lib/nvidia/current/nvidia-smi.1.gz
lrwxrwxrwx 1 root root 37 Mar 25 00:03 /etc/alternatives/nvidia--nvidia_drv.so -> /usr/lib/nvidia/current/nvidia_drv.so
/etc/modprobe.d:
total 32
drwxr-xr-x 2 root root 175 Jan 28 13:23 .
drwxr-xr-x 162 root root 8192 Mar 25 13:51 ..
-rw-r--r-- 1 root root 76 May 26 2019 blacklist.conf
-rw-r--r-- 1 root root 543 Mar 24 23:45 bumblebee.conf
-rw-r--r-- 1 root root 127 Jan 2 2019 dkms.conf
-rw-r--r-- 1 root root 379 Jan 16 2019 mdadm.conf
lrwxrwxrwx 1 root root 53 Dec 21 22:29 nvidia-blacklists-nouveau.conf -> /etc/alternatives/glx--nvidia-blacklists-nouveau.conf
-rw-r--r-- 1 root root 260 Jan 27 2019 nvidia-kernel-common.conf
lrwxrwxrwx 1 root root 43 Dec 21 22:29 nvidia.conf -> /etc/alternatives/glx--nvidia-modprobe.conf
/etc/modprobe.d/blacklist.conf:# generated by nvidia-installer
/etc/modprobe.d/nvidia-kernel-common.conf:alias char-major-195* nvidia
/etc/modprobe.d/nvidia-kernel-common.conf:#options nvidia NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=44 NVreg_DeviceFileMode=0660
/etc/modprobe.d/nvidia-kernel-common.conf:# options nvidia NVreg_EnableAGPSBA=1
/etc/modprobe.d/nvidia-kernel-common.conf:# options nvidia NVreg_EnableAGPFW=1
/etc/modprobe.d/bumblebee.conf:# do not automatically load nouveau as it may prevent nvidia from loading
/etc/modprobe.d/bumblebee.conf:# do not automatically load nvidia as it's unloaded anyway when bumblebeed
/etc/modprobe.d/bumblebee.conf:blacklist nvidia
/etc/modprobe.d/bumblebee.conf:blacklist nvidia-current
/etc/modprobe.d/bumblebee.conf:blacklist nvidia-tesla-440
/etc/modprobe.d/bumblebee.conf:blacklist nvidia-tesla-418
/etc/modprobe.d/bumblebee.conf:blacklist nvidia-legacy-390xx
/etc/modprobe.d/bumblebee.conf:blacklist nvidia-legacy-340xx
/etc/modprobe.d/blacklist.conf:blacklist nouveau
/etc/modprobe.d/blacklist.conf:options nouveau modeset=0
/etc/modprobe.d/bumblebee.conf:# do not automatically load nouveau as it may prevent nvidia from loading
/etc/modprobe.d/bumblebee.conf:blacklist nouveau
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.4.0-4-amd64 (SMP w/12 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8), LANGUAGE=zh_CN.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages bumblebee depends on:
ii init-system-helpers 1.57
ii libbsd0 0.10.0-1
ii libc6 2.30-2
ii libglib2.0-0 2.64.1-1
ii libkmod2 27-2
ii libx11-6 2:1.6.9-2
ii lsb-base 11.1.0
ii xserver-xorg-core 2:1.20.7-4
Versions of packages bumblebee recommends:
ii bbswitch-dkms 0.8-8
ii primus-libs 0~20150328-10
Versions of packages bumblebee suggests:
ii bumblebee-nvidia 3.2.1-22
Versions of packages bumblebee is related to:
pn nvidia-driver-any <none>
pn nvidia-driver-libs-any <none>
ii primus-libs 0~20150328-10
ii xserver-xorg-video-nvidia [xserver-xorg-video-nvidia-any] 440.64-2
ii xserver-xorg-video-nvidia-legacy-390xx [xserver-xorg-video-n 390.132-2
-- no debconf information
More information about the pkg-nvidia-devel
mailing list