bluetoothctlを使用してBluetooth LEキーボードを接続できない

bluetoothctlを使用してBluetooth LEキーボードを接続できない

私はLenovo Thinkpad X1 Tabletの第2世代でUbuntu 20.04を実行しています。私は最近、Bluetooth LEを使用するLenovo Trackpoint Keyboard IIを購入しました。使うスタック交換ポスト、Bluetooth LEのキーボードを一度働かせることができました

sudo -i 
btmgmt power off
btmgmt discov on
btmgmt connectable on
btmgmt pairable on
btmgmt power on
bluetoothctl --agent KeyboardDisplay

それから

connect 00:11:22:33:44:55

しかし、動作した後にエラーが発生しました。

Attempting to connect to 00:11:22:33:44:55
Failed to connect: org.bluez.Error.Failed le-connection-abort-by-local

出力は次info 00:11:22:33:44:55 のとおりです。

Device 00:11:22:33:44:55 (random)
    Name: TrackPoint Keyboard II
    Alias: TrackPoint Keyboard II
    Appearance: 0x03c1
    Icon: input-keyboard
    Paired: yes
    Trusted: yes
    Blocked: no
    Connected: no
    WakeAllowed: 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:v17EFp60E1d0047

systemctl status bluetooth与えられた

● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2023-09-19 15:38:20 EDT; 21h ago
       Docs: man:bluetoothd(8)
   Main PID: 108246 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 9096)
     Memory: 2.2M
        CPU: 1min 11.582s
     CGroup: /system.slice/bluetooth.service
             └─108246 /usr/lib/bluetooth/bluetoothd

Sep 19 15:38:20 hamm bluetoothd[108246]: Endpoint registered: sender=:1.3360 path=/MediaEndpoint/A2DPSource/sbc_xq_>
Sep 19 15:38:20 hamm bluetoothd[108246]: Endpoint registered: sender=:1.3360 path=/MediaEndpoint/A2DPSink/sbc_xq_552
Sep 19 15:38:20 hamm bluetoothd[108246]: Endpoint registered: sender=:1.3360 path=/MediaEndpoint/A2DPSource/sbc_xq_>
Sep 19 18:59:26 hamm bluetoothd[108246]: /org/bluez/hci0/dev_C8_7B_23_56_84_6A/fd0: fd(33) ready
Sep 19 20:20:03 hamm bluetoothd[108246]: src/profile.c:ext_io_disconnected() Unable to get io data for Hands-Free V>
Sep 20 04:06:53 hamm bluetoothd[108246]: /org/bluez/hci0/dev_C8_7B_23_56_84_6A/sep1/fd1: fd(33) ready
Sep 20 11:21:06 hamm bluetoothd[108246]: /org/bluez/hci0/dev_C8_7B_23_56_84_6A/sep1/fd2: fd(33) ready
Sep 20 11:48:31 hamm bluetoothd[108246]: profiles/audio/avdtp.c:avdtp_parse_rej() SET_CONFIGURATION request rejecte>
Sep 20 11:48:31 hamm bluetoothd[108246]: src/profile.c:ext_io_disconnected() Unable to get io data for Hands-Free V>
Sep 20 11:48:32 hamm bluetoothd[108246]: src/service.c:btd_service_connect() a2dp-sink profile connect failed for C>

この問題を診断して解決するにはどうすればよいですか?

ベストアンサー1

インターネットでもう少し検索してこれを見つけましたArch Linuxの投稿sudo bluetoothctl remove 00:11:22:33:44:55標準システムBluetoothコントロール(GUI)を介してペアリングして接続することをお勧めします。これで、キーボードは2つの異なるセッションで動作します。

おすすめ記事