Ubuntu 12.4 の起動時に Bluetooth デバイスを無効にする方法

Ubuntu 12.4 の起動時に Bluetooth デバイスを無効にする方法

Ubuntu 12.4 の起動時に Bluetooth デバイスを無効にする方法。/etc/init/bluetooth.confファイルとコメント#start on started dbus行にアクセスしました。しかし、PC の起動時に Bluetooth デバイスはまだ実行されています。

システムの起動時に Bluetooth デバイスを無効にするにはどうすればいいですか?

答え1

これにより、起動時に Bluetooth サービスが無効になります。

# bluez - bluetooth daemon

description     "bluetooth daemon"

#start on started dbus
stop on runlevel [0123456]

ファイルを編集したときにエラーが発生したようですbluetooth.conf。コメントはありますかstop on stopping dbus?

Bluetooth デバイスをオフにしたい場合は、起動時にカーネル モジュールのロードから削除してみてください。編集して/etc/modprobe.d/blacklist.conf、次の行を追加します。

blacklist bluetooth

答え2

次の行を追加してみてください。

sudo hciconfig hci0 down

/etc/rc.localコマンドの前にexit. を追加します。 を使用してファイルを編集できますsudo nano /etc/rc.local

関連情報