Sunday, June 24, 2007

Disable System Beep

Just add this to /etc/modprobe.d/blacklist

Code:
# turn off the PC speaker
blacklist pcspkr


Or

Add the following to /etc/rc.local:
Code:
for i in 1 2 3 4 5 6
do
setterm -blength 0 > /dev/tty$i
done
Or

vi /etc/rc.local
add this line to the end of your script
just before the exit 0
restart service or computer.

modprobe -r pcspkr
exit 0

Or

Put this command in /etc/profile:
setterm -bfreq 0

1 comment:

bluejean said...

sudo rmmod pcspkr

through this command the computer doesn't need be restarted