Bluetoothマウスを設定しようとしましたが、成功しませんでした。
Fedora 29を使用していますが、Debianディストリビューションでもテストしてみましたが、問題は同じでディストリビューションだけの関連問題ではないようです...
マウスが動作し、Windowsコンピュータでテストしました。
Bluetoothctlは毎秒接続/接続切断を表示し、マウスも移動しません。
以下にいくつかの兆候があります。
Bluez インストール: bluez-5.50-3.fc29.src.rpm (Bluez 5.50 x86_74)
sudo hcitool info 00:1F:20:8E:20:CE
Requesting information ...
BD Address: 00:1F:20:8E:20:CE
OUI Company: Logitech Europe SA (00-1F-20)
Device Name: Dell Travel Mouse WM524
LMP Version: 3.0 (0x5) LMP Subversion: 0x2211
Manufacturer: Broadcom Corporation (15)
Features page 0: 0xbc 0x04 0x82 0x78 0x00 0x06 0x59 0x83
<encryption> <slot offset> <timing accuracy> <role switch>
<sniff mode> <channel quality> <paging scheme>
<broadcast encrypt> <enhanced iscan> <interlaced iscan>
<interlaced pscan> <inquiry with RSSI> <sniff subrating>
<pause encryption> <extended inquiry> <simple pairing>
<encapsulated PDU> <non-flush flag> <LSTO> <inquiry TX power>
<extended features>
Features page 1: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Bluetoothステータス
systemctl status bluetooth:
● bluetooth.service - Bluetooth service
Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-02-06 01:05:47 -02; 18min ago
Docs: man:bluetoothd(8)
Main PID: 821 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 4915)
Memory: 2.6M
CGroup: /system.slice/bluetooth.service
└─821 /usr/libexec/bluetooth/bluetoothd
Feb 06 01:06:03 localhost.localdomain bluetoothd[821]: RFCOMM server failed for Message Notification: socket(STREAM, RFCOMM): Protocol not supported (93)
Feb 06 01:06:03 localhost.localdomain bluetoothd[821]: RFCOMM server failed for Message Access: socket(STREAM, RFCOMM): Protocol not supported (93)
Feb 06 01:06:03 localhost.localdomain bluetoothd[821]: RFCOMM server failed for Phone Book Access: socket(STREAM, RFCOMM): Protocol not supported (93)
Feb 06 01:06:03 localhost.localdomain bluetoothd[821]: RFCOMM server failed for Synchronization: socket(STREAM, RFCOMM): Protocol not supported (93)
Feb 06 01:06:03 localhost.localdomain bluetoothd[821]: RFCOMM server failed for File Transfer: socket(STREAM, RFCOMM): Protocol not supported (93)
Feb 06 01:06:03 localhost.localdomain bluetoothd[821]: RFCOMM server failed for Object Push: socket(STREAM, RFCOMM): Protocol not supported (93)
Feb 06 01:07:01 localhost.localdomain bluetoothd[821]: Can't open HIDP control socket
Feb 06 01:07:02 localhost.localdomain bluetoothd[821]: Rejected connection from unknown device 00:1F:20:8E:20:CE
Feb 06 01:13:04 localhost.localdomain bluetoothd[821]: Can't open HIDP control socket
Feb 06 01:13:09 localhost.localdomain bluetoothd[821]: connect error: Host is down (112)
bluetoothctlを使用すると、デバイスをペアリングできます。
[bluetooth]# pair 00:1F:20:8E:20:CE
Attempting to pair with 00:1F:20:8E:20:CE
[CHG] Device 00:1F:20:8E:20:CE Connected: yes
[CHG] Device 00:1F:20:8E:20:CE Modalias: usb:v046DpB00Ed0800
[CHG] Device 00:1F:20:8E:20:CE UUIDs: 00001000-0000-1000-8000-00805f9b34fb
[CHG] Device 00:1F:20:8E:20:CE UUIDs: 00001124-0000-1000-8000-00805f9b34fb
[CHG] Device 00:1F:20:8E:20:CE UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 00:1F:20:8E:20:CE ServicesResolved: yes
[CHG] Device 00:1F:20:8E:20:CE Paired: yes
Pairing successful
[CHG] Device 00:1F:20:8E:20:CE ServicesResolved: no
[CHG] Device 00:1F:20:8E:20:CE Connected: no
ペアリング後に接続してみてください。
[bluetooth]# connect 00:1F:20:8E:20:CE
Attempting to connect to 00:1F:20:8E:20:CE
Failed to connect: org.bluez.Error.Failed
[CHG] Device 00:1F:20:8E:20:CE Connected: yes
[CHG] Device 00:1F:20:8E:20:CE Connected: no
[CHG] Device 00:1F:20:8E:20:CE Connected: yes
[CHG] Device 00:1F:20:8E:20:CE Connected: no
[CHG] Device 00:1F:20:8E:20:CE Connected: yes
[CHG] Device 00:1F:20:8E:20:CE Connected: no
[CHG] Device 00:1F:20:8E:20:CE Connected: yes
[CHG] Device 00:1F:20:8E:20:CE Connected: no
何が起こりますか?
答え1
試してみたところ、効果があって本当に嬉しかった[bluetooth]# trust 00:1F:20:8E:20:CE
です!
しかし、以前は試してみましたが、成功しませんでした。違いは、マウスをオンにしたときに何が起こるのかを信頼しようとしていることです。ペアリングモード…それが大きな変化をもたらすようです。
ペアリングモードを信頼しないと何も起こりません。