Alpine LinuxのBluetoothキーボード/マウスの問題

Alpine LinuxのBluetoothキーボード/マウスの問題

私はAlpine Linuxを使用しており、以下のBluetooth関連パッケージがインストールされています。

bluez-5.68-r1 x86_64 {bluez} (GPL-2.0-or-later AND BSD-2-Clause AND MIT) [installed]
bluez-btmgmt-5.68-r1 x86_64 {bluez} (GPL-2.0-or-later AND BSD-2-Clause AND MIT) [installed]
bluez-btmon-5.68-r1 x86_64 {bluez} (GPL-2.0-or-later AND BSD-2-Clause AND MIT) [installed]
bluez-doc-5.68-r1 x86_64 {bluez} (GPL-2.0-or-later AND BSD-2-Clause AND MIT) [installed]
bluez-firmware-1.2-r1 x86_64 {bluez-firmware} (GPL-2.0-or-later) [installed]
bluez-hid2hci-5.68-r1 x86_64 {bluez} (GPL-2.0-or-later AND BSD-2-Clause AND MIT) [installed]
bluez-libs-5.68-r1 x86_64 {bluez} (GPL-2.0-or-later AND BSD-2-Clause AND MIT) [installed]
bluez-openrc-5.68-r1 x86_64 {bluez} (GPL-2.0-or-later AND BSD-2-Clause AND MIT) [installed]
bluez-plugins-5.68-r1 x86_64 {bluez} (GPL-2.0-or-later AND BSD-2-Clause AND MIT) [installed]
pipewire-spa-bluez-0.3.74-r0 x86_64 {pipewire} (LGPL-2.1-or-later) [installed]

サービスbluetoothが実行されており、コマンドラインユーティリティを使用してBluetoothヘッドフォンを接続して使用することもできますbluetoothctl

ただし、HIDデバイス(キーボードとマウス)の場合、ペアリング、接続、および信頼できますが、キーを押すかマウスを動かしても入力は生成されません。

特に私のキーボードのBluetooth接続は次のとおりです。

device CE:FE:50:FA:F7:83 (random)
    Name: TEX-BLE-1
    Alias: TEX-BLE-1
    Appearance: 0x03c1 (961)
    Icon: input-keyboard
    Paired: yes
    Bonded: yes
    Trusted: yes
    Blocked: no
    Connected: yes
    LegacyPairing: no
    UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
    UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
    UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
    UUID: Battery Service           (0000180f-0000-1000-8000-00805f9b34fb)
    UUID: Human Interface Device    (00001812-0000-1000-8000-00805f9b34fb)
    Modalias: usb:v04D9p2521d0000
    Battery Percentage: 0x63 (99)

ただし、押すとキーストロークはまったく記録されません。 Ubuntuの新規インストール時に同じキーボードとマウスを試してみましたが、うまくいきました。キーボードはUSB-C接続でも完全に機能します。 Bluetoothスタックのパッケージや特定の設定オプションが欠落しているようです。

ベストアンサー1

数多くの試行錯誤の最後にBluetoothガイドを見ています。https://wiki.alpinelinux.org/wiki/Bluetoothエラーを再発見しました。ガイドの下部に記載されているように、カーネルモジュールを取り付けてhidapiロードしました。uhid

apk add hidapi
modprobe uhid

その後、キーボードを取り外しbluetoothctlて再ペアリングしました。今キーを登録してください。変更を永久に適用するuhidために/etc/modules

これで、再起動後もキーボードが機能します。

おすすめ記事