- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2021-08-18T02:45:49+09:00","","")
#author("2021-08-18T03:56:35+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
* /etc/dbus-1/system.d/bluetooth.conf [#sf50dc36]
<policy context="default"
<allow send_destination="org.bluez"/>
</policy>
* p [#p9be3330]
* ログ確認 [#f5212824]
systemctl status bluetooth