Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 have a module which doesn't work unless I first unload a different module:

modprobe -r bdc_pci
modprobe facetimehd

Running these commands (sudo) works fine, and my webcam then works as expected. But now I want to make that change permanent.

The other posts I've seen about making modprobe changes permanent all revolve around making a new module permanent, but what I'm not sure about it how to do that while also ensuring the bdc_pci module is unloaded first. How do I do that?

share|improve this question
up vote 1 down vote accepted

It is better to create a separate conf file to blacklist a module. This way it will be easier to find or revert this setting.

Run in terminal

sudo tee /etc/modprobe.d/blacklist-bdc_pci.conf <<< "blacklist bdc_pci"

That will stop bdc_pci module from loading at startup.

To auto load facetimehd, run:

sudo tee -a /etc/modules <<< "facetimehd"
share|improve this answer
    
That works perfectly, thanks – Tom Dalton Feb 26 at 10:32

If you dont't want to load bdc_pci module add it to blacklist in:
/etc/modprobe.d/blacklist.conf on the end of this file like this:

blacklist bdc_pci    

(or you can create your own file eg. blacklist-bdc_pci.conf)

Then in /etc/modules you can add what module you want to load, so you need to edit this file and add:

facetimehd
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.