first commit
This commit is contained in:
29
content/deepin折腾笔记/第十章/10.5.md
Executable file
29
content/deepin折腾笔记/第十章/10.5.md
Executable file
@@ -0,0 +1,29 @@
|
||||
# 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 “则可用方法二解决。
|
||||
Reference in New Issue
Block a user