LinuxQuestions.org
Have you listened to LQ Radio?
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
Thread Tools
Old 11-06-2009, 11:28 AM   #1
toledano
LQ Newbie
 
Registered: Dec 2008
Posts: 12
Thanked: 0
How to disable pc speaker in openBSD?


[Log in to get rid of this advertisement]
hi,

I just installed openBSD on my laptop.
how do i disable the pcspeaker without the GUI?
thanks,

danny.
windows_98_nt_2000 toledano is offline     Reply With Quote
Old 11-06-2009, 01:11 PM   #2
ocicat
Member
 
Registered: May 2007
Posts: 128
Thanked: 4
Quote:
Originally Posted by toledano View Post
how do i disable the pcspeaker without the GUI?
Study Section 5.9 of the FAQ:

http://openbsd.org/faq/faq5.html#BootConfig

...as this explains how drivers can be disabled. Of course, you will also need to study the output of dmesg(8) to find what driver is associated with your speaker.
linuxubuntu ocicat is offline     Reply With Quote
Old 11-06-2009, 02:23 PM   #3
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora 11, CentOS 5.3, Linux Mint 5, Solaris 10
Posts: 1,260
Thanked: 35
Quote:
Originally Posted by toledano View Post
hi,

I just installed openBSD on my laptop.
how do i disable the pcspeaker without the GUI?
thanks,

danny.
I did this on Linux...it may work on BSD

Code:
root@host# rmmod pcspkr
-C
macos custangro is offline     Reply With Quote
Old 11-06-2009, 02:27 PM   #4
ocicat
Member
 
Registered: May 2007
Posts: 128
Thanked: 4
Quote:
Originally Posted by custangro View Post
I did this on Linux...it may work on BSD
It won't. OpenBSD does not have a rmmod command.
linuxubuntu ocicat is offline     Reply With Quote
Old 11-06-2009, 06:26 PM   #5
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora 11, CentOS 5.3, Linux Mint 5, Solaris 10
Posts: 1,260
Thanked: 35
Quote:
Originally Posted by ocicat View Post
It won't. OpenBSD does not have a rmmod command.
Well then I'm all out of ideas
macos custangro is offline     Reply With Quote
Old 11-08-2009, 03:23 PM   #6
toledano
LQ Newbie
 
Registered: Dec 2008
Posts: 12
Thanked: 0

Original Poster
hi,

by using the dmesg I see:
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0

I used the command "sudo config -e /bsd" (and also "sudo config -e -u -o bsd.new /bsd")
and disabled midi,spkr and pcppi(i am not sure which one to disable so I disabled all).
the pc speaker still works..
what else could I try?
linux toledano is offline     Reply With Quote
Old 11-09-2009, 02:23 PM   #7
ocicat
Member
 
Registered: May 2007
Posts: 128
Thanked: 4
Quote:
Originally Posted by toledano View Post
the pc speaker still works..
what else could I try?
Given that this is turning into a fishing expedition, you may want to made a copy of /bsd which has not been altered. Although I don't see that the disabling the drivers discussed may be problematic later, it is good to have the insurance that you can easily return to a default configuration if necessary.

In the dmesg(8) output, I suspect you will also see audio(4) drivers listed. You may want to disable all of these as well.

If this does not disable speaker output, you will need to post the output of dmesg(8). The drivers discussed thus far are generic, but without knowledge of your exact hardware, I will not be able to help you further.
linuxubuntu ocicat is offline     Reply With Quote
Old 11-10-2009, 06:08 PM   #8
GazL
Member
 
Registered: May 2008
Location: England.
Posts: 880
Thanked: 78
Is "mixerctl outputs.spkr_mute=on" not suitable?
windows_vista GazL is offline     Reply With Quote
Thanked by:
Old 11-10-2009, 06:09 PM   #9
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Puppy
Posts: 2,712
Thanked: 21
wirecutters?

:-)

why?

X: xset -b
vim: set visualbell

personally I love morse -p

Last edited by bigearsbilly; 11-10-2009 at 06:11 PM..
freebsd bigearsbilly is offline     Reply With Quote
Old 11-10-2009, 08:52 PM   #10
ocicat
Member
 
Registered: May 2007
Posts: 128
Thanked: 4
Quote:
Originally Posted by GazL View Post
Is "mixerctl outputs.spkr_mute=on" not suitable?
This is actually a good question to raise.

I guess I had dismissed this in my own mind is because some beeps go directly to the speaker; somehow the audio subsystem is bypassed, but I may be vaguely recalling hardware-specific information. I don't routinely gut the system.

But the OP should try this suggestion. It may very well be a viable answer for the hardware used.
linuxubuntu ocicat is offline     Reply With Quote
Thanked by:
Old 11-11-2009, 02:25 AM   #11
toledano
LQ Newbie
 
Registered: Dec 2008
Posts: 12
Thanked: 0

Original Poster
hey,

@GazL : you are half right thanks for the suggestion.
@ocicat : thanks for your help.

the command : "mixerctl inputs.spkr.mute=on" WORKS!
linux toledano is offline     Reply With Quote
Old 11-11-2009, 04:35 AM   #12
GazL
Member
 
Registered: May 2008
Location: England.
Posts: 880
Thanked: 78
Quote:
Originally Posted by toledano View Post
@GazL : you are half right thanks for the suggestion.
the command : "mixerctl inputs.spkr.mute=on" WORKS!
You're welcome. My hardware doesn't create mixerctl entries under inputs for spkr only under outputs. Sounds (forgive the pun) like your sound hardware is layed out differently to mine.

Anyway, Glad you resolved it.
windows_vista GazL is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Disable PC Speaker Toods Slackware 12 11-02-2007 01:04 PM
How could I make USB speaker as default/master speaker ? czy11421 Linux - Hardware 1 09-02-2007 11:59 AM
Disable SSHv1 (OpenBSD) JF1980 *BSD 4 07-12-2007 01:48 PM
Disable PC Speaker iXneonXi DamnSmallLinux 4 03-16-2007 06:58 AM
disable motherboard speaker? newuser455 Linux - Hardware 3 07-27-2005 03:23 AM


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

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration