旧 Nvidia GeForce GT 620M 卡安装 Bumblebee

今天在leap 15.0通过以前的添加bumblebee源安装N卡的方法操作,安装完成后,总不能用

[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

我可怜的旧卡NVIDIA GF108M [GeForce GT 620M]被抛弃了。
现在我正在想办法安装legacy驱动配合bumblebee

http://download.nvidia.com/opensuse/leap/15.0/x86_64/ 这里有390.XXX的nvidia驱动源

N卡驱动下载超级慢呀

我安装了这个源里的几个G04(390),好像缺少文件

$ 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

并没有找到系统里有libGL.so.1

$ rpm -ql nvidia-computeG04 nvidia-gfxG04-kmp-default nvidia-glG04 x11-video-nvidiaG04|grep "\.so$"
/usr/lib/libOpenCL.so
/usr/lib/libcuda.so
/usr/lib64/libOpenCL.so
/usr/lib64/libcuda.so
/usr/lib64/libnvidia-ml.so
/usr/lib64/xorg/modules/extensions/nvidia/nvidia-libglx.so
/usr/lib/libnvcuvid.so
/usr/lib/libvdpau_nvidia.so
/usr/lib64/libnvcuvid.so
/usr/lib64/libvdpau_nvidia.so
/usr/lib64/xorg/modules/drivers/nvidia_drv.so

也许可以试试将/usr/lib64/libGL.so.1软链接到/usr/lib64/nvidia下面

目前解决了,感谢!

原来libGL.so不是nvidia驱动里的文件

$ rpm -qf /usr/lib64/libGL.so
libglvnd-devel-1.0.0-lp150.1.1.x86_64

不过,只要

sudo ln -s /usr/lib64/xorg/modules/extensions/nvidia/nvidia-libglx.so /usr/lib64/nvidia/xorg/modules/extensions/libglx.so

optirun就能用了。(primusrun还不能,暂时不管它了)


与显卡驱动相关的好多名词,mesa,glx,gl,glvnd,gles,egl,gfx,xf86-video-intel,vdpau真是头晕

本主题在最后一个回复创建后60分钟后自动锁定。不再允许添加新回复。