Chinaunix首页 | 论坛 | 博客
  • 博客访问: 154288
  • 博文数量: 29
  • 博客积分: 1662
  • 博客等级: 上尉
  • 技术积分: 327
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-13 18:53
个人简介

thanks

文章分类
文章存档

2022年(1)

2017年(1)

2016年(1)

2015年(3)

2014年(9)

2011年(1)

2009年(1)

2008年(12)

我的朋友

分类: LINUX

2015-12-10 11:15:59

It is very annoying to hear loud beeps at home especially at night or when listening to music. To turn off the system bell just follow a couple of steps below and enjoy pure silence.

First step - turn off the system bell in console

To turn off the console bell edit /etc/inputrc configuration file and uncomment line:

set bell-style none

Second step - turn off the system bell in Xorg

To turn off the system bell in Xorg edit ~/.bashrc file and append code:

if [ -n "$DISPLAY" ]; then
  xset b off
fi

To check bell settings in Xorg execute command:

$ xset q | grep bell
  bell percent:  0    bell pitch:  400    bell duration:  100

Third step

Reboot system so the changes take effect.

Alternative solution

This solution did not worked for me.

Blacklist pcspkr module:

$ sudo echo "blacklist pcspkr" > /etc/modprobe.d/pcspkr-blacklist.conf

Generate a list of module dependencies:

$ sudo depmod -a

Update an initramfs image:

$ sudo update-initramfs -u

Reboot system.



https://blog.sleeplessbeastie.eu/2012/12/28/debian-how-to-turn-off-the-system-bell/
阅读(1754) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~