Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .