Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
Got an answer here:… – 719016 Mar 17 '12 at 8:23
up vote 4 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


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.