question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash if bbswitch module is not installed

See original GitHub issue

When using the command optimus-manager --switch nvidia it gets stuck in tty1. Switching to other tty and back doesn’t resolve the issue.

System info Please include : distro: Archlinux desktop manager: Gnome Display manager: lightDM Laptop model: Clevo N850HK optimus-manager: 1.1

Logs optimus-manager-journal.txt

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Askannzcommented, Sep 27, 2019

Yep, the program crashes if bbswitch isn’t installed. That’s totally a bug, fix is on the way.

1reaction
yalivcommented, Sep 23, 2019

It seems that installing bbswitch is “required”, although I don’t change the default setting (switching=none) and I think my laptop and the Nvidia driver (435.21) are capable of handling this.

I got this error when trying to switch to nvidia or hybrid:

Unloading Nvidia modules (if any)
Unloading nouveau module (if any)
Unloading bbswitch module (if any)
ERROR : Nvidia PCI reset failed. Continuing. Error is : Cannot unload bbswitch : Failed to execute 'modprobe -r bbswitch' : modprobe: FATAL: Module bbswitch not found.
Unloading bbswitch module (if any)
Cannot setup GPU : kernel setup error : Cannot unload bbswitch : Failed to execute 'modprobe -r bbswitch' : modprobe: FATAL: Module bbswitch not found.

It doesn’t even create any file in /etc/X11/xorg.conf.d.

I have kernel 5.3 and 5.2 installed and running on 5.3. So when I choose to install linux53-bbswitch package, linux52-bbswitch will be selected as well.

Now the switching works:

Unloading Nvidia modules (if any)
Unloading nouveau module (if any)
Unloading bbswitch module (if any)
Unloading bbswitch module (if any)
Running /etc/optimus-manager/nvidia-enable.sh
Running /etc/optimus-manager/nvidia-disable.sh
Loaded extra Intel Xorg options (0 lines)
Loaded extra AMD Xorg options (0 lines)
Loaded extra Nvidia Xorg options (0 lines)
Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
Read more comments on GitHub >

github_iconTop Results From Across the Web

Module bbswitch not found in directory - Arch Linux Forums
Hi,. I'm trying to install bumblebee and bbswitch on my optimus laptop. I managed to install the nvidia drivers, bumblebee and bbswitch. If...
Read more >
Installing bbswitch hangs system : r/openSUSE - Reddit
I've changed to Turing which its offload mode consume no power if unused, so bbswitch is not needed, in fact it crash my...
Read more >
package bbswitch-dkms 0.7-2ubuntu1 failed to install/upgrade
This happened after updating to new kernel through the update manager. It randomly appeared. 1) $ lsb_release -rd. Description: Ubuntu 14.10
Read more >
Bumblebee : Module bbswitch could not be loaded - Ask Ubuntu
If the module is still not loaded, try removing bbswitch completely and reinstall it: sudo apt-get purge bbswitch-dkms sudo apt-get install ...
Read more >
System crashes on reboot or poweroff - Manjaro Linux Forum
this should say unit could not found, if it shows anything other, then do: ... Manjaro Hardware Detection ## options bbswitch load_state=0 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found