蓝牙如何记忆关闭状态?
发表于 : 2016-04-30 21:14
用的如图所示的Blueman,哪怕我把蓝牙关闭,每次开机也会自动打开。能不能将开关的状态记忆下来?或者实在不行的话,干脆默认关闭,真正需要用的时候再手动打开?
谢谢,按照第3种方案实现了bluetooth不自动启动。但是需要手动打开蓝牙的时候不知道该怎么弄了,囧。尝试用vickycq 写了:网搜常见方案
1. 禁用相关的服务。例如 systemd 为 bluetooth.service
2. 利用 rfkill 开机自动阻塞
3. 修改 /etc/bluetooth/main.conf 添加 InitiallyPowered = false。其它可能参数见第二个链接
参考
http://askubuntu.com/questions/67758/ho ... em-startup
http://catlingmindswipe.blogspot.com/20 ... artup.html
http://askubuntu.com/questions/419115/m ... by-default
http://itsfoss.com/turn-off-bluetooth-b ... ntu-14-04/
https://community.linuxmint.com/tutorial/view/1102
代码: 全选
sudo start bluetooth
然后蓝牙还是没有出来start: Job is already running: bluetooth
非常抱歉,上面的回复有误photor 写了:按照第3种方案实现了bluetooth不自动启动。但是需要手动打开蓝牙的时候不知道该怎么弄了,囧。尝试用提示代码: 全选
sudo start bluetooth
然后蓝牙还是没有出来start: Job is already running: bluetooth
代码: 全选
# rfkill list all
0: tpacpi_bluetooth_sw: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
4: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
代码: 全选
# rfkill block bluetooth
代码: 全选
# rfkill list all
0: tpacpi_bluetooth_sw: Bluetooth
Soft blocked: yes
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
4: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
代码: 全选
# rfkill unblock bluetooth
代码: 全选
# rfkill list all
0: tpacpi_bluetooth_sw: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
4: hci0: Bluetooth
Soft blocked: no
Hard blocked: no