个人工具

“UbuntuHelp:BluetoothMouse”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第5行: 第5行:
  
 
=== Preparation ===
 
=== Preparation ===
Users of Ubuntu versions that are older than 6.10 Edgy Eft will have to install bluez-utils:
+
==== 6.10 and Newer ====
<pre><nowiki>
+
* Edit the file /etc/default/bluetooth: `sudo sensible-editor /etc/default/bluetooth`
sudo apt-get install bluez-utils
+
* Set the variable `HIDD_ENABLED=1`.
</nowiki></pre>
+
* Restart the bluetooth service with the command: `sudo /etc/init.d/bluetooth restart`
Other than that, setup should involve the same steps for all versions of Ubuntu. Do the following steps:
+
==== Ubuntu Versions Older than 6.10 ====
# Edit the file /etc/default/bluetooth: `sudo nano -w /etc/default/bluetooth`
+
* `sudo apt-get install bluez-utils`
# Set the variable `HIDD_ENABLED=1`.
+
* Edit the file /etc/default/bluez-utils: `sudo sensible-editor /etc/default/bluez-utils`
# Restart the bluetooth service with the command: `sudo /etc/init.d/bluetooth restart`
+
* Set the variable `HIDD_ENABLED=1`.
 +
* Restart the bluetooth service with the command: `sudo /etc/init.d/bluez-utils restart`
  
(On versions older than 6.10, replace bluetooth with bluez-utils on the instructions above)
 
  
 
=== Connect the Mouse ===
 
=== Connect the Mouse ===
第24行: 第24行:
 
Retry this command until the mouse connects. You may have to turn it off and on or press the reset/connect button a couple of times.
 
Retry this command until the mouse connects. You may have to turn it off and on or press the reset/connect button a couple of times.
  
Alternately, you can find the Bluetooth address of your mouse, it's usually labeled on the bottom, and type:
+
Alternately, you can find the Bluetooth address of your mouse via:
 +
* a label on the bottom of the mouse
 +
* running `hcitool scan`
 +
 
 +
Once the address is known, type:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo hidd --connect deviceaddr
 
sudo hidd --connect deviceaddr
 
</nowiki></pre> Where deviceaddr is the address of your mouse, for example 00:01:02:03:04:05
 
</nowiki></pre> Where deviceaddr is the address of your mouse, for example 00:01:02:03:04:05
  
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.
+
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.
  
 
==== Approach is tested using: ====
 
==== Approach is tested using: ====
第35行: 第39行:
 
{|border="1" cellspacing="0"
 
{|border="1" cellspacing="0"
 
| '''*ubuntu Release'''  || '''Kernel'''        || '''bluez-utils'''   
 
| '''*ubuntu Release'''  || '''Kernel'''        || '''bluez-utils'''   
 +
|-
 +
| Ubuntu 7.10 gutsy      || 2.6.22-14-386        || 3.19-0ubuntu3       
 
|-
 
|-
 
| Kubuntu 7.04 feisty    || 2.6.20-15-generic    || 3.9-0ubuntu4         
 
| Kubuntu 7.04 feisty    || 2.6.20-15-generic    || 3.9-0ubuntu4         

2007年11月22日 (四) 12:08的版本


Bluetooth Mouse

Many people have reported problems with connecting a Bluetooth mouse and making it stay connected. There is an easy solution to this problem. You only have to do this once, and the mouse will connect automatically when you turn it on, or it resumes from power savings.

Preparation

6.10 and Newer

  • Edit the file /etc/default/bluetooth: `sudo sensible-editor /etc/default/bluetooth`
  • Set the variable `HIDD_ENABLED=1`.
  • Restart the bluetooth service with the command: `sudo /etc/init.d/bluetooth restart`

Ubuntu Versions Older than 6.10

  • `sudo apt-get install bluez-utils`
  • Edit the file /etc/default/bluez-utils: `sudo sensible-editor /etc/default/bluez-utils`
  • Set the variable `HIDD_ENABLED=1`.
  • Restart the bluetooth service with the command: `sudo /etc/init.d/bluez-utils restart`


Connect the Mouse

Now let's 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/connect button a couple of times.

Alternately, you can find the Bluetooth address of your mouse via:

  • a label on the bottom of the mouse
  • running `hcitool scan`

Once the address is known, type:

sudo hidd --connect deviceaddr
Where deviceaddr is the address of your mouse, for example 00:01:02:03:04:05

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.

Approach is tested using:

*ubuntu Release Kernel bluez-utils
Ubuntu 7.10 gutsy 2.6.22-14-386 3.19-0ubuntu3
Kubuntu 7.04 feisty 2.6.20-15-generic 3.9-0ubuntu4
Ubuntu 6.10 edgy
Kubuntu 6.06 dapper 2.6.15-26-386 2.24