![每次重启蓝牙鼠标都需要重新连接。如何永久添加?](https://linux22.com/image/1047026/%E6%AF%8F%E6%AC%A1%E9%87%8D%E5%90%AF%E8%93%9D%E7%89%99%E9%BC%A0%E6%A0%87%E9%83%BD%E9%9C%80%E8%A6%81%E9%87%8D%E6%96%B0%E8%BF%9E%E6%8E%A5%E3%80%82%E5%A6%82%E4%BD%95%E6%B0%B8%E4%B9%85%E6%B7%BB%E5%8A%A0%EF%BC%9F.png)
我有一只 Logitech 蓝牙鼠标 M557。它可以与我的 Ubuntu 配合使用,但每次我重启笔记本电脑并进入桌面时都需要重新启用它。而且它在登录屏幕上不起作用。
答案1
hcitool scan # it will find MAC of the mouse
sudo bluez-simple-agent hci0 <MAC>
sudo bluez-test-device trusted <MAC> yes
sudo bluez-test-input connect <MAC>
答案2
问题出在 Bluez 上。Debian 7.8(bluez 软件包 4.99-2)上也存在同样的问题。在 Debian 8.0 RC1(bluez 软件包 5.23-2)上它可以工作,但是仍然显示一些鼠标警告:
[ 43.710930] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 43.710940] Bluetooth: HIDP socket layer initialized
[ 43.852388] hid-generic 0005:046D:B010.0001: unknown main item tag 0x0
[ 43.852490] input: Bluetooth Mouse M557 as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/bluetooth/hci0/hci0:11/0005:046D:B010.0001/input/input20
[ 43.852692] hid-generic 0005:046D:B010.0001: input,hidraw0: BLUETOOTH HID v10.01 Mouse [Bluetooth Mouse M557] on 74:f0:6d:a7:00:1e
因此解决方案是升级 Bluez 和其他依赖项。