nvidia driver loaded by gnome-shell. Cannot be unloaded.
I am running GNOME on an Asus N580VD laptop with Intel iGPU and Nvidia dGPU, gnome-shell version is: GNOME Shell 3.30.2
, Arch linux with 4.20.1-arch1-1-ARCH kernel. My setup uses bumblebee and bbswitch to control the on/off states of the dGPU. The issue is that gnome-shell loads the nvidia driver on boot and whenever bumblebee tries to unload it, it shows that the driver is in use.
If I run $ lsof -n -w -t /dev/nvidia*
I get the PID of gnome-shell.
I think that there should be an option whether GNOME should or shouldn't automatically load kernel modules. This is a considerable issue as the dGPU consumes ~10 Watts when turned on, even if not in use.
The same issue can be found on the GitHub of the Bumblebee project: https://github.com/Bumblebee-Project/Bumblebee/issues/924
Thank you for your great work on the GNOME project! I will provide any debug info necessary if needed.