Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 574588 - x11-misc/bumblebee - bumblebeed doesn't properly unload kernel modules in certain configurations.
Summary: x11-misc/bumblebee - bumblebeed doesn't properly unload kernel modules in cer...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Adam Feldman
URL:
Whiteboard:
Keywords: PATCH
: 574198 (view as bug list)
Depends on: 722528
Blocks:
  Show dependency tree
 
Reported: 2016-02-13 00:38 UTC by REdOG
Modified: 2020-06-04 20:21 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to module.c for proper unloading (unload.patch,1.91 KB, patch)
2016-02-13 00:40 UTC, REdOG
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description REdOG 2016-02-13 00:38:40 UTC
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.
Comment 1 REdOG 2016-02-13 00:40:13 UTC
Created attachment 425356 [details, diff]
Patch to module.c for proper unloading

Works for me.
Comment 2 Pacho Ramos gentoo-dev 2016-02-18 20:13:44 UTC
*** Bug 574198 has been marked as a duplicate of this bug. ***
Comment 3 Pablo Cholaky 2016-04-11 16:35:48 UTC
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.
Comment 4 Jay Kamat 2016-12-21 08:48:04 UTC
Pablo's Patch works perfectly for me! Thanks!

Hopefully it will make it into the official repos soon =)
Comment 5 Adam Feldman gentoo-dev 2017-05-11 11:18:13 UTC
@Pablo @Jay, does this issue still exist with 3.2.1_p20170123?
Comment 6 Jay Kamat 2017-05-17 04:19:16 UTC
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.
Comment 7 Kete Tefid 2018-08-21 11:30:21 UTC
Please stabilize the latest version as the current stable one is plagued with this bug.
Comment 8 Pacho Ramos gentoo-dev 2020-06-04 20:21:51 UTC
Stabilization is in progress