LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-23-2007, 08:22 AM   #1
hoofer
LQ Newbie
 
Registered: Jun 2005
Location: Brazil
Distribution: Slackware, Slamd64
Posts: 28

Rep: Reputation: 16
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.
 
Old 05-23-2007, 03:17 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
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 .
 
Old 05-29-2007, 08:11 AM   #3
hoofer
LQ Newbie
 
Registered: Jun 2005
Location: Brazil
Distribution: Slackware, Slamd64
Posts: 28

Original Poster
Rep: Reputation: 16
Now it's gone, thanks
 
Old 06-06-2007, 12:39 PM   #4
drkdick
Member
 
Registered: Mar 2006
Distribution: Fedora, custom LFS, Ubuntu Studio (RT)
Posts: 37

Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Blacklist Update Dogar Linux - Software 8 04-18-2007 08:08 AM
?Odd bug. modprobe.blacklist~ behaves as modprobe.blacklist arubin Slackware 1 11-05-2006 07:08 PM
slackware-current, udev 0.96, and custom udev rules not working rignes Slackware 6 08-10-2006 03:43 AM
'blacklist' WARNING JerryP Mandriva 5 12-01-2005 06:47 PM
Making modprobe pcspkr stick with modprobe.preload? gm4jjj Fedora 3 06-16-2004 03:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration