How to disable pc speaker in openBSD?
hi,
I just installed openBSD on my laptop. how do i disable the pcspeaker without the GUI? thanks, danny. |
Quote:
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. |
Quote:
Code:
root@host# rmmod pcspkr |
Quote:
|
Quote:
|
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? |
Quote:
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. |
Is "mixerctl outputs.spkr_mute=on" not suitable?
|
wirecutters?
:-) why? X: xset -b vim: set visualbell personally I love morse -p |
Quote:
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. |
hey,
@GazL : you are half right :) thanks for the suggestion. @ocicat : thanks for your help. the command : "mixerctl inputs.spkr.mute=on" WORKS! |
Quote:
Anyway, Glad you resolved it. :) |
Old topic, but I couldn't resist. Using the mixer/mute option gets the job done, unless you want your pc speaker (sometimes a tiny speaker on the motherboard as opposed to the audio speakers) to give notice of other things. For instance, on my laptop I get a nice beeping to warn me when my battery is at 3%. And since I'm running Fluxbox with a minimum of glitter, that's handy.
So, in either your ~/.xinitrc (if you start X with the "startx" command), or your ~/.fluxbox/startup (there are other ways), add what was mentioned above: Code:
xset -b Edit /etc/wsconsctl.conf and make sure that you have this: Code:
keyboard.bell.volume=0 |
Just for reference, to disable the console bell on NetBSD you can put the following in /etc/wscons.conf:
Code:
setvar wskbd bell.pitch 0 |
All times are GMT -5. The time now is 02:05 AM. |