Code:
# turn off the PC speaker
blacklist pcspkr
Or
Add the following to /etc/rc.local:
OrAdd the following to /etc/rc.local:
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:
sudo rmmod pcspkr
through this command the computer doesn't need be restarted
Post a Comment