Bumblebee won't work after suspend to RAM

Hi, I’m having some issues with bumblebee. It’s working flawlessly when I do a full reboot but can’t get it to work after suspending my laptop to RAM.

Here’s the message I got when trying to run optirun after suspension:

:~> optirun glxspheres
3284.460247] [ERROR]Cannot access secondary GPU - error: Could not enable discrete graphics card

3284.460318] [ERROR]Aborting because fallback start is disabled.

In the other hand, when I try to use primusrun, this is what I got.

:~> primusrun glxspheres
primus: fatal: Bumblebee daemon reported: error: Could not enable discrete graphics card

Finally, if I try to restart bumblebee daemon, nothing happens

I guess it has to be with unloaded drivers before suspension not loaded after getting back but I don’t know where do I start. Can anybody help me?

Thanks.

You need to unload and modprobe the nvidia modules again. Cannot exactly remember which are loaded by try:

lsmod|grep nvidia

and rmmod the modules and modprobe them again. Then try restarting bumblebee.

Maybe there is lacking some config to get them unloaded before suspend and loaded afterwards, but what can I say,
nvidia on Linux is not the most stable experience.

With suse-prime you may get a more stable experience, but I cannot promise anything…

Bo

You are not alone, that is the “standard” behaviour with bumblebee in my limited experience; but I must admit to never trying to debug that beyond removing and reloading the nvidia modules as bosim suggested.
On the other hand, with suse-prime I always have to switch to intel before shutting down, rebooting or suspending to ensure that the graphical target (AKA runlevel 5) resumes or reboots with no hiccups, but that might be HW dependent.

I implemented Bumblebee according this procedure
https://forums.opensuse.org/showthread.php/505270-ultimate-tutorial-installing-Bumblebee-driver-for-SUSE

I do not have problem with suspending.

Out of curiosity what kernel and version of nvidia driver are you running? and what nvidia chipset?

Bo

Sorry, but I forgot noticed, that I do not use proprietary Nvidia driver.

Makes sense then. I sort of assumed that you used the proprietary driver. When I had an optimus machine the chipset
was not supported (GM108), but I think it was in for kernel 4.7, so I was forced to use the proprietary software, and let me
say it in this way, it is not the most stable software in the world.

Bo