Bug 1094769

Summary: Bumblebee: NVIDIA - Unknown header type 7f
Product: [openSUSE] openSUSE Distribution Reporter: Denis Polom <denis.polom>
Component: X11 3rd Party DriverAssignee: Tomáš Chvátal <tchvatal>
Status: RESOLVED WONTFIX QA Contact: Stefan Dirsch <sndirsch>
Severity: Normal    
Priority: P5 - None CC: julio
Version: Leap 15.0   
Target Milestone: ---   
Hardware: 64bit   
OS: Other   
See Also: http://bugzilla.opensuse.org/show_bug.cgi?id=1091828
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Denis Polom 2018-05-27 08:19:09 UTC
Nvidia drivers installed from repo 'http://download.nvidia.com/opensuse/leap/15.0/' 
Then I followed bumblebee installation steps described in 'https://en.opensuse.org/SDB:NVIDIA_Bumblebee' 

Then while listing PCI devices, I'm getting this for NVIDIA:

---
01:00.0 3D controller: NVIDIA Corporation GM107GLM [Quadro M1000M] (rev ff) (prog-if ff)
        !!! Unknown header type 7f
        Kernel modules: nouveau, nvidia_drm, nvidia
---

It wasn't issue for Leap 42.3
Comment 1 Stefan Dirsch 2018-05-28 06:53:07 UTC
No idea. Maybe you can ignore it, if everything else works for you. Reassigning to maintainer of Bumblebee ...
Comment 2 Denis Polom 2018-05-28 09:23:11 UTC
additional info:

# optirun glxgears
glxgears: symbol lookup error: /usr/X11R6/lib64/libGL.so.1: undefined symbol: __GLXGL_CORE_FUNCTIONS


# optirun -b none nvidia-settings -c :8

ERROR: /usr/X11R6/lib64/libGL.so.1: undefined symbol: __GLXGL_CORE_FUNCTIONS
       libnvidia-gtk3.so: cannot open shared object file: No such file or directory
       /usr/X11R6/lib64/libGL.so.1: undefined symbol: __GLXGL_CORE_FUNCTIONS
       libnvidia-gtk2.so: cannot open shared object file: No such file or directory


ERROR: A problem occured when loading the GUI library. Please check your installation and library path.
       You may need to specify this library when calling nvidia-settings. Please run `nvidia-settings
       --help` for usage information.
Comment 3 Denis Polom 2018-05-28 09:34:10 UTC
these errors 
libnvidia-gtk3.so: cannot open shared object file: No such file or directory
libnvidia-gtk2.so: cannot open shared object file: No such file or directory

I solved with

---
cd /usr/X11R6/lib64; ln -s /usr/lib64/libnvidia-gtk2.so.390.59 libnvidia-gtk2.so; ln -s /usr/lib64/libnvidia-gtk3.so.390.59 libnvidia-gtk3.so
---

however still getting undefined symbol error:

---
ERROR: /usr/X11R6/lib64/libGL.so.1: undefined symbol: __GLXGL_CORE_FUNCTIONS
       /usr/X11R6/lib64/libGL.so.1: undefined symbol: __GLXGL_CORE_FUNCTIONS
       /usr/X11R6/lib64/libGL.so.1: undefined symbol: __GLXGL_CORE_FUNCTIONS
       /usr/X11R6/lib64/libGL.so.1: undefined symbol: __GLXGL_CORE_FUNCTIONS


ERROR: A problem occured when loading the GUI library. Please check your installation and library path.
       You may need to specify this library when calling nvidia-settings. Please run `nvidia-settings
       --help` for usage information.
---

Also I believe that after nvidia driver update I will need to recreate the symlinks again as these are pointing to specific driver version only.
Comment 4 Stefan Dirsch 2018-05-28 09:51:24 UTC
Ok. My guess is that Bumblebee no longer works together with libglvnd we now have on sle15/Leap15/TW or things need to be done/configured pretty different ...
Comment 5 Denis Polom 2018-05-28 11:30:14 UTC
also I found that these libraries doesn't exists under '/usr/lib' directory:

./libnvidia-cfg.so.1
./libnvidia-egl-wayland.so.1
./libnvidia-ml.so
./libnvidia-wfb.so.1
 

... and they are mentioned under 'If you are going to use multilib, do also: ' section.
Comment 6 Julio González Gil 2018-06-16 04:17:08 UTC
(In reply to Stefan Dirsch from comment #4)
> Ok. My guess is that Bumblebee no longer works together with libglvnd we now
> have on sle15/Leap15/TW or things need to be done/configured pretty
> different ...

In theory, if the problem is libglvnd, this should do the trick: https://github.com/Bumblebee-Project/Bumblebee/pull/845/files

I rebuilt the package locally with the patch (it's from Arch, and it's not present at openSUSE Leap 15.0), but I still see the same error as Denis when using --bridge primus (virtualgl works fine, but it's slower than primus), so something else must be missing.

Hardware in my case is "NVIDIA Corporation GM107GLM [Quadro M1200 Mobile] (rev a2)"
Comment 7 Tomáš Chvátal 2020-05-15 11:54:58 UTC
Sorry but the optimus tech is in the disrepair state and there is nothing much to be done.

Users are to move Prime: to https://en.opensuse.org/SDB:NVIDIA_SUSE_Prime