[ERROR]Cannot access secondary GPU - error: Could not load GPU driver
弄了半天后,发现dmesg里
[ 66.566920] nvidia-nvlink: Nvlink Core is being initialized, major device number 243
[ 66.567211] NVRM: The NVIDIA GeForce GT 620M GPU installed in this system is
NVRM: supported through the NVIDIA 390.xx Legacy drivers. Please
NVRM: visit http://www.nvidia.com/object/unix.html for more
NVRM: information. The 418.56 NVIDIA driver will ignore
NVRM: this GPU. Continuing probe...
[ 66.567214] NVRM: No NVIDIA graphics adapter found!
[ 66.567314] nvidia-nvlink: Unregistered the Nvlink Core, major device number 243
$ optirun --status
Bumblebee status: Ready (3.2.1). X inactive. Discrete video card is off.
$ optirun -v glxgears
[ 974.737737] [INFO]Response: Yes. X is active.
[ 974.737772] [INFO]Running application using virtualgl.
failed to create drawable
[VGL] ERROR: in OGLDrawable--
[VGL] 82: Could not create Pbuffer
$ optirun glxspheres
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x20
Context is Direct
failed to create drawable
[VGL] ERROR: in OGLDrawable--
[VGL] 82: Could not create Pbuffer
$ primusrun glxspheres
primus: fatal: failed to load any of the libraries: /usr/$LIB/nvidia/libGL.so.1
/usr/$LIB/nvidia/libGL.so.1: cannot open shared object file: No such file or directory
$ primusrun glxgears
primus: fatal: failed to load any of the libraries: /usr/$LIB/nvidia/libGL.so.1
/usr/$LIB/nvidia/libGL.so.1: cannot open shared object file: No such file or directory