个人工具
登录
查看“UbuntuHelp:BluetoothSetup”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:BluetoothSetup”的源代码
来自Ubuntu中文
←
UbuntuHelp:BluetoothSetup
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/BluetoothSetup}} {{Languages|UbuntuHelp:BluetoothSetup}} === Introduction === [http://en.wikipedia.org/wiki/Bluetooth Bluetooth] is finally emerging as a robust and widely supported local area communications technology for short-distance wireless data transfer. Bluetooth is being used for communications with cellphones, cameras, headsets and microphones, keyboards, mice, PDA's and storage devices. See also BluetoothRemoteControl and BluetoothAudio on Ubuntu. === Devices === A lot of newer laptops come with Bluetooth support built right in. If you are using a desktop or do not have Bluetooth support built in, you can use a USB Bluetooth dongle to get Bluetooth support. A list of Bluetooth devices supported under Linux is listed [http://www.holtmann.org/linux/bluetooth/features.html here]. If your device has an HCI version listed, it should work under Linux. === Installation and Configuration === Open up a terminal window, and install the requisite packages and their dependencies: <pre><nowiki> sudo apt-get install bluez-utils </nowiki></pre> Then, connect your Bluetooth device if you are using one. Restart the Bluetooth services by doing: <pre><nowiki> sudo /etc/init.d/bluez-utils restart (On some machines it may be sudo /etc/init.d/bluetooth restart) </nowiki></pre> Verify that your Bluetooth device has been detected, and the appropriate modules loaded by viewing the lsusb (in case of usb device) output. lsusb output: <pre><nowiki> Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode) </nowiki></pre> Also, view the output of the command '''hcitool dev''' which will give you a listing of Bluetooth devices on your computer. https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconExample48.png hcitool output: <pre><nowiki> Devices: hci0 00:11:95:00:1A:CF </nowiki></pre> {i} ''Your Bluetooth device will have a different id.'' If you get all zeros, then try restarting the bluez-utils service and try again. === Setup Devices === ==== Find Device Addresses ==== To connect to a Bluetooth device, you will need to find the address of the device. Make the device discoverable (look for a "Connect" button on many keyboards and mice or look in the device's manual) and then search for the device with this command: <pre><nowiki> sudo hidd --search (If that command doesn't work, try this one:) hcitool scan </nowiki></pre> Each device should have its own address in a aa:bb:cc:dd:ee:ff format. Hint: If no devices are being shown and you are using Edgy Eft (6.10), you may try <pre><nowiki> sudo hciconfig hci0 inqmode 0 </nowiki></pre> See bug [https://launchpad.net/ubuntu/+source/gnome-bluetooth/+bug/70718 #70718]. If this helps, you may add the hciconfig command (without "sudo") to your /etc/rc.local file for a permanent workaround. ==== Connect Devices for Current Session Only ==== To temporarily connect to a device, use this command where 'aa:bb:cc:dd:ee:ff' is the address of the device you want to connect to: <pre><nowiki> sudo hidd --connect aa:bb:cc:dd:ee:ff </nowiki></pre> Your device should now be connected for the current session. <!> If you get a <code><nowiki>"Can't create HID control channel: Connection refused"</nowiki></code> error message, most likely the discovery period for the device timed out. Make the device discoverable and enter the above command again, but more quickly. ==== Connect Devices at Startup ==== To connect the device at startup every time, use the following commands to edit the configuration file: <pre><nowiki> sudo cp /etc/default/bluez-utils /etc/default/bluez-utils_backup sudo nano /etc/default/bluez-utils </nowiki></pre> Look for the following line: <pre><nowiki> HIDD_ENABLED=0 </nowiki></pre> Change it to: <pre><nowiki> HIDD_ENABLED=1 </nowiki></pre> Next, look in the same file for a line similar to: <pre><nowiki> HIDD_OPTIONS="--master --server" </nowiki></pre> {i} You can leave the "--master" command or remove it, depending on the device. If you have problems with "--master", try removing it or vice versa. Add additional "--connect" arguments for each device that you want connected at startup so that it looks like this: <pre><nowiki> HIDD_OPTIONS="--connect aa:bb:cc:dd:ee:ff --connect aa:bb:cc:dd:ee:ff --connect aa:bb:cc:dd:ee:ff --server" </nowiki></pre> Save the file. Finally, add HIDP to /etc/modules: <pre><nowiki> echo hidp | sudo tee -a /etc/modules </nowiki></pre> Your Bluetooth devices should now be connected at startup. ==== Using devices as modems ==== Refer to page BluetoothDialup ==== Using audio devices ==== Refer to page BluetoothAudio ---- [[category:CategoryDocumentation]] [[category:CategoryNetworking]] [[category:CategoryBluetooth]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:BluetoothSetup
。