蓝牙 LE 和 Ubuntu 16.04,有时有效,有时无效

蓝牙 LE 和 Ubuntu 16.04,有时有效,有时无效

我之前使用的是 Fedora 22 和 23,因为它支持我的 BLE 鼠标(Microsoft Designer Mouse)。我决定切换到“稳定”的 16.04,因为我更喜欢 Unity 而不是 GNOME。

为了让我的鼠标至少与我的电脑配对,我必须删除50-bluetooth-hci-auto-poweron.rules并取消注释autoenable=true/etc/bluetooth/main.conf如下所述这里)。

有时我启动电脑时,鼠标可以工作(虽然过一会儿就停止工作了),有时却不行。例如,今天我重启了电脑 10 次,但都没有成功。昨天,重启了 3 次后鼠标又恢复了工作。请帮帮我,这真的很烦人。

$ lsusb
Atheros Communications, Inc. AR3012 Bluetooth 4.0
$ dmesg
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: BNEP socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: hci0 command 0x0c52 tx timeout
$ bluetoothctl
[bluetooth]# info CC:E4:52:E7:9B:9E 
Device CC:E4:52:E7:9B:9E
  Name: Designer Mouse
  Alias: Designer Mouse
  Appearance: 0x03c2
  Icon: input-mouse
  Paired: yes
  Trusted: yes
  Blocked: no
  Connected: no
  LegacyPairing: no
  Modalias: usb:v045Ep0805d0100

[bluetooth]# connect CC:E4:52:E7:9B:9E 
Attempting to connect to CC:E4:52:E7:9B:9E
Failed to connect: org.bluez.Error.Failed

如果有办法知道与 Fedora 配置有何不同就太好了,因为在该系统上它运行得非常完美。

答案1

我解决了用 blueman 替换 gnome 蓝牙默认指示器的问题(它甚至更好并且有更多选项,我真的很想知道为什么它不是默认的)

cd /usr/share/upstart/sessions

sudo mv indicator-bluetooth.conf indicator-bluetooth.conf.old

sudo apt install blueman

然后我重启并重新关联鼠标。现在它随时都可以正常工作。

答案2

我也遇到过类似的问题。我使用的是 Ubuntu 16.04 和 Microsoft Designer 鼠标。鼠标在启动时可以使用,但经过一段随机时间后就会停止工作。使用通知栏中的图标关闭蓝牙然后再打开对我来说是可行的,但这真的很烦人。

相关内容