Rfkillが失敗しました。 /dev/rfkill を開いたり読み込めません。そのファイルやディレクトリがなく、ファイル記述子が正しくありません。

Rfkillが失敗しました。 /dev/rfkill を開いたり読み込めません。そのファイルやディレクトリがなく、ファイル記述子が正しくありません。

以前に機能していた組み込みシステム(google Coral、Mendel Linux)でBluetoothサービスを有効にしようとしています。次のような状況が発生しました(以前は機能していませんでしたが、問題を解決しました。Active (running)しばらくは緑色に見えます)。

● bluetooth.service - Bluetooth service
   Loaded: loaded (/etc/systemd/system/bluetooth.service; enabled; vendor preset: enable
   Active: active (running) since Mon 2023-02-20 09:04:28 CET; 2h 45min ago
     Docs: man:bluetoothd(8)
 Main PID: 5846 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 797)
   Memory: 712.0K
   CGroup: /system.slice/bluetooth.service
           └─5846 /usr/lib/bluetooth/bluetoothd --compat

Feb 20 09:04:28 silly-quill systemd[1]: Starting Bluetooth service...
Feb 20 09:04:28 silly-quill bluetoothd[5846]: Bluetooth daemon 5.50
Feb 20 09:04:28 silly-quill systemd[1]: Started Bluetooth service.
Feb 20 09:04:28 silly-quill bluetoothd[5846]: Starting SDP server
Feb 20 09:04:28 silly-quill bluetoothd[5846]: Failed to open RFKILL control device
Feb 20 09:04:28 silly-quill bluetoothd[5846]: Bluetooth management interface 1.14 initia
Feb 20 09:04:28 silly-quill bluetoothd[5846]: Sap driver initialization failed.
Feb 20 09:04:28 silly-quill bluetoothd[5846]: sap-server: Operation not permitted (1)

これにより、BluetoothおよびBluetooth rfkillに関連するバグを調査することになりました。まだSAPドライバについてはよくわかりませんが、私が読んだ内容によるとここにDebian関連のBluetooth SAPがあります。そしてここでは、BluetoothサービスのSAPエラー、Bluetoothデバイスの設定に関連しているようです(この場合)。最後に、彼らはExecStart=/usr/lib/bluetooth/bluetoothd --noplugin=sapBluetoothファイルに以下を追加することを提案しました。サービスは以前は動作していましたが、まだrfkillの動作を説明していないため、まだ試していません。

sudo rfkill list all
rfkill: cannot open /dev/rfkill: No such file or directory
rfkill: cannot read /dev/rfkill: Bad file descriptor

アップデートのアップグレードまたはsudoで実行私には適していません。私は学んだソフトブロックとハードブロックそしてこここのgithubの問題,ついに,これmodprobeを試してみましょう。

sudo modprobe rfkill
modprobe: FATAL: Module rfkill not found in directory /lib/modules/4.14.98-imx

もっと気に入って見つけました。modprobeを実行するとモジュールが見つかりません。だから私はこれを試しました:

$ sudo depmod
$ sudo modprobe -r rfkill
modprobe: FATAL: Module rfkill not found.

私の考えにはrfkillと私のカーネルバージョンに問題があるようです(私はカーネルの専門知識がまったくありません)。もっと調査しましたが、答えが見つかりませんでした。ここに残しますが、それほど関連性がない可能性があります。rfkill は開発者 rfkill を開けません。権限が拒否されました。カーネルに言及しながらLinuxでrfkillを開くことができない。 Bluetoothサービスが互換モードになっています。 Mendelianタグを追加しようとしましたが、評判が足りません!

uname -a
Linux silly-quill 4.14.98-imx #1 SMP PREEMPT Tue Nov 2 02:55:21 UTC 2021 aarch64 GNU/Linux

ベストアンサー1

おすすめ記事