There's a bug in bumblebeed that prevents bbswitch from turning off in certain configurations(i.e. kms & modeset from certain nvidia driver versions). This causes the system to hang and overheat in sleep and reboot situations. The bug is listed in the bumblebee project here: https://github.com/Bumblebee-Project/Bumblebee/issues/719 Reproducible: Always Steps to Reproduce: 1. optirun glxgears^C 2. $cat /proc/acpi/bbswitch 0000:01:00.0 ON 3. reboot Actual Results: System freeze at reboot A patch will be provided. It enables bumblebeed to properly unload theses nvidia modules when they are configured for use.
Created attachment 425356 [details, diff] Patch to module.c for proper unloading Works for me.
*** Bug 574198 has been marked as a duplicate of this bug. ***
Guys, Please stop, this proposed patch involves too much Nvidia logic in bumblebee, and bumblebee project is intended for noueau also. Let's keep Bumblebee to be generic. Please check my patch located at github: https://github.com/gentoo/gentoo/pull/1220/files My patch for Gentoo based in the bumblebee branch of develop to use modprobe -r instead rmmod because this last one doesn't follow /etc/modprobe.d rules (https://github.com/Bumblebee-Project/Bumblebee/commit/1ada79fe5916961fc4e4917f8c63bb184908d986) and, also modifies the Nvidia script to properly unload the driver with the new nvidia-drm module. I'm currently using this modification in my system and works good, it unloads the module correctly, even if I'm using a Nvidia monitor widget for KDE/Gnome due Nvidia SMI interface. Thanks.
Pablo's Patch works perfectly for me! Thanks! Hopefully it will make it into the official repos soon =)
@Pablo @Jay, does this issue still exist with 3.2.1_p20170123?
After a few brief tests, I think that this update removes the need for this patch. I'll keep running this update and let you know if I see any issues with it in the next few days.
Please stabilize the latest version as the current stable one is plagued with this bug.
Stabilization is in progress