BSD equivalent of rmmod


 
Thread Tools Search this Thread
Operating Systems BSD BSD equivalent of rmmod
# 1  
Old 03-22-2009
BSD equivalent of rmmod

In Linux if you want to get rid of the PC speaker (beep!) without rebooting you can type

rmmod pcspkr

I'm looking for a way to remove (if possible) the BSD equivalent of the "pcspkr" module.

I scrolled quickly through GENERIC and didn't see any entries that looked conspicuously like the PC speaker.

Is it in there? Did I miss it?

Last edited by uiop44; 03-30-2009 at 12:28 AM..
# 2  
Old 03-22-2009
Do you mean:

Code:
# lsmod | grep spkr
pcspkr                 10624  0

Confirms module is loaded.

Code:
 
# modprobe -r pcspkr

removes it.

from someone who thinks modprobe might be a command available in BSD Unix?
# 3  
Old 03-22-2009
Quote:
Originally Posted by TonyFullerMalv
Do you mean:

Code:
# lsmod | grep spkr
pcspkr                 10624  0

Confirms module is loaded.

Code:
 
# modprobe -r pcspkr

removes it.

from someone who thinks modprobe might be a command available in BSD Unix?
I think rmmod is the "old way" in Linux and "modprobe -r" is the new way?

FreeBSD does not have lsmod
The rough equivalent is kldstat
And kldunload for rmmod/modprobe -r
But kldstat does not show anything that looks like the PC speaker

I've been using

Code:

kbdcontrol -b off

This is virtual console specific.

Update:

I was fiddling with loader.conf and thinking the only way to get rid of the PC speaker is to compile the kernel without some module.

Then I found a 2005 post by Kevin Kinsey on the org.freebsd.freebsd-questions mailing list.

Code:

mixer speaker 0:0

And another blog post from recently linked to it and reminded us that we can always open up the computer and disconnect the cable. That's great if you own the computer, but...

Last edited by uiop44; 03-31-2009 at 02:28 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Rmmod,modprobe or dracut?

I am making few changes inside modprobe.d directory, now there are two options to make them effective 1) rmmod module, make changes and modprobe module 2) dracut -f I was wondering what's the difference between two, in terms of result, dracut makes kernel image again though and the other unplug... (0 Replies)
Discussion started by: nixhead
0 Replies

2. UNIX for Dummies Questions & Answers

BSD equivalent of GNU parted

I use GNU (parted)set to change boot flags when doing multibooting. Alas, FreeBSD does not have GNU parted, out of the box. Is there a way to set/remove flags quickly and easily from the command line in BSD? I'm still learning all the 'unique' BSD utilities. (7 Replies)
Discussion started by: uiop44
7 Replies

3. BSD

for linux and BSD users interested in Unix system V/bsd

for all you unix/linux interested heres an online book for free that covers the basics of BSD SysV Unix commands and applications . giving the average linux user a perspective on the differences in context of the two operating systems and for BSD users covers material as a refernce guide. ... (0 Replies)
Discussion started by: moxxx68
0 Replies
Login or Register to Ask a Question