nvidia-bumblebee 352.41-1.1 made my system unbootable

Hi!
Dear fellow linuxers, I hope you can help me figure this one out.

I’m on a Schenker XMG A505 (http://www.mysn.de/xmg-advanced-gaming-notebooks/xmg-a505) with an NVIDIA GeForce GTX 960M 2048MB GDDR5 + internal Intel graphic in NVIDIA Optimus.

For now, bumblebee had worked really fantastic to me.

On 15 September, zypper pulled a new nvidia drivers version, as nvidia-bumblebee-352.41-1.1.x86_64.rpm and nvidia-bumblebee-32bit-352.41-1.1.x86_64.rpm from repo:

 4 | X11:Bumblebee             | X11:Bumblebee                      | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/repositories/X11:/Bumblebee/openSUSE_13.2/  

from /var/log/zypp/history:

# 2015-09-15 00:38:11 nvidia-bumblebee-352.41-1.1.x86_64.rpm installed ok
# Additional rpm output:
# converted 'http://us.download.nvidia.com/XFree86/Linux-x86_64/352.41/NVIDIA-Linux-x86_64-352.41.run' (ANSI_X3.4-1968) -> 'http://us.download.nvidia.com/XFree86/Linux-x86_64/352.41/NVIDIA-Linux-x86_64-352.41.run' (UTF-8)
# --2015-09-15 00:37:23--  http://us.download.nvidia.com/XFree86/Linux-x86_64/352.41/NVIDIA-Linux-x86_64-352.41.run
# Resolving us.download.nvidia.com (us.download.nvidia.com)... 92.226.0.192, 92.226.0.193
# Connecting to us.download.nvidia.com (us.download.nvidia.com)|92.226.0.192|:80... connected.
# HTTP request sent, awaiting response... 200 OK
# Length: 77180264 (74M) [application/octet-stream]
# Saving to: 'NVIDIA-Linux-x86_64-352.41.run'
# 
#      0K .......... .......... .......... .......... ..........  0%  257K 4m53s
#     50K .......... .......... .......... .......... ..........  0% 4.26M 2m35s

...]

#  75350K .......... .......... .                               100% 5.08M=32s
# 
# 2015-09-15 00:37:56 (2.29 MB/s) - 'NVIDIA-Linux-x86_64-352.41.run' saved [77180264/77180264]
# 
# check sums and md5 sums are ok
# Creating directory NVIDIA-Linux-x86_64-352.41
# Verifying archive integrity... OK
# Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 352.41...........................................................................................................................................................................................................................................................
# + '' -x /usr/sbin/dkms ']'
# + /usr/sbin/dkms remove -m nvidia -v 352.21 --all --rpm_safe_upgrade
# 
# -------- Uninstall Beginning --------
# Module:  nvidia
# Version: 352.21
# Kernel:  3.16.7-21-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-21-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.
# 
# 
# nvidia-uvm.ko:
#  - Uninstallation
#    - Deleting from: /lib/modules/3.16.7-21-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....
# 
# DKMS: uninstall completed.
# 
# -------- Uninstall Beginning --------
# Module:  nvidia
# Version: 352.21
# Kernel:  3.16.7-24-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-24-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.
# 
# 
# nvidia-uvm.ko:
#  - Uninstallation
#    - Deleting from: /lib/modules/3.16.7-24-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....
# 
# DKMS: uninstall completed.
# 
# -------- Uninstall Beginning --------
# Module:  nvidia
# Version: 352.21
# Kernel:  3.16.7-62-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-62-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.
# 
# 
# nvidia-uvm.ko:
#  - Uninstallation
#    - Deleting from: /lib/modules/3.16.7-62-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....
# 
# DKMS: uninstall completed.
# 
# ------------------------------
# Deleting module version: 352.21
# completely from the DKMS tree.
# ------------------------------
# Done.
# 
2015-09-15 00:38:11|install|nvidia-bumblebee|352.41-1.1|x86_64||X11:Bumblebee|c299e5f4cdd45440dbe094281a73e20bdad484f157a7d994fcd788b0d334811f|
# 2015-09-15 00:38:49 nvidia-bumblebee-32bit-352.41-1.1.x86_64.rpm installed ok
# Additional rpm output:
# converted 'http://us.download.nvidia.com/XFree86/Linux-x86_64/352.41/NVIDIA-Linux-x86_64-352.41.run' (ANSI_X3.4-1968) -> 'http://us.download.nvidia.com/XFree86/Linux-x86_64/352.41/NVIDIA-Linux-x86_64-352.41.run' (UTF-8)
# --2015-09-15 00:38:11--  http://us.download.nvidia.com/XFree86/Linux-x86_64/352.41/NVIDIA-Linux-x86_64-352.41.run
# Resolving us.download.nvidia.com (us.download.nvidia.com)... 92.226.0.193, 92.226.0.192
# Connecting to us.download.nvidia.com (us.download.nvidia.com)|92.226.0.193|:80... connected.
# HTTP request sent, awaiting response... 200 OK
# Length: 77180264 (74M) [application/octet-stream]
# Saving to: 'NVIDIA-Linux-x86_64-352.41.run'
# 
#      0K .......... .......... .......... .......... ..........  0%  238K 5m16s
#     50K .......... .......... .......... .......... ..........  0% 4.85M 2m45s

...]

#  75350K .......... .......... .                               100% 7.03M=31s
# 
# 2015-09-15 00:38:43 (2.36 MB/s) - 'NVIDIA-Linux-x86_64-352.41.run' saved [77180264/77180264]
# 
# check sums and md5 sums are ok
# Creating directory NVIDIA-Linux-x86_64-352.41
# Verifying archive integrity... OK
# Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 352.41...........................................................................................................................................................................................................................................................
# 
2015-09-15 00:38:49|install|nvidia-bumblebee-32bit|352.41-1.1|x86_64||X11:Bumblebee|8e6b7f53dbca500c6f27f3fb66e9385ebb50dc7a1d195a4d63f18338beb8e94b|

...]

# 2015-09-15 00:39:32 Output of nvidia-bumblebee-352.41-1.1.x86_64.rpm %posttrans script:
#     + '' -x /usr/sbin/dkms ']'
#     + /usr/sbin/dkms add -m nvidia -v 352.41 --rpm_safe_upgrade
#     
#     Creating symlink /var/lib/dkms/nvidia/352.41/source ->
#                      /usr/src/nvidia-352.41
#     
#     DKMS: add completed.
#     + /usr/sbin/dkms build -m nvidia -v 352.41
#     
#     Kernel preparation unnecessary for this kernel.  Skipping...
#     
#     Building module:
#     cleaning build area....
#     make KERNELRELEASE=3.16.7-24-desktop module KERNEL_UNAME=3.16.7-24-desktop; make -C uvm module KERNEL_UNAME=3.16.7-24-desktop KBUILD_EXTMOD=/var/lib/dkms/nvidia/352.41/build/uvm..........
#     cleaning build area....
#     
#     DKMS: build completed.
#     + /usr/sbin/dkms install -m nvidia -v 352.41
#     
#     nvidia:
#     Running module version sanity check.
#      - Original module
#        - No original module exists within this kernel
#      - Installation
#        - Installing to /lib/modules/3.16.7-24-desktop/updates//
#     
#     nvidia-uvm.ko:
#     Running module version sanity check.
#      - Original module
#        - No original module exists within this kernel
#      - Installation
#        - Installing to /lib/modules/3.16.7-24-desktop/updates//
#     Adding any weak-modules
#     
#     depmod....
#     
#     DKMS: install completed.
#     + popd
2015-09-15 16:20:36|install|java-1_8_0-openjdk-headless|1.8.0.60-15.2|x86_64||repo-update|d947b079a4cced320cca4745601e08a6cc71d7fd7217cc881a23297de8157662|
2015-09-15 16:20:36|install|java-1_8_0-openjdk|1.8.0.60-15.2|x86_64||repo-update|f48221527abc0da7b746d14298e051bf3262dfd2630a6722d515f83fb932b1f8|
...]

You can see that the kernel module is made, but it is not added to the initrd in the boot partition yet at this time. Therefore, booting worked flawlessly from 2015-09-15 (when the new bumblebee nvidia driver was installed) until 2015-09-23.

At 2015-09-22, a new version of dracut was installed, which caused the initrd to be rebuilt:

2015-09-22 22:30:44|install|chromium|45.0.2454.85-43.1|x86_64||repo-update|2aa0dd102de5c4017f79dd1f0d3f42a8a1c4fafd928a233edd53cdfa78013044|
2015-09-22 22:30:44|install|dracut|037-17.21.1|x86_64||repo-update|10fef431b587fe5c176ca35a15ba5d76c0dc33496d25d5fb1f60d8c84e998a13|

# 2015-09-22 22:31:53 Output of dracut-037-17.21.1.x86_64.rpm %posttrans script:
#     Creating initrd: /boot/initrd-3.11.10-25-desktop
#     Executing: /usr/bin/dracut --logfile /var/log/YaST2/mkinitrd.log --force /boot/initrd-3.11.10-25-desktop 3.11.10-25-desktop

... --> http://pastebin.com/VzN593PX ]


When booting again next morning, my kernel did not make it through the bootup process. I hope I will be able to upload the photographed boot log as JPGs, attaching them to this post.

I booted from the openSUSE 13.2 DVD to make sure all filesystems were intact and it was no device failure (RAM, graphics card…) and also booted successfully into Windows 8.1. Very happy that I could pretty much narrow it down to a software-only problem.

Due to the zypper install log and some boot error messages mentioning nvidia and NVRM, I decided trying to uninstall bumblebee:

# 2015-09-23 18:32:06 nvidia-bumblebee-352.41-1.1.x86_64 removed ok
# Additional rpm output:
# + '' -x /usr/sbin/dkms ']'
# + /usr/sbin/dkms remove -m nvidia -v 352.41 --all --rpm_safe_upgrade
# 
# -------- Uninstall Beginning --------
# Module:  nvidia
# Version: 352.41
# Kernel:  3.11.10-25-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.11.10-25-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.
# 
# 
# nvidia-uvm.ko:
#  - Uninstallation
#    - Deleting from: /lib/modules/3.11.10-25-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....
# 
# DKMS: uninstall completed.
# 
# -------- Uninstall Beginning --------
# Module:  nvidia
# Version: 352.41
# Kernel:  3.16.7-24-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-24-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.
# 
# 
# nvidia-uvm.ko:
#  - Uninstallation
#    - Deleting from: /lib/modules/3.16.7-24-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....
# 
# DKMS: uninstall completed.
# 
# ------------------------------
# Deleting module version: 352.41
# completely from the DKMS tree.
# ------------------------------
# Done.
# 
2015-09-23 18:32:06|remove |nvidia-bumblebee|352.41-1.1|x86_64|root@felinity|
2015-09-23 18:32:06|remove |nvidia-bumblebee-32bit|352.41-1.1|x86_64|root@felinity|
2015-09-23 18:32:06|remove |primus|20131226-3.1.3|x86_64||
2015-09-23 18:32:07|remove |bumblebee|3.2.1-2.1.12|x86_64|root@felinity|


The next boot still failed, but I remembered that the driver was still in the initrd. After calling “mkinird” and rebooting, I finally got back to my KDE desktop.

So currently, I am having X running, but I cannot control screen brightness, run Steam, play games or use other 3D acceleration of the NVIDIA card.

→ How can I get a bumblebee nvidia driver that won’t break my boot? http://download.opensuse.org/repositories/X11:/Bumblebee/openSUSE_13.2/x86_64/ does not contain the previous version anymore. My root partition is on ext4, not btrfs, so I cannot use snapper and roll back.

→ How can I get this report to the people who are maintaining the X11:/Bumblebee repository?

Thanks so much for your help! :slight_smile:

– Klaus

A little update:

I uninstalled and re-installed all bumblebee packages:

2015-09-24 04:10:37|install|primus|20131226-16.1|x86_64||X11:Bumblebee|9a116ce89e843db5c1fdfeca5ddf67bbb2e6388c2365a3ab6003cd91bb41be75|
2015-09-24 04:10:37|install|primus-32bit|20131226-16.1|x86_64||X11:Bumblebee|bde26927b18ad5ff224fd8bd7c3e177ee96639330dff11ac433785b42d8a53bf|
# 2015-09-24 04:11:27 nvidia-bumblebee-352.41-1.1.x86_64.rpm installed ok
...
2015-09-24 04:11:27|install|nvidia-bumblebee|352.41-1.1|x86_64|root@felinity|X11:Bumblebee|c299e5f4cdd45440dbe094281a73e20bdad484f157a7d994fcd788b0d334811f|
# 2015-09-24 04:12:05 nvidia-bumblebee-32bit-352.41-1.1.x86_64.rpm installed ok
...
2015-09-24 04:12:05|install|nvidia-bumblebee-32bit|352.41-1.1|x86_64|root@felinity|X11:Bumblebee|8e6b7f53dbca500c6f27f3fb66e9385ebb50dc7a1d195a4d63f18338beb8e94b|
2015-09-24 04:12:05|install|bumblebee|3.2.1-20.1|x86_64|root@felinity|X11:Bumblebee|677869327de5a39f1509218e794d0278869c67634d598d75dfc2020f0396ccfa|
# 2015-09-24 04:12:29 bbswitch-kmp-desktop-0.8_k3.16.7_24-3.11.1.x86_64.rpm installed ok
# Additional rpm output:
# depmod: ERROR: fstatat(4, nvidia-uvm.ko): No such file or directory
# depmod: ERROR: fstatat(4, nvidia.ko): No such file or directory
# depmod: ERROR: fstatat(4, nvidia-uvm.ko): No such file or directory
# depmod: ERROR: fstatat(4, nvidia.ko): No such file or directory
# depmod: ERROR: fstatat(4, nvidia-uvm.ko): No such file or directory
# depmod: ERROR: fstatat(4, nvidia.ko): No such file or directory
# 
2015-09-24 04:12:29|install|bbswitch-kmp-desktop|0.8_k3.16.7_24-3.11.1|x86_64||repo-update|473935965671574dd90cfe26e2f0418d6070527e7026956f021adcd566e31cc3|
2015-09-24 04:12:29|install|bbswitch|0.8-21.1|x86_64|root@felinity|X11:Bumblebee|55b26a29a9f8b17e6f6ec073069da61b8b450524a4b504ef65c7a7afabd70260|
...

But I still can’t run primus:

klaus@felinity:~> primusrun /usr/bin/steam %U
Running Steam on opensuse 13.2 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1440016726)
primus: fatal: failed to connect to Bumblebee daemon: No such file or directory
[2015-09-24 04:18:29] Startup - updater built Aug 19 2015 11:27:40
klaus@felinity:~>

I can start run ‘bumblebeed’ as root and after that primusrun will work…

The bumblebee installation also says:

# 2015-09-24 04:12:58 New update message /var/adm/update-messages/bumblebee-3.2.1-20.1
# 2015-09-24 04:12:58 Error sending update message notification.
felinity:/home/klaus # cat /var/adm/update-messages/bumblebee-3.2.1-20.1
INFO: Please ensure that users using bublebee/video card are in following group(s):
INFO:     gpasswd -a <USER> bumblebee
INFO:   If going to use nvidia binary driver:
INFO:     gpasswd -a <USER> video
INFO: Also ensure the nouveau module is blacklisted (even if you plan to use it):
INFO:     echo "blacklist nouveau" >> /etc/modprobe.d/50-blacklist.conf
INFO:     mkinitrd
felinity:/home/klaus #  gpasswd -a klaus bumblebee
Adding user klaus to group bumblebee
felinity:/home/klaus # gpasswd -a klaus video
Adding user klaus to group video

But still, primus won’t run, also after adding the user to these two groups:

klaus@felinity:~>  primusrun /usr/bin/steam %U
Running Steam on opensuse 13.2 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1440016726)
primus: fatal: failed to connect to Bumblebee daemon: No such file or directory
[2015-09-24 04:23:30] Startup - updater built Aug 19 2015 11:27:40

There is no bumblebee.service in my systemctl.

UPDATE:

Not true:



klaus@felinity:~> systemctl status bumblebeed
bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; disabled)
   Active: inactive (dead)

felinity:/home/klaus # systemctl enable bumblebeed.service 
felinity:/home/klaus # systemctl start bumblebeed.service

klaus@felinity:~> systemctl status bumblebeed
bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled)
   Active: active (running) since Thu 2015-09-24 04:28:57 CEST; 7s ago
 Main PID: 4574 (bumblebeed)
   CGroup: /system.slice/bumblebeed.service
           └─4574 /usr/sbin/bumblebeed

Sep 24 04:28:57 felinity bumblebeed[4574]:   667.044706] [INFO]/usr/sbin/bumblebeed 3.2.1 started

Now steam works again! :slight_smile:

How can I change the Thread to [SOLVED] ?

We don’t mark threads as solved.