Debian - How to turn off the system bell

1800阅读 0评论2015-12-10 action08
分类:LINUX

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/
上一篇:debian live stable apt-source file
下一篇:centos5下安装mysql5.7.11[close false建议换centos6]