nvidia-bumblebee installation errors

I am trying to resintall bumblebee coz right now it doesn’t seem to use nvidia in the game. Now when I reinstall following thetutorial here as always, here is the result when I install nvidia-bumblebee:

Output of nvidia-bumblebee-367.44-2.1.x86_64.rpm %posttrans script:
    + '' -x /usr/sbin/dkms ']'
    + /usr/sbin/dkms add -m nvidia -v 367.44 --rpm_safe_upgrade
     
    Creating symlink /var/lib/dkms/nvidia/367.44/source ->
                     /usr/src/nvidia-367.44
     
    DKMS: add completed.
    + /usr/sbin/dkms build -m nvidia -v 367.44
     
    Kernel preparation unnecessary for this kernel.  Skipping...
     
    Building module:
    cleaning build area....
    'make' KERNEL_UNAME=4.8.3-1-default modules......................................................(bad exit status: 2)
    Error! Bad return status for module build on kernel: 4.8.3-1-default (x86_64)
    Consult /var/lib/dkms/nvidia/367.44/build/make.log for more information.
    + /usr/sbin/dkms install -m nvidia -v 367.44
     
    Kernel preparation unnecessary for this kernel.  Skipping...
     
    Building module:
    cleaning build area....
    'make' KERNEL_UNAME=4.8.3-1-default modules..................................................(bad exit status: 2)
    Error! Bad return status for module build on kernel: 4.8.3-1-default (x86_64)
    Consult /var/lib/dkms/nvidia/367.44/build/make.log for more information.
    + popd


And the /var/lib/dkms/nvidia/367.44/build/make.log reads:

CC [M]  /var/lib/dkms/nvidia/367.44/build/nvidia-drm/nvidia-drm-drv.o
/var/lib/dkms/nvidia/367.44/build/nvidia-drm/nvidia-drm-drv.c: In function ‘nvidia_drm_migrate_modeset_ownership’:
/var/lib/dkms/nvidia/367.44/build/nvidia-drm/nvidia-drm-drv.c:455:26: error: ‘struct drm_minor’ has no member named ‘master’
         !file_priv->minor->master)
                          ^~
/var/lib/dkms/nvidia/367.44/build/nvidia-drm/nvidia-drm-drv.c:476:5: error: implicit declaration of function ‘drm_master_put’ -Werror=implicit-function-declaration]
     drm_master_put(&file_priv->minor->master);
     ^~~~~~~~~~~~~~
/var/lib/dkms/nvidia/367.44/build/nvidia-drm/nvidia-drm-drv.c:476:37: error: ‘struct drm_minor’ has no member named ‘master’
     drm_master_put(&file_priv->minor->master);
                                     ^~
/var/lib/dkms/nvidia/367.44/build/nvidia-drm/nvidia-drm-drv.c: In function ‘nvidia_drm_pci_set_busid’:
/var/lib/dkms/nvidia/367.44/build/nvidia-drm/nvidia-drm-drv.c:493:11: error: dereferencing pointer to incomplete type ‘struct drm_master’
     master->unique = nvidia_drm_asprintf("pci:%04x:%02x:%02x.%d",
           ^~
/var/lib/dkms/nvidia/367.44/build/nvidia-drm/nvidia-drm-drv.c: In function ‘nvidia_update_drm_driver_features’:
/var/lib/dkms/nvidia/367.44/build/nvidia-drm/nvidia-drm-drv.c:655:36: error: assignment from incompatible pointer type -Werror=incompatible-pointer-types]
     nv_drm_driver.master_drop      = nvidia_drm_master_drop;
                                    ^
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-4.8.3-1/scripts/Makefile.build:292: /var/lib/dkms/nvidia/367.44/build/nvidia-drm/nvidia-drm-drv.o] Error 1
make[2]: *** [/usr/src/linux-4.8.3-1/Makefile:1497: _module_/var/lib/dkms/nvidia/367.44/build] Error 2
make[2]: Leaving directory '/usr/src/linux-4.8.3-1-obj/x86_64/default'
make[1]: *** [Makefile:150: sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-4.8.3-1'
make: *** [Makefile:81: modules] Error 2


It however shows the installation is completed.

Steam/games haven’t been working for nearly half a year on my machine. I wonder if other opensuser users can run steam/games well at the moment.

Can’t help specifically with your problem, but I know that the last release of Tumbleweed about a week ago appears to have broken the bumblebeed service

I see the following with journalctl -xn


Oct 30 09:31:31 LENOVO systemd[1]: bumblebeed.service: Main process exited, code=exited, status=1/FAILURE
Oct 30 09:31:31 LENOVO systemd[1]: bumblebeed.service: Unit entered failed state.
Oct 30 09:31:31 LENOVO systemd[1]: bumblebeed.service: Failed with result 'exit-code'.
Oct 30 09:31:31 LENOVO audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=bumblebeed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'

I’m on a slightly later kernel than you


Linux LENOVO 4.8.4-1-default #1 SMP PREEMPT Sat Oct 22 11:24:48 UTC 2016 (402d8c1) x86_64 x86_64 x86_64 GNU/Linux

I wonder if the two problems are related?

iDominic, it seems this issue has been fixed or what but today I tried to install nvidia and it installed without error.

Nevertheless, bbswtich seems to have a new bug too with kernel 4.8. See here: https://github.com/Bumblebee-Project/bbswitch/issues/140

So still no luck on running a steam game here and it’s been 6 months. It’s just bugs after bugs, from different parties.