DisablingBells/Ubuntu
外觀
有許多方法可以用於系統範圍的修復,停用 PC 揚聲器蜂鳴音。
方法 1:停用核心模組;編輯檔案 /etc/modprobe.d/blacklist(重啟後生效);
# turn off the PC speaker blacklist pcspkr
方法 2:將所有 tty 的蜂鳴音持續時間設定為 0 毫秒。編輯 /etc/rc.local(重啟後生效);
for i in 1 2 3 4 5 6
do
setterm -blength 0 > /dev/tty$i
done
請注意,這裡的方法應該適合大多數 Linux 發行版
請注意,此頁面的提示來自 http://ubuntuforums.org/showthread.php?t=422061