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?

Do you mean:

# lsmod | grep spkr
pcspkr                 10624  0 

Confirms module is loaded.

 
# 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...