BluetoothMouse
蓝牙鼠标
原文出处:官方WIKI
原文作者:
授权许可:
翻译人员:Roots
校正人员:CaoXiaoboBUAA
贡献人员:
适用版本: 文章状态:翻译完成
Many people have reported problems connecting a bluetooth mouth and making it stay connected.There is an easy solution to this problem.You only have to do this once,and the mouth will connect automatically when you turn it on,or it resume from power savings.
某些人报告在连接蓝牙鼠标以及保持蓝牙连接时存在问题。解决这个问题是非常容易的。你只需要做一次下面所述的工作。鼠标就可以自动在你打开它及从省电模式返回的时候自动连接。
Install Required Software(安装所需要的软件包)
sudo apt-get install bluez-utils nano
Making tje hidd daemon start in the boot process (使 tje hidd 守护进程在开机时启动)
sudo nano /etc/rc.local
Add the following line to /etc/rc.local:
在/etc/rc.local中添加如下的行:
/usr/bin/hidd --server
Make sure /etc/rc.local ends with exit 0.
确认/etc/rc.local以exit 0为结尾
Plug the bluetooth device into your computer and start bluez-utils:
插入蓝牙设备并启动bluez-utils:
sudo /etc/init.d/bluez-utils restart
Now either restart or open a console and type the following command to start the hidd server:
重启或是打开一个终端并输入如下的命令来启动hidd服务程序:
sudo hidd --server
Now lets connect the mouse:
现在可以连接鼠标了:
sudo hidd --search
Retry this command until the mouse connects. You may have to turn it off and on or press the reset button a couple of times.
不断重试这个命令直到鼠标连接成功。你应当在一段时间内不断地关闭并打开鼠标或是按鼠标的重启按钮。
The alternative connection method is looking for the bluetooth adress, usually located at the bottom of the mouse, and type:
另一种可行的连接方法是寻找蓝牙设备的蓝牙地址,通常会标于鼠标的底部,而且也会标明类型:
sudo hidd --connect 00:01:02:03:04:05
Where you change the numbers into the numbers you find on your mouse.
你应当将这些数字换成你在你鼠标上找到的数字。
Now the mouse should reconnect once you turn it on, even if you reboot. Some people experience that using the hcitools for anything, might create some fuzz with the hidd tool.
现在你的鼠标能够在你打开它时,或是你重启鼠标的时候自动连接。有些人在使用hcitools做一些工作的时候,可能会同hidd 程序产生冲突并导致某些问题。
Approach is tested using:测试成功的版本:
- kubuntu 6.06 dapper
- kernel内核: 2.6.15-26-386
- bluez-utils: 2.24
Comments备注
- There is no need to edit rc.local. Better edit /etc/default/bluez-utils and set HIDD_ENABLED to 1 and add option --connect deviceaddr to HIDD_OPTIONS
你不需要编辑rc.local。更好的方法是编辑/etc/default/bluez-utils并将HIDD_ENABLED设置为1以及在HIDD_OPTIONS中增加--connect deviceaddr选项
- The /etc/default/bluez-utils method might very well work, but the method in this article really works for mice. And the effect is exactly the one you want for your mouse.
修改/etc/default/bluez-utils也许可以工作得很好。但是文章中的这个方法是真正为鼠标所优化的,而且确切可以使鼠标正常工作。