gpu-manager fails to unload NVIDIA modules

Bug #1615058 reported by Florian Reisenhofer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-drivers-common (Ubuntu)
Fix Released
Medium
Alberto Milone
Xenial
Triaged
Medium
Alberto Milone

Bug Description

I am using Ubuntu 16.04.1 LTS on a Clevo P65XSE-A with a Intel HD 5500 (I think!?) and a GTX 970m

When using a new NVIDIA driver from the graphics ppa
https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa

I noticed when switching back to the Intel card via "sudo prime-select intel", the NVIDIA card stays on.
When launching gpu-manager via terminal it tells me it can't unload nvidia_modeset and nvidia_drm modules.

Should probably use libkmod2 like bumblebee
https://github.com/Bumblebee-Project/Bumblebee/pull/762

Unloading nvidia-uvm with "no" parameters
rmmod: ERROR: Module nvidia_uvm is not currently loaded
Unloading nvidia-modeset with "no" parameters
rmmod: ERROR: Module nvidia_modeset is in use by: nvidia_drm
Unloading nvidia with "no" parameters
rmmod: ERROR: Module nvidia is in use by: nvidia_modeset

description: updated
Revision history for this message
Florian Reisenhofer (anti-ultimate) wrote :

Can someone please reply? This is very easy to fix, you just need to be sure nvidia_drm is also unloaded.

In the future, NVIDIA may add new modules however that will break this again - so it needs a better solution. The OP contains a way the bumblebee project has dealt with this issue.

Revision history for this message
Alberto Milone (albertomilone) wrote :

I can see how this can be a problem with recent nvidia drivers. I am going to take care of this soon.

I will also look into libkmod2. Thanks

Changed in ubuntu-drivers-common (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Alberto Milone (albertomilone)
Changed in ubuntu-drivers-common (Ubuntu Xenial):
status: New → Triaged
importance: Undecided → Medium
Changed in ubuntu-drivers-common (Ubuntu):
status: Triaged → Fix Released
Changed in ubuntu-drivers-common (Ubuntu Xenial):
assignee: nobody → Alberto Milone (albertomilone)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.