How to turn off console beep

2009-05-13 11:48:16来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折


Sometimes it is necessary to be more quiet, when using the shell.
For example, when working in groups, or if you're just annoyed of the
[url=javascript:;]beep[/url]
.BSD爱好者乐园|b?_!v?G+w:Y
BSD爱好者乐园H?'~Fo
[$u#[1R
On the
[url=javascript:;]console[/url]
you can set the volume of the console beep with
[url=javascript:;]wsconsctl[/url]
.BSD爱好者乐园$z*[T
o$l.c
i Em1w7KRTo display the current volume enter:BSD爱好者乐园k o_qj6ZKy*y
# wsconsctl bell.volume
`UV(^:?w"T
VYou can control the volume setting different values. To turn the volume off enter:
5QHy'vY# wsconsctl -w bell.volume=0BSD爱好者乐园?jNp;M F2~'w8RT
This may not work on every hardware. The solution is to set the the bell pitch to 0 Hz.BSD爱好者乐园 K?rI/k+V!{J
# wsconsctl -w bell.pitch=0BSD爱好者乐园-ujGm&Q r
The bell pitch defaults to 1500 Hz. Sometimes a lower value is more comfortable. Just keep trying.
z6S'|?W%H%e2vgX11
|#?
u |,jF{L.?!_r9`If you are working with X11, you can turn off the console beep using the command
xset
.
$\u&J1pUK?F.fJ'Y#}
0|7er)Lq VIf you are using modular Xorg you need to install
xset
, it is under x11/xset.
1OY~a$UbN8\
&V7{pM]-_To turn the console beep off enter:
7X7F(U4|K*Tl7{S$WiT$ xset b off
uAT"q)F ui]To turn it back on, enter:
^5iIs3[|$ xset b on
!G!|nG*Z8}You can also set the volume and the pitch of the beep. This is not always supported, depending on the hardware.BSD爱好者乐园N9yY/i6n3F
BSD爱好者乐园7h*d8f@)x7qx8o'f
However if you want to set volume and pitch you can do something like that:
TXh1J.N7l8m-V+rgh
ld$ xset b 10 1000 100See also

  • wsconsctl(8)
Retrieved from "
http://wiki.netbsd.se/How_to_turn_off_console_beep
"
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/4206/showart_501062.html

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:ee使用

下一篇:windows下制作openbsd自启动安装光盘