蓝牙鼠标无需移动即可保持连接/断开连接

蓝牙鼠标无需移动即可保持连接/断开连接

我正在尝试设置蓝牙鼠标,但没有成功。

我使用的是 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

蓝牙状态

 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并工作了!

但我以前尝试过但没有成功,不同的是现在我尝试相信鼠标打开时的情况配对模式……这似乎有很大的不同。

如果我不信任配对模式,则不会发生任何事情。

相关内容