更新至15.6之后登录时蜂鸣器响的临时解决办法
Tofloor
poster avatar
189******02
deepin
2018-06-18 05:50
Author
本帖最后由 lockdown 于 2018-6-17 22:20 编辑

表示目前并不了解登录时蜂鸣器会响的原因,不过大家可以尝试这个方法


系统启动时移除蜂鸣器的内核模块pcspkr即可,这样登录时就没有蜂鸣器的声音

1.  编辑  /etc/rc.local  (没有就新建)


#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export=PATH

rmmod pcspkr

exit 0


保存退出


2. 设置执行权限:

sudo chmod 755 /etc/rc.local

3. 启用rc-local服务

sudo systemctl start rc-local; sudo systemctl enable rc-local

4. 最后可以查看一下rc-local服务的运行状态

sudo systemctl status rc-local

看到:

● rc-local.service - /etc/rc.local Compatibility
   Loaded: loaded (/lib/systemd/system/rc-local.service; enabled-runtime; vendor preset: enabled)
  Drop-In: /lib/systemd/system/rc-local.service.d
           └─debian.conf
   Active: active (exited) since Sun 2018-06-17 21:38:47 CST; 5min ago
  Process: 1104 ExecStart=/etc/rc.local start (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 4915)
   CGroup: /system.slice/rc-local.service


说明OK了


接下来重启试试

Reply Favorite View the author
All Replies
avatar
189******18
deepin
2018-06-18 06:09
#1
牛逼!!!
Reply View the author
avatar
VI~TONISEN
deepin
2018-06-18 06:21
#2
可以了,不呜了,
Reply View the author