
備忘録です。
とりあえず、音が出ました。
本来のBluetoothレシーバーの性能は発揮できてません。
レシーバーはLDAC対応してるんだよ。
でも、送る側のラズパイ側が対応してないの
ラズパイのCPU、
Arm系で
LDAC対応すると、
ソースからのコンパイル必要と
これするとへまった時などにアンインストールがほぼ不可能。
OS再インストールなので避けたい。
Raspberry PiだとLDACは断念かなぁ。
今後、Arm系でパッケージ化してくれるのを期待して待つしかないか。
x86系だとできそうなので、
LattePandaさんで追って試してみます。
さて、OSのイメージは
こちらから。
ダウンロードしたのは「konalinux-pi-64-1.0.img」
Raspberry OSをベースにしたものです。
日本製なので、起動した後の設定は無線LAN位。
日本語を使うための設定は不要ですし、さっと立ち上げる。
exfatが使えないので、USBメモリや外着けHDDを認識してくれないことあります。
なので、ターミナルで下記下線部のおまじないをするくらいかな。
pi@raspberrypi:~ $
sudo apt-get install exfat-fuse exfat-utils
音質もいいようですが、まだ裏の構成を理解してないからどう設定していけばいいかわからん。
jackっておいしいの?
でも、これは標準ではBluetoothが使えません。それでハマったので備忘録
ターミナルで下線部分を入力します。
Bluetooth の状態確認
pi@raspberrypi:~ $
sudo /etc/init.d/bluetooth status
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Sun 2020-08-30 19:05:29 JST; 5 months 8 days ago
Docs: man:bluetoothd(8)
Process: 819 ExecStart=/usr/lib/bluetooth/bluetoothd (code=exited, status=0/SUCCESS)
Main PID: 819 (code=exited, status=0/SUCCESS)
Status: "Quitting"
8月 30 19:05:17 raspberrypi bluetoothd[819]: Endpoint registered: sender=:…e/1
8月 30 19:05:17 raspberrypi bluetoothd[819]: Endpoint registered: sender=:…e/2
8月 30 19:05:29 raspberrypi bluetoothd[819]: Endpoint unregistered: sender…e/1
8月 30 19:05:29 raspberrypi bluetoothd[819]: Endpoint unregistered: sender…e/2
8月 30 19:05:29 raspberrypi bluetoothd[819]: Terminating
8月 30 19:05:29 raspberrypi systemd[1]: Stopping Bluetooth service...
8月 30 19:05:29 raspberrypi bluetoothd[819]: Stopping SDP server
8月 30 19:05:29 raspberrypi bluetoothd[819]: Exit
8月 30 19:05:29 raspberrypi systemd[1]: bluetooth.service: Succeeded.
8月 30 19:05:29 raspberrypi systemd[1]:
Stopped Bluetooth service.
Hint: Some lines were ellipsized, use -l to show in full.
「Stopped Bluetooth service.」でBluetoothが止まってます。
なので、Bluetoothを追加しようとしてもなーんにも出てきません。
Bluetooth を強制的に再起動
pi@raspberrypi:~ $
sudo systemctl start bluetooth
再度Bluetooth の状態確認
pi@raspberrypi:~ $
sudo /etc/init.d/bluetooth status
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2021-02-07 09:52:40 JST; 36s ago
Docs: man:bluetoothd(8)
Main PID: 9698 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 1914)
CGroup: /system.slice/bluetooth.service
mq9698 /usr/lib/bluetooth/bluetoothd
2月 07 09:52:40 raspberrypi systemd[1]: Starting Bluetooth service...
2月 07 09:52:40 raspberrypi bluetoothd[9698]: Bluetooth daemon 5.50
2月 07 09:52:40 raspberrypi bluetoothd[9698]: Starting SDP server
2月 07 09:52:40 raspberrypi systemd[1]: Started Bluetooth service.
2月 07 09:52:40 raspberrypi bluetoothd[9698]: Bluetooth management interface 1.14 initialized
2月 07 09:52:40 raspberrypi bluetoothd[9698]:
Sap driver initialization failed.
2月 07 09:52:40 raspberrypi bluetoothd[9698]:
sap-server: Operation not permitted (1)
2月 07 09:52:40 raspberrypi bluetoothd[9698]:
Failed to set mode: Blocked through rfkill (0x12)
犯人が顔を出してくれます。
この太字が犯人。
犯人の更生(エラー対応)
/lib/systemd/system/bluetooth.service に記載されていますので
ExecStart=/usr/lib/bluetooth/bluetoothd
↓
ExecStart=/usr/lib/bluetooth/bluetoothd --noplugin=sap
このように直してから、再度サービスを起動しなおして
再起動でもいいけど。
これでBluetoothに接続してもBluetoothの状態では「×」で失敗したように見えますが、
画面のように、AudioのOutPutで選択してあげれば復活します。
追記
再起動すると、なぜかBluetoothサービスが起動しません。
Failed to set privacy: Rejected (0x0b)
こんなメッセージが出ていますがエラーではないようです。
起動を失敗したサービスを表示する下記コマンドを入力しても、
bluetoothは出てこないので…
systemctl --state=failed
一筋縄ではいきません。