BluetoothMouse for linux

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也許可以工作得很好。但是文章中的這個方法是真正為鼠標所優化的,而且確切可以使鼠標正常工作。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值