藍牙 LE 和 Ubuntu 16.04,有時有效,有時無效

藍牙 LE 和 Ubuntu 16.04,有時有效,有時無效

我來自 Fedora 22 和 23,因為它支援我的 BLE 滑鼠(Microsoft Designer 滑鼠)。我決定切換到「穩定」16.04,因為相比 GNOME,我更喜歡 Unity。

為了使我的滑鼠至少與我的電腦配對,我必須刪除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 滑鼠。滑鼠在啟動時工作,但在隨機時間後停止工作。使用通知欄中的圖標關閉並再次打開藍牙對我來說很有效,但這確實很煩人。

相關內容