Need bumblebee help

Trying to install bumblebee, following this guide:
https://en.opensuse.org/SDB:NVIDIA_Bumblebee

My laptop has nVidia GT 640M as secondary. OpenSUSE 13.2, kernel 3.16.7-7-desktop. I’m getting this when I try to install nvidia-bumblebee:

Additional rpm output:
check sums and md5 sums are ok


Output of nvidia-bumblebee-343.36-1.1.x86_64.rpm %posttrans script:
    ln: failed to create symbolic link '/usr/share/licenses/nvidia-utils/nvidia': File exists
    ++ '' -x /usr/sbin/dkms ']'
    ++ /usr/sbin/dkms add -m nvidia -v 343.36 --rpm_safe_upgrade
    Error! DKMS tree already contains: nvidia-343.36
    You cannot add the same module/version combo more than once.
    ++ /usr/sbin/dkms build -m nvidia -v 343.36
    Module nvidia/343.36 already built for kernel 3.16.7-7-desktop/4
    ++ /usr/sbin/dkms install -m nvidia -v 343.36
    
    nvidia:
    Running module version sanity check.
     - Original module
       - No original module exists within this kernel
     - Installation
       - Installing to /lib/modules/3.16.7-7-desktop/updates//
    Adding any weak-modules
    
    depmod....
    
    Backing up initrd-3.16.7-7-desktop to /boot/initrd-3.16.7-7-desktop.old-dkms
    Making new initrd-3.16.7-7-desktop
    (If next boot fails, revert to initrd-3.16.7-7-desktop.old-dkms image)
    dracut....(bad exit status: 1)
    
    -------- Uninstall Beginning --------
    Module:  nvidia
    Version: 343.36
    Kernel:  3.16.7-7-desktop (x86_64)
    -------------------------------------
    
    Status: Before uninstall, this module version was ACTIVE on this kernel.
    Removing any linked weak-modules
    
    nvidia.ko:
     - Uninstallation
       - Deleting from: /lib/modules/3.16.7-7-desktop/updates//
     - Original module
       - No original module was found for this module on this kernel.
       - Use the dkms install command to reinstall any previous module version.
    
    depmod....
    
    Backing up initrd-3.16.7-7-desktop to /boot/initrd-3.16.7-7-desktop.old-dkms
    Making new initrd-3.16.7-7-desktop
    (If next boot fails, revert to initrd-3.16.7-7-desktop.old-dkms image)
    dracut....(bad exit status: 1)
    : There was a problem remaking your initrd.  You must manually remake it
    before booting into this kernel.
    
    DKMS: uninstall completed.
    Error! Problems with mkinitrd detected.  Automatically uninstalling this module.
    DKMS: Install Failed (mkinitrd problems).  Module rolled back to built state.
    ++ popd

I’m not sure what’s wrong or how to fix that, I’ve tried removing all bumblebee related packages and start anew, but still hitting same wall.

Please help.

I’ve seen similar reported before. Have a read of the following thread

https://forums.opensuse.org/showthread.php/497268-problems-with-updating-the-system

Had you tried install the regular NVIDA driver?? You MUST remove all traces of the regular driver before adding bumblebee. You can not mix packages.

Hi,

Thanks for suggestions, I’ve tried removing all nvidia related packages, except nouveau (there was xf86-video-nv installed). Optirun starts with nouveau.
Also I’ve reinstalled kernel-desktop as suggested in another thread. But still I’m getting the exact same error.

Also this might not be related but I do get “[FAILED] Failed to start Load Kernel Modules.See “systemctl status systemd-modules-load.service” for details.” during boot up and shutdown.

Thanks for help, I’ll give any info you need to solve this.

Hi, Thanks, I’ve tried to remove all traces of NVIDIA driver, but still.
Bumping my own, but I found that Error above (nvidia already installed) comes up when I try to force reinstall nvidia-bumblebee (#zypper in -f nvidia-bumblebee), when it was installed but failed.

If I completely uninstall nvidia-bumblebee, and then reinstall I get this:

check sums and md5 sums are ok
Creating directory NVIDIA-Linux-x86_64-343.36
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 343.36........................................................................................................................................................................................................................................


Output of nvidia-bumblebee-343.36-1.1.x86_64.rpm %posttrans script:
    ++ '' -x /usr/sbin/dkms ']'
    ++ /usr/sbin/dkms add -m nvidia -v 343.36 --rpm_safe_upgrade
    
    Creating symlink /var/lib/dkms/nvidia/343.36/source ->
                     /usr/src/nvidia-343.36
    
    DKMS: add completed.
    ++ /usr/sbin/dkms build -m nvidia -v 343.36
    
    Kernel preparation unnecessary for this kernel.  Skipping...
    
    Building module:
    cleaning build area....(bad exit status: 2)
    make KERNELRELEASE=3.16.7-7-desktop -C /lib/modules/3.16.7-7-desktop/build SUBDIRS=/var/lib/dkms/nvidia/343.36/build modules...........
    cleaning build area....(bad exit status: 2)
    
    DKMS: build completed.
    ++ /usr/sbin/dkms install -m nvidia -v 343.36
    
    nvidia:
    Running module version sanity check.
     - Original module
       - No original module exists within this kernel
     - Installation
       - Installing to /lib/modules/3.16.7-7-desktop/updates//
    Adding any weak-modules
    
    depmod....
    
    Backing up initrd-3.16.7-7-desktop to /boot/initrd-3.16.7-7-desktop.old-dkms
    Making new initrd-3.16.7-7-desktop
    (If next boot fails, revert to initrd-3.16.7-7-desktop.old-dkms image)
    dracut....(bad exit status: 1)
    
    -------- Uninstall Beginning --------
    Module:  nvidia
    Version: 343.36
    Kernel:  3.16.7-7-desktop (x86_64)
    -------------------------------------
    
    Status: Before uninstall, this module version was ACTIVE on this kernel.
    Removing any linked weak-modules
    
    nvidia.ko:
     - Uninstallation
       - Deleting from: /lib/modules/3.16.7-7-desktop/updates//
     - Original module
       - No original module was found for this module on this kernel.
       - Use the dkms install command to reinstall any previous module version.
    
    depmod....
    
    Backing up initrd-3.16.7-7-desktop to /boot/initrd-3.16.7-7-desktop.old-dkms
    Making new initrd-3.16.7-7-desktop
    (If next boot fails, revert to initrd-3.16.7-7-desktop.old-dkms image)
    dracut....(bad exit status: 1)
    : There was a problem remaking your initrd.  You must manually remake it
    before booting into this kernel.
    
    DKMS: uninstall completed.
    Error! Problems with mkinitrd detected.  Automatically uninstalling this module.
    DKMS: Install Failed (mkinitrd problems).  Module rolled back to built state.
    ++ popd

If I try:

/usr/sbin/dkms build -m nvidia -v 343.36

I get:

Module nvidia/343.36 already built for kernel 3.16.7-7-desktop/4

If I try:

sudo /usr/sbin/dkms install -m nvidia -v 343.36

I get this:

nvidia:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.16.7-7-desktop/updates//
Adding any weak-modules

depmod....

Backing up initrd-3.16.7-7-desktop to /boot/initrd-3.16.7-7-desktop.old-dkms
Making new initrd-3.16.7-7-desktop
(If next boot fails, revert to initrd-3.16.7-7-desktop.old-dkms image)
dracut....(bad exit status: 1)

-------- Uninstall Beginning --------
Module:  nvidia
Version: 343.36
Kernel:  3.16.7-7-desktop (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.
Removing any linked weak-modules

nvidia.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.16.7-7-desktop/updates//
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

Backing up initrd-3.16.7-7-desktop to /boot/initrd-3.16.7-7-desktop.old-dkms
Making new initrd-3.16.7-7-desktop
(If next boot fails, revert to initrd-3.16.7-7-desktop.old-dkms image)
dracut....(bad exit status: 1)
: There was a problem remaking your initrd.  You must manually remake it
before booting into this kernel.

DKMS: uninstall completed.
Error! Problems with mkinitrd detected.  Automatically uninstalling this module.
DKMS: Install Failed (mkinitrd problems).  Module rolled back to built state.

It seems like dracut fails, I’m not very good at this, are there any logs I can check?
I’ve installed kernel-sources, kernel_development pattern, open-lldp fcoe-utils packages, tried
installing manually downloaded nvidia-bumblebee-343.22-3.1.x86_64.rpm,
created /etc/sysconfig/kernel file, manually running “dkms install”.
All failed, I have no idea what to try next, please help…

Here is the problem when you install an OLDER version on top of a newer version you can get stuff left form the newer version. The normal NVIDIA driver is newer then the one used in bumblebee so if you don’t first remove the normal NVIDIA driver and then install the bumblebee version on top then try to remove it you end up with a mess. We had one guy take about 2 weeks to straighten it out on his machine. But he did seem too good at following instruction.

IMO unless you like playing with the OS, you should just do a clean OS install to clean out the mess. Then follow the instruction on the bumblebee page exactly.
Note that you can keep you personal data and desktop setting if you tell the installer NOT to format the home partition just mount it as /home

https://en.opensuse.org/SDB:NVIDIA_Bumblebee

Thanks, will try that, I’s good I have just installed this system, not too much tweaaking yet.

Just had the system update Bumblebee, and now it fails once again.
Same error as you had. :frowning:

I did reinstall without formatting home, now I have working bumblebee.
I see updates right now, just wanted to go with installing, but… now I’m afraid to do that.
I’ll look if theres any way to set them as protected (do not touch).

You need to not have the NVIDIA repo active. It will see a lower version and try to install the regular NVIDIA driver. So unistall the NVIDIA driver from Yast-software management. ONly remove packages that hae NVIDA in the package name. Several packages refer to NVIDIA in the descriptions do not remove these.Re install bumblebee package. Do not activate the NVIDIA repo. The nvidia- bumblebee package does not come from the NVIDIA repo.

NVIDIA does not really support optimus on Linux the bumblebee project has modified the NVIDIA installer so that things work. So you don’t want to touch the official NVIDIA drivers.

Maybe a letter or 1K would get their attention and have an official optimus driver. At least a polite complaint on their board would not hurt the cause.

Hi,
I have done some research and it appears that the problem is the following: With driver version 346.35, nvidia changed the inner workings of their kernel module build mechanism. At openSuSE, apparently someone just ran a script that generates an installer-rpm. This script assumes that most things stay the same between driver versions, this time a lot changed and the build fails. I have already sent mails to two developers which seem to be involved with this package but have not yet received a reply.

Some technical details… for example, the suse rpm scriptlet in the nvidia-bumblebee rpm adds a line “ARCH = x86_64” on line 35 of the Makefile of the nvidia kernel module. This used to be a comment line just below the line defining the module (“MODULE_BASENAME := nvidia”). Now, the module_basename line moved one line down and the suse script overwrites this line. Therefore, make doesn’t even find a module to build. However, fixing this just gets you deeper into the quagmire… SuSE developers are probably better informed but who knows, maybe they need some help from nvidia to get their stuff running with the latest version…

Personally I just find it a little bit sad that the package was shipped even though it was BROKEN, obviously it was not even tested.

If you have not yet installed the “update” to 346.35 from openSuSE nvidia-bumblebee repo, DO NOT DO IT until this is fixed.

Emailing the developers probably won’t help report it on bugzilla

https://en.opensuse.org/Bugzilla

Yea i didn’t find any way to create an account for the bugzilla… Wait can you use the forums account? This is pretty weird.

Yep all the same account

Ah thanks :slight_smile:

Update: Regarding my previous post, it seems the guys at openSuSE have fixed the problem, a new version is out, nvidia-bumblebee-346.35-3.1.x86_64.rpm. Note the *-3.1 which was previously *-1.1. So i guess you can update now as long as your mirror server already has the new version (check that first maybe).

Thanks openSuSE for the good work :slight_smile:

Sidenote: nvidia-settings won’t run like before, you need to specify where the libnvidia-gtk3.so… is like this:

optirun -b none nvidia-settings -I /usr/src/NVIDIA-Linux-x86_64-346.35/libnvidia-gtk3.so.346.35 -c :8