我有一只 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 和其他依赖项。