个人工具

“UbuntuHelp:BluetoothInputDevices/zh”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(创建新页面为 '== Bluetooth mouse and keyboard == Many people have reported problems with connecting a Bluetooth mouse or keyboard and making it stay connected. There is an easy solution to th...')
 
Bluetooth mouse and keyboard
第1行: 第1行:
== Bluetooth mouse and keyboard ==
+
== 蓝牙鼠标和键盘==
Many people have reported problems with connecting a Bluetooth mouse or keyboard 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.
+
许多用户向我们反应他们的蓝牙设备例如鼠标和键盘在Ubuntu下无法连接或是经常掉线。对这类问题有个小窍门可以解决。只需要一次设置,就能使你的蓝牙鼠标在打开的同时将自动连接或是被从省电模式中唤醒。
=== 8.10 and newer ===
+
=== 8.10 及更高版本 ===
Beginning with Ubuntu Hardy, X uses Input Hotplug for automatically configuring input devices.
+
Ubuntu Hardy开始, X 使用了一款输入插件来自动进行输入设备的参数设置,无需人工干预了。
=== 7.10 and 8.04 ===
+
=== 7.10 8.04版 ===
Since Ubuntu Gutsy there is now a graphical interface to connect input devices (including mice and keyboards).
+
Ubuntu Gutsy 开始,就有了专门的图形接口来对输入设备进行连接。(包括鼠标和键盘).
<ol><li>Go to System > Preferences > Bluetooth or right-click on the Bluetooth applet and choose '''Preferences'''.
+
<ol><li>点击“系统”> 首选线 > 蓝牙设备 或者 鼠标右击 蓝牙程序图标,选择 '''属性'''项。
</li><li>Under "Mode of operation" choose "Visible and connectable for other devices"
+
</li><li>在“操作模式”一栏下选择“对其他设备可见且允许连接”选项。
</li><li>Change to the '''Services''' tab, there will be a list of Available services. On that list, click once on '''Input service'''.
+
</li><li>点击'''服务''' 选项卡,将会列出系统可用服务列表. 在列表中鼠标单击'''输入服务'''
</li><li>Put your input device in "pair" or "connect" mode. This is usually done with a physical button on or under the device.
+
</li><li>保持你的蓝牙设备处在“匹配”或是“连接“状态. 通常在设备的前面或是背面有个按钮可以直接开启以上功能。
</li><li>In the '''Input Devices''' section, click "Add". A new window will appear with the input devices visible (in this example, a mouse).
+
</li><li>'''输入设备'''对话框中,单击"添加"。出现新的对话框,其中含有你刚才开启的蓝牙设备。(例如,鼠标)。
<ol><li>'''Mouse:''' Click on the mouse to choose it and click "Connect". A confirmation message will appear and the device should be connected.
+
<ol><li>'''鼠标:''' 选中鼠标一项,并单击 "连接"选项。出现已连接信息,此时表示鼠标已连接。
</li><li>'''Keyboard:''' Click on the keyboard to choose it and click "Connect". It will prompt you to enter a password. Enter any password in the dialog, e.g. "1234", and then enter the exact same password on the keyboard, followed by Enter, and the device should be connected.</li></ol>
+
</li><li>'''键盘:''' 选中键盘选项并点击"连接"。系统提示您输入密码。密码可以随意输入,例如"1234",但必须确保与在键盘上输入的密码一致。回车后,设备应该已经连接。</li></ol>
  
 
https://help.ubuntu.com/community/BluetoothInputDevices?action=AttachFile&do=get&target=Screenshot-CreateDevice.png
 
https://help.ubuntu.com/community/BluetoothInputDevices?action=AttachFile&do=get&target=Screenshot-CreateDevice.png
There is no need to modify any configuration files manually when using Ubuntu 7.10 or Ubuntu 8.04.
+
当使用Ubuntu7.10或是8.04时,并没有必要手动修改配置文件。
=== Older Ubuntu versions ===
+
=== 早期版本 ===
 
==== 6.10, 7.04 ====
 
==== 6.10, 7.04 ====
<ol><li>Edit the file /etc/default/bluetooth: `sudo sensible-editor /etc/default/bluetooth`
+
<ol><li>终端输入`sudo sensible-editor /etc/default/bluetooth`/etc/default/bluetooth: 下的文件进行编辑。
</li><li>Set the variable `HIDD_ENABLED=1`.
+
</li><li>设置变量 `HIDD_ENABLED=1`.
</li><li>Restart the bluetooth service with the command: `sudo /etc/init.d/bluetooth restart`</li></ol>
+
</li><li>终端输入 `sudo /etc/init.d/bluetooth restart`重启蓝牙服务。</li></ol>
 
+
==== 6.10 之前的版本 ====
==== Ubuntu Versions Older than 6.10 ====
+
<ol><li>终端输入`sudo apt-get install bluez-utils`安装bluez-utils。
<ol><li>`sudo apt-get install bluez-utils`
+
</li><li>终端输入`sudo sensible-editor /etc/default/bluez-utils`/etc/default/bluez-utils文件进行编辑。
</li><li>Edit the file /etc/default/bluez-utils: `sudo sensible-editor /etc/default/bluez-utils`
+
</li><li>设置变量 `HIDD_ENABLED=1`.
</li><li>Set the variable `HIDD_ENABLED=1`.
+
</li><li>R终端输入 `sudo /etc/init.d/bluez-utils restart`重启bluez-utils。</li></ol>
</li><li>Restart the bluetooth service with the command: `sudo /etc/init.d/bluez-utils restart`</li></ol>
+
==== 设备连接 ====
 
+
现在开始对设备进行连接:
==== Connect the device ====
+
Now let's connect the device:
+
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo hidd --search
 
sudo hidd --search
 
</nowiki></pre>
 
</nowiki></pre>
Retry this command until the device connects. You may have to turn it off and on or press the reset/connect button a couple of times. The steps to do this may vary from one device to the other.
+
不断尝试上述命令直到设备已连接上。你也许需要不断的打开或者关闭或者按下设备的重置连接按钮. 根据设备的不同,操作可能不同.
Alternately, you can find the Bluetooth address of your mouse via:
+
或者, 你也可以先通过以下方法找出你的蓝牙设备的物理地址 :
* a label on the bottom of the mouse
+
* 贴在鼠标底下的标签
* running <code><nowiki>hcitool scan</nowiki></code>
+
* 运行<code><nowiki>hcitool 扫描</nowiki></code>
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> deviceaddr 代表你所找到的鼠标的物理地址, 类似: 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.
+
现在你的蓝牙鼠标应该会重新连接在你开启它时,即使重启也一样。也有用户反应利用hcitools 探测时会导致隐藏设备图标变模糊。
==== Approach was tested using: ====
+
==== 以上方法在以下环境中验证通过: ====
 
{|border="1" cellspacing="0"
 
{|border="1" cellspacing="0"
 
| '''*ubuntu Release'''  || '''Kernel'''        || '''bluez-utils'''   
 
| '''*ubuntu Release'''  || '''Kernel'''        || '''bluez-utils'''   

2009年7月26日 (日) 18:10的版本

蓝牙鼠标和键盘

许多用户向我们反应他们的蓝牙设备例如鼠标和键盘在Ubuntu下无法连接或是经常掉线。对这类问题有个小窍门可以解决。只需要一次设置,就能使你的蓝牙鼠标在打开的同时将自动连接或是被从省电模式中唤醒。

8.10 及更高版本

从 Ubuntu Hardy开始, X 使用了一款输入插件来自动进行输入设备的参数设置,无需人工干预了。

7.10 和 8.04版

从 Ubuntu Gutsy 开始,就有了专门的图形接口来对输入设备进行连接。(包括鼠标和键盘).

  1. 点击“系统”> 首选线 > 蓝牙设备 或者 鼠标右击 蓝牙程序图标,选择 属性项。
  2. 在“操作模式”一栏下选择“对其他设备可见且允许连接”选项。
  3. 点击服务 选项卡,将会列出系统可用服务列表. 在列表中鼠标单击输入服务
  4. 保持你的蓝牙设备处在“匹配”或是“连接“状态. 通常在设备的前面或是背面有个按钮可以直接开启以上功能。
  5. 输入设备对话框中,单击"添加"。出现新的对话框,其中含有你刚才开启的蓝牙设备。(例如,鼠标)。
    1. 鼠标: 选中鼠标一项,并单击 "连接"选项。出现已连接信息,此时表示鼠标已连接。
    2. 键盘: 选中键盘选项并点击"连接"。系统提示您输入密码。密码可以随意输入,例如"1234",但必须确保与在键盘上输入的密码一致。回车后,设备应该已经连接。

    BluetoothInputDevices?action=AttachFile&do=get&target=Screenshot-CreateDevice.png 当使用Ubuntu7.10或是8.04时,并没有必要手动修改配置文件。

    早期版本

    6.10, 7.04

    1. 终端输入`sudo sensible-editor /etc/default/bluetooth`对 /etc/default/bluetooth: 下的文件进行编辑。
    2. 设置变量 `HIDD_ENABLED=1`.
    3. 终端输入 `sudo /etc/init.d/bluetooth restart`重启蓝牙服务。

    6.10 之前的版本

    1. 终端输入`sudo apt-get install bluez-utils`安装bluez-utils。
    2. 终端输入`sudo sensible-editor /etc/default/bluez-utils`对 /etc/default/bluez-utils文件进行编辑。
    3. 设置变量 `HIDD_ENABLED=1`.
    4. R终端输入 `sudo /etc/init.d/bluez-utils restart`重启bluez-utils。

    设备连接

    现在开始对设备进行连接:

    sudo hidd --search
    

    不断尝试上述命令直到设备已连接上。你也许需要不断的打开或者关闭或者按下设备的重置连接按钮. 根据设备的不同,操作可能不同. 或者, 你也可以先通过以下方法找出你的蓝牙设备的物理地址 :

    • 贴在鼠标底下的标签
    • 运行hcitool 扫描

    一旦得到物理地址, 则执行下述命令:

    sudo hidd --connect deviceaddr
    
    deviceaddr 代表你所找到的鼠标的物理地址, 类似: 00:01:02:03:04:05

    现在你的蓝牙鼠标应该会重新连接在你开启它时,即使重启也一样。也有用户反应利用hcitools 探测时会导致隐藏设备图标变模糊。

    以上方法在以下环境中验证通过:

    *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