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

How do I disable autoload of the lp kernel module?

What I've tried so far:

  • Try to disabel the module via blacklist

    echo "blacklist lp">>/etc/modprobe.d/blacklist
    echo "blacklist lp">>/etc/modprobe.d/blacklist.conf
  • Recreated the linux image

    sudo dpkg-reconfigure linux-image-$(uname -r)

Even after reboot, the module was loaded again.

Brute force rm /lib/modules/$(uname -r)/kernel/drivers/char/lp.ko is working fine, but looks ugly to me ;)

share|improve this question

your brute force solution is fine in my books :) try lsmod when the module is loaded and see if there is anything in the used by column, there is a chance another module loads it as a dependency

share|improve this answer
No there's nothing in the "Used By" list. Honestly, I can not remember why I've asked that question. – zzeroo Mar 20 '12 at 18:51

You must log in to answer this question.

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