「Raspberry Piの初期設定」の版間の差分

ナビゲーションに移動 検索に移動
242行目: 242行目:
** 同バージョンがインストール済みの場合は、再インストールしない。
** 同バージョンがインストール済みの場合は、再インストールしない。
**: <code>-E</code>
**: <code>-E</code>
<br><br>
== Bluetoothの無効化 ==
オンボードのBluetoothおよび関連サービスを無効にする。<br>
これらの手順は、Raspberry Piの起動時にbluetooth、hci_uart、btbcm等の関連カーネルモジュールのロードも無効化する。<br>
<br>
Raspberry Pi 3B、3B+、3A+、4B、Zero Wにおいて、オンボードのBluetoothを無効化する。<br>
また、GPIO 14(pin 8)とGPIO 15(pin10)上のUART0 / ttyAMA0を復元する。<br>
<br>
N.B.モデムを初期化するsystemdサービスを無効にしてUARTを使用しないようにするには、<code>sudo systemctl disable hciuart</code>を使用する。<br>
sudo vi /boot/config.txt
<br>
# /boot/config.txtファイル
# Disable Bluetooth
dtoverlay=disable-bt
<br>
Bluetoothのデーモンを無効化する。<br>
sudo systemctl disable hciuart.service
sudo systemctl disable bluealsa.service
sudo systemctl disable bluetooth.service
<br>
Raspberry Piを再起動する。<br>
sudo systemctl reboot
<br>
ただし、オンボードのBluetoothおよび関連サービスを無効にしても、外付けのBluetoothアダプタを接続する場合、Bluetoothは利用できる。<br>
もし、Bluetoothが不要な場合は、Bluetoothスタックをアンインストールする。<br>
これにより、外付けのBluetoothアダプタも利用できなくなる。<br>
sudo apt purge bluez
sudo apt autoremove
<br><br>
<br><br>


案内メニュー