#author("2021-08-18T02:45:49+09:00","","")
[[Raspberry Pi/Raspbian]]

* bluetooth ヘッドセット設定 [#mdf817db]

 apt install pi-bluetooth
 apt install bluealsa
 apt install pulseaudio pulseaudio-utils pulseaudio-module-bluetooth


* [#gf722fba]
 sudo vi /etc/systemd/system/pulseaudio.service

 [Unit] 
 Description=Pulse Audio 
 
 [Service] 
 Type=simple 
 ExecStart=/usr/bin/pulseaudio --system --disallow-exit --disable-shm
 
 [Install]
 WantedBy=multi-user.target

 sudo systemctl start pulseaudio.service
 sudo systemctl enable pulseaudio.service

 

* 接続 [#x1a2f425]
 bluetoothctl
- スキャン開始
 scan on
- スキャン終了
 scan off
- デバイス一覧表示
 devices
- ペアリング
 pair [デバイスのアドレス]
- ペアリング解除
 remove [デバイスのアドレス]
- 接続
 connect [デバイスのアドレス]
 ※通常 pair にて connect までされる。
- 切断
 disconnect [デバイスのアドレス]
- 終了
 quit

* [#l103f189]
/lib/systemd/system/bluetooth.service の bluetoothd に --noplugin=sap オプションをつける

 [Service]
 Type=dbus
 BusName=org.bluez
 ExecStart=/usr/lib/bluetooth/bluetoothd --noplugin=sap


* ログ確認 [#f5212824]
 systemctl status bluetooth

トップ   一覧 検索 最終更新   ヘルプ   最終更新のRSS