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.

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
add comment

1 Answer

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
add comment

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.