• 車種別
  • パーツ
  • 整備手帳
  • ブログ
  • みんカラ+
イイね!
2021年02月07日

Kona Linux Pi Bluetooth備忘録

Kona Linux Pi Bluetooth備忘録 備忘録です。
とりあえず、音が出ました。

本来の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


一筋縄ではいきません。
ブログ一覧 | 日記
Posted at 2021/02/07 13:45:39

イイね!0件



タグ

今、あなたにおすすめ

ブログ人気記事

祝・みんカラ歴14年!
なにわのツッチーさん

三宅島の噴火警戒レベルを2へ引上げ
どんみみさん

夏野菜と晩酌🏠🍶
brown3さん

また当たりました な日
ヤジキンさん

こんばんは。🙇🏼‍♂️
138タワー観光さん

大内宿〜鶴ヶ城〜五色沼
snoopoohさん

この記事へのコメント

コメントはありません。

プロフィール

「@山田だ さん、空気感がかなり違いました」
何シテル?   02/23 09:15
千葉在住のkakatoです。かかとんと呼んでください(w 一生涯、なんか楽しめそうなモノをずーっと探しつづけて行きたいとの 思いで、楽しみ工房と付けまし...

ハイタッチ!drive

みんカラ新規会員登録

ユーザー内検索

<< 2025/6 >>

1234567
891011121314
15161718192021
22232425262728
2930     

リンク・クリップ

【前編】リアカーテンを付けよう 
カテゴリ:その他(カテゴリ未設定)
2023/12/04 19:16:55
田んぼ〜からのジャンクション 
カテゴリ:その他(カテゴリ未設定)
2023/11/07 08:21:54
今の自分にベストマッチかも。 
カテゴリ:その他(カテゴリ未設定)
2023/04/17 21:43:04

愛車一覧

ホンダ フリード+ハイブリッド ホンダ フリード+ハイブリッド
前乗ってたモビリオスパイク同様車中泊(積載系)+オーディオ車にする(なる)予定。 外装は ...
ホンダ ステップワゴンスパーダ ホンダ ステップワゴンスパーダ
スカイルーフとフローリングを装備してます。 今のところ、外見はほぼノーマルです。 この ...
ホンダ モビリオスパイク ホンダ モビリオスパイク
過去に乗っていた車です。 わん車化してました。
ヘルプ利用規約サイトマップ

あなたの愛車、今いくら?

複数社の査定額を比較して愛車の最高額を調べよう!

あなたの愛車、今いくら?
メーカー
モデル
年式
走行距離(km)
© LY Corporation