The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > BSD
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 03-22-2009
uiop44 uiop44 is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 19
Quote:
Originally Posted by TonyFullerMalv View Post
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 01:28 AM..