LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   udev - How to blacklist pcspkr? (http://www.linuxquestions.org/questions/linux-software-2/udev-how-to-blacklist-pcspkr-556068/)

hoofer 05-23-2007 08:22 AM

udev - How to blacklist pcspkr?
 
Hi, I'm using Slamd64 with a 2.6.21 kernel, and I'm trying to stop the pcspkr module from loading at boot.
I can see it's not being loaded by any init script, so I guess it's udev that's loading it. I tried putting "blacklist pcspkr" on /etc/modprobe.d/blacklist, but it still gets loaded.
What's the proper way to blacklist a module in udev?
Any other suggestions for disabling the pcspkr module are appreciated.

osor 05-23-2007 03:17 PM

Quote:

Originally Posted by hoofer
Any other suggestions for disabling the pcspkr module are appreciated.

How about this:
Code:

$ sudo rm /lib/modules/`uname -r`/kernel/drivers/input/misc/pcspkr.ko
$ sudo depmod -ae

Problem solved :D.

hoofer 05-29-2007 08:11 AM

Now it's gone, thanks

drkdick 06-06-2007 12:39 PM

Does the "remove module hack" survive a kernel upgrade?

If not, try adding the following line:

Code:

install pcspkr true
to the end of your blacklist file. This works for me in Fedora 7.


All times are GMT -5. The time now is 04:54 AM.