Files
linux-wiki/content/deepin折腾笔记/第十章/10.5.md
2021-10-21 14:57:58 +08:00

30 lines
836 B
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 10.5 关闭错误报警蜂鸣声
1 检查模块是否启动lsmod |grep pcspkr
2 临时关闭sudo rmmod pcspkr
3 永久关闭:
4 方法一:
5 deepin-editor ~/.profile 添加下面三行内容
6 sudo -S rmmod pcspkr <<EOF
7 password(你的密码)
8 EOF
9 在Shell脚本中通常将EOF与 << 结合使用表示后续的输入作为子命令或子Shell的输入 直到遇到EOF为止再返回到主Shell,即将‘你的密码’当做命令的输入。
10 方法二:
11 sudo deepin-editor /etc/modprobe.d/nobeep.conf 添加 blacklist pcspkr
12 经测试虽然pcspkr不再自启动但电脑启动时会发出奇怪噪音错误报警声仍然存在。
13 备注:
14 如果开机画面屏幕输出”Driver 'pcspkr' is already registered “则可用方法二解决。