Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to run this command:

# rmmod nvidia

But I get:

ERROR: Module nvidia is in use

How can I know which process(es) is/are using the nvidia module?

share|improve this question
    
1  
Got an answer here: askubuntu.com/questions/109681/… –  130490868091234 Mar 17 '12 at 8:23

1 Answer 1

up vote 2 down vote accepted

There isn't a direct way that I know of to get the processes that are using a module.

You can try lsmod | grep <module name> to see all loaded kernel modules that are using a module.

You can also try dmesg | grep <module name> to see if the kernel logs have any clues as to which processes may be using a module.

You may be able to remove the module using rmmod --force <module_name>.

As for the nvidia module, you should be able to remove it if you shut down X11.

init 4
rmmod nvidia

worked for me.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.