NVIDIA-bumblebee stops working, needs to be reinstalled

I'm happy every time someone is wiling to try to help me. Sometimes misunderstandings will happen. There is not reason to treat misunderstanding that way. Bottom line, someone just tried to help.

Some members may be reluctant to help next time.

I am sorry you thought I was shouting. I usually whisper :smile: . Some 20 years internet experience taught me that shouting is capital letters.
and trying to prevent that, I showed you the "why" of my assumptions.
No hard feelings, though.

Please provide the output of these commands

mhwd
mhwd -li

There was "ALWAYS" and the assumption and I tryed in the politest way to tell you that I don't like that.
Anyway, no hard feelings and let us put this behind us and start over.

Here is the driver in a working state:
I install the drivers from system-settings -> Hardware Configuration

inxi -F without primusrun
Graphics:
Card-1: Intel HD Graphics 620 driver: i915 v: kernel
Card-2: NVIDIA GM108M [GeForce 940MX] driver: N/A
Display: x11 server: X.Org 1.19.6 driver: intel resolution: 1920x1080~60Hz
OpenGL: renderer: Mesa DRI Intel HD Graphics 620 (Kaby Lake GT2) v: 4.5 Mesa 18.0.3

primusrun inxi -F
Graphics:
Card-1: Intel HD Graphics 620 driver: i915 v: kernel
Card-2: NVIDIA GM108M [GeForce 940MX] driver: N/A
Display: x11 server: X.Org 1.19.6 driver: intel resolution: 1920x1080~60Hz
OpenGL: renderer: GeForce 940MX/PCIe/SSE2 v: 4.6.0 NVIDIA 396.24

shutdown/boot and the error is back

This is when the driver doesn't work.

mhwd

0000:00:02.0 (0300:8086:5916) Display controller Intel Corporation:


              NAME               VERSION          FREEDRIVER           TYPE

video-hybrid-intel-nvidia-bumblebee 2018.05.04 false PCI
video-hybrid-intel-nvidia-390xx-bumblebee 2018.05.04 false PCI
video-linux 2018.05.04 true PCI
video-vesa 2017.03.12 true PCI

0000:03:00.0 (0200:10ec:8168) Network controller Realtek Semiconductor Co., Ltd.:


              NAME               VERSION          FREEDRIVER           TYPE

     network-r8168            2016.04.20                true            PCI

0000:01:00.0 (0302:10de:134d) Display controller nVidia Corporation:


              NAME               VERSION          FREEDRIVER           TYPE

video-hybrid-intel-nvidia-bumblebee 2018.05.04 false PCI
video-hybrid-intel-nvidia-390xx-bumblebee 2018.05.04 false PCI
video-nvidia 2018.05.04 false PCI
video-nvidia-390xx 2018.05.04 false PCI
video-linux 2018.05.04 true PCI

mhwd -li

Installed PCI configs:


              NAME               VERSION          FREEDRIVER           TYPE

     network-r8168            2016.04.20                true            PCI

video-hybrid-intel-nvidia-bumblebee 2018.05.04 false PCI

Warning: No installed USB configs!

Now I think is clear.
You need to install the 390 driver.
Uninstall video-hybrid-intel-nvidia-bumblebee
Install video-hybrid-intel-nvidia-390xx-bumblebee
Reboot (crossing fingers of course)

I was using the 390 driver with the stable update from 28-04-2018, same thing was going on, so don't cross those fingers to hard :wink:

And 396 does work, but only after the first shutdown/boot

Does PRIME work for you?

After following the how2 on the link:
glxinfo | grep -i vendor
server glx vendor string: NVIDIA Corporation
client glx vendor string: NVIDIA Corporation
OpenGL vendor string: NVIDIA Corporation

It's getting much hotter with this, the fans run all the time.

I can't run steam with this:
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=/app/bin/steam-wrapper --file-forwarding com.valvesoftware.Steam @@u %U @@

Couldn't find dpkg, please update steamdeps for your distribution.
Running Steam on org.freedesktop.platform 1.6 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!

At least the driver is working. Or not?
Is everything else in your system and GUI working?
If this steam program is the problem you might mark this as solved and start another topic, or change the title of this one, since it doesn't align with the issue.
In anyway you should post your system info.

And a shutdown/boot later:
glxinfo | grep -i vendor
shows the same

but there is 2 errors more with
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=/app/bin/steam-wrapper --file-forwarding com.valvesoftware.Steam @@u %U @@

Couldn't find dpkg, please update steamdeps for your distribution.
Running Steam on org.freedesktop.platform 1.6 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Installing breakpad exception handler for appid(steam)/version(1522709999)
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

Driver should work according to
glxinfo | grep -i vendor
server glx vendor string: NVIDIA Corporation
client glx vendor string: NVIDIA Corporation
OpenGL vendor string: NVIDIA Corporation

Everything seems to work ok.
For me the problem isn't solved. Steam is why I notice this and it's not working. Please remember that everything works after installing video-hybrid-intel-nvidia-bumblebee, but only after the first bootup with it. Also AFIK the nvidia driver on this card, doesn't allow videodecoding or the use of hwencoding of videos, so I need the intel card to.

inxi -b
System: Host: hc-pc Kernel: 4.16.7-1-MANJARO x86_64 bits: 64 Desktop: KDE Plasma 5.12.5
Distro: Manjaro Linux 17.1.10 Hakoila
Machine: Type: Laptop System: Dell product: Vostro 5568 v: N/A serial: N/A
Mobo: Dell model: 0CWJTV v: A00 serial: N/A UEFI [Legacy]: Dell v: 1.1.4 date: 06/02/2017
Battery: ID-1: BAT0 charge: 42.0 Wh condition: 39.1/42.0 Wh (93%)
CPU: Dual Core: Intel Core i5-7200U type: MT MCP speed: 1893 MHz min/max: 400/3100 MHz
Graphics:
Card-1: Intel HD Graphics 620 driver: i915 v: kernel
Card-2: NVIDIA GM108M [GeForce 940MX] driver: nvidia v: 396.24
Display: x11 server: X.Org 1.19.6 driver: modesetting,nvidia resolution: 1920x1080~60Hz
OpenGL: renderer: GeForce 940MX/PCIe/SSE2 v: 4.6.0 NVIDIA 396.24
Network: Card-1: Intel Wireless 3165 driver: iwlwifi
Card-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8168
Drives: HDD Total Size: 698.65 GiB used: 90.86 GiB (13.0%)
Info: Processes: 191 Uptime: 9m Memory: 15.49 GiB used: 3.33 GiB (21.5%)
Shell: bash inxi: 3.0.07

Have a nice time!

Thank you for your time spend on this error.

I can't play any games the requieres nvidia more than after the first install of the drivers, so it's not just steam

1 Like

I thought I was going crazy! I have this issue too, and somehow couldn't find this discussion using the forum search.

Tried discussing this here, however this thread has a much better description of what I find in my system.

My conclusion is same as OP, this is a driver issue and there is nothing much to do with this, except fill a report and wait for fixes. Also, would like to add that installing Nvidia prime is not working as well in my case.

I HAD the exact same issue.

i had to remove already installed bumblebee, reinstall it. reboot, cross fingers, after every second or third boot.

for the last week i didn't have to do anything. if anyone can tell me to see what updates/changes i made to my system via add-remove-software and tell me how to find a log i can provide it to see how it got resolved by itself.

package changes (updating/uninstalling/installing) are logged in /var/log/pacman.log.

if you encounter that issue again you could check xorg.log and maybe dmesg (and if you're using a display-manager systemctl status output)

I believe this was a bug in kernel-alive which is now fixed. If it is not fixed, remove kernel-alive to verify.

I'm sorry for you, who also has this annoying problem, but glade I'm not the only one. :angel:

I have made the following change in
/etc/bumblebee/bumblebee.conf

Under
[driver-nvidia]
I changed:
PMMethod=auto
to
PMMethod=bbswitch

It seems as that made the reinstalls needed to go down to something like 3-5 shutdowns, before the driver is gone again.
Note: I have no evidence that the change does anything...

I now use this method to un/reinstall:
Login on another screen and run a script with:

mhwd -r pci video-hybrid-intel-nvidia-bumblebee
wait
mhwd -i pci video-hybrid-intel-nvidia-bumblebee

logout of the normal session and do a
ctrl+alt+deletebackspace

and login again and check with
primusrun inxi -Gxzc0

I have never had this installed.

Yesterday I upgraded to the 1/7 update.
The problem is still there.

primusrun inxi -Gxzc0
sh: line 1: 13296 Segmentation fault (core dumped) /sbin/glxinfo 2> /dev/null
Graphics: Card-1: Intel HD Graphics 620 driver: i915 v: kernel bus ID: 00:02.0
Card-2: NVIDIA GM108M [GeForce 940MX] driver: nvidia v: 396.24 bus ID: 01:00.0
Display: x11 server: X.Org 1.19.6 driver: intel resolution: 1920x1080~60Hz
Message: No advanced graphics data found on this system.

Forum kindly sponsored by