免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6322 | 回复: 3
打印 上一主题 下一主题

[NetBSD] NetBSD: How to turn off console beep[zt] [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-02-25 10:28 |只看该作者 |倒序浏览
原文链接

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

On the console you can set the volume of the console beep with wsconsctl.

To display the current volume enter:

  1. # wsconsctl bell.volume
复制代码

You can control the volume setting different values. To turn the volume off enter:
  1. # wsconsctl -w bell.volume=0
复制代码

This may not work on every hardware. The solution is to set the the bell pitch to 0 Hz.

  1. # wsconsctl -w bell.pitch=0
复制代码

The bell pitch defaults to 1500 Hz. Sometimes a lower value is more comfortable.
Just keep trying.

== X11 ==
If you are working with X11, you can turn off the console beep using the command [[xset]].

To turn the console beep off enter:

  1. # xset b off
复制代码

To turn it back on, enter:
  1. # xset b on
复制代码

You can also set the volume and the pitch of the beep. This is not always supported, depending on the hardware.

== See also ==
* NetBSD manual page: wsconsctl
* OpenBSD: how to turn off console beep

[ 本帖最后由 MichaelBibby 于 2007-2-25 10:31 编辑 ]

论坛徽章:
1
寅虎
日期:2013-09-29 23:15:15
2 [报告]
发表于 2007-02-25 12:41 |只看该作者
学习ing ^_^

论坛徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕节徽章
日期:2015-08-21 11:06:17
3 [报告]
发表于 2007-02-25 13:22 |只看该作者
转载先

论坛徽章:
0
4 [报告]
发表于 2007-11-25 14:24 |只看该作者
这个怎么用就起效?重启以后就不管用了.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP