如何在Ubuntu中禁用终端的蓝牙function

如何在Ubuntu中禁用终端的蓝牙function

停止 :

 sudo service bluetooth stop 

重新开始:

 sudo service bluetooth start 

重启 :

 sudo service bluetooth restart 

要检查当前状态:

 service bluetooth status 

或者您可以使用rfkill命令:

 rfkill block bluetooth 

您也可以禁用单个适配器

 sudo hciconfig hci0 down 

如果hci0是唯一的适配器,那么这意味着蓝牙不可用。

此外,如果您想永久禁用它:

 sudo mv /etc/init/bluetooth.conf /etc/init/bluetooth.conf.disabled 

要重新启用:

 sudo mv /etc/init/bluetooth.conf.disabled /etc/init/bluetooth.conf 

试试这个命令:

 rfkill block bluetooth