如何在 Ubuntu 12.4 上啟動時停用藍牙設備,我已存取/etc/init/bluetooth.conf
文件和註解#start on started dbus
行。但當電腦啟動時,藍牙設備仍在運作。
如何在系統啟動時停用藍牙裝置?
答案1
這將在啟動時禁用藍牙服務:
# bluez - bluetooth daemon
description "bluetooth daemon"
#start on started dbus
stop on runlevel [0123456]
bluetooth.conf
您編輯文件時似乎發生了錯誤。你發表評論嗎stop on stopping dbus
?
如果您想關閉藍牙設備,請嘗試在啟動時將其從核心模組載入中刪除。編輯/etc/modprobe.d/blacklist.conf
,新增一行:
blacklist bluetooth
答案2
您可以嘗試新增以下行:
sudo hciconfig hci0 down
到命令/etc/rc.local
之前exit
。您可以使用 編輯該文件sudo nano /etc/rc.local
。