个人工具
119.28.94.63
该IP地址的讨论
登录
查看“UbuntuHelp:BluetoothSetup”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:BluetoothSetup”的源代码
来自Ubuntu中文
←
UbuntuHelp:BluetoothSetup
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/BluetoothSetup}} {{Languages|UbuntuHelp:BluetoothSetup}} <<Include(Tag/ContentCleanup)>> == Introduction == [http://en.wikipedia.org/wiki/Bluetooth Bluetooth] is a widely supported local area communications technology for communications with cellphones, headsets, keyboards, mice, PDAs, and storage devices. See also [[UbuntuHelp:BluetoothRemoteControl|BluetoothRemoteControl]] and [[UbuntuHelp:BluetoothAudio|BluetoothAudio]] on Ubuntu. == Requirements == For a desktop or laptop without Bluetooth support use a Bluetooth dongle that connects through a USB. For Dell laptops install the latest drivers from Dell's website in '''Windows''' in order for the bluetooth module to work in Linux. (Required for D430 with Gutsy / Hardy and D830 and D630) (http://ubuntuforums.org/showthread.php?t=572335 https://wiki.ubuntu.com/LaptopTestingTeam/DellLatitudeD430#bluetooth) For Dell laptops with a Dell Wireless 355 Bluetooth card where the card is turned off, reenable the card before installation. Go to [http://support.euro.dell.com/support/topics/global.aspx/support/dsn/en/document?docid=2D785CBB1BBFF5F1E040A68F5B282502 a utility] in Windows to turn it on before you can reinstall the driver. If you turn the card off in Windows reenable the card so Ubuntu can recognize it. == Installation and Configuration == '''Before you begin''' open up the terminal and type the following: <pre><nowiki> sudo apt-get install bluez && sudo apt-get install bluez-utils </nowiki></pre> Restart the bluetooth server to ensure your pc can communicate with a bluetooth device <pre><nowiki> sudo /etc/init.d/bluetooth restart </nowiki></pre> By default the BlueTooth notification icon appears, although the service may not. If the service is not running try the service command, otherwise you can now connect. '''For jaunty (9:04) and above '''verify you have a supported adapter connected. When the icon appears, right click and configure your preferences. Devices should auto connect to your PC where you configure your security options. To configure mail for your phone, install the <code><nowiki>gnome-bluetooth</nowiki></code> package so the system finds it in the accessories menu. Send a file by right clicking the file and selecting Send-to. To automate, select System --> Preferences --> Sessions. Add a Startup program. For example you can name it, "Bluetooth File Transfer" and in the Command box, enter "gnome-obex-server". Click OK. === Manual Discovery === Open a terminal window and install the required packages with their dependencies: <pre><nowiki> sudo apt-get install bluez-utils </nowiki></pre> Connect your Bluetooth device and restart the Bluetooth services: <pre><nowiki> sudo /etc/init.d/bluez-utils restart </nowiki></pre> Verify your Bluetooth device is detected along with the appropriate modules. View 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> Review the output of '''hcitool dev''' for all your system's Bluetooth devices. https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconExample48.png '''hcitool dev''' output: <pre><nowiki> Devices: hci0 00:11:95:00:1A:CF </nowiki></pre> {i} ''Your Bluetooth device will have a different id.'' If the id is all zeros, restart the bluez-utils service and retry. == Setup Devices == === Find Device Addresses === Locate the device address, make the device discoverable (a "Connect" button for keyboards and mice or check the manual) and search for the device by the following: <pre><nowiki> sudo hidd --search (If that command doesn't work, try the following:) hcitool scan </nowiki></pre> Each device's address has the aa:bb:cc:dd:ee:ff format. Hint: If no devices are shown for Edgy Eft (6.10), try the following: <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 === For a temporary connection, use the address of the device 'aa:bb:cc:dd:ee:ff' <pre><nowiki> sudo hidd --connect aa:bb:cc:dd:ee:ff </nowiki></pre> You can now connect. <!> For a <code><nowiki>"Can't create HID control channel: Connection refused"</nowiki></code> error, the discovery period timed out. Try again but enter the command more quickly. === Connect Devices at Startup === To connect automatically, edit the configuration file: <pre><nowiki> sudo cp /etc/default/bluetooth /etc/default/bluetooth_backup sudo nano /etc/default/bluetooth </nowiki></pre> Locate line: <pre><nowiki> HIDD_ENABLED=0 </nowiki></pre> Change it to: <pre><nowiki> HIDD_ENABLED=1 </nowiki></pre> Look in the same file for a line close to: <pre><nowiki> HIDD_OPTIONS="--master --server" </nowiki></pre> {i} Leave the "--master" command or remove it, it depends on the device. If you have problems with "--master", remove it or vice versa. Add additional "--connect" arguments for the device you want to connect to at startup: <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 and add HIDP to /etc/modules: <pre><nowiki> echo hidp | sudo tee -a /etc/modules </nowiki></pre> Your Bluetooth devices should now connect at startup. === Using Devices as Modems === Refer to page [[UbuntuHelp:BluetoothDialup|BluetoothDialup]] === Using audio devices === * Refer to page [[UbuntuHelp:BluetoothAudio|BluetoothAudio]] * For Bluetooth Headsets specifically refer to [[UbuntuHelp:BluetoothHeadset|BluetoothHeadset]] == Troubleshooting == === "obex://[xx:xx:xx:xx:xx:xx]" is not a valid location. === If you receive this error in Gutsy enter the following: <pre><nowiki> sudo apt-get install gnome-vfs-obexftp </nowiki></pre> Although this gives "Couldn't display "obex://[xx:xx:xx:xx:xx:xx]"." for some. In this case try: <pre><nowiki> sudo hciconfig hci0 auth </nowiki></pre> See [http://ubuntuforums.org/showthread.php?t=580347 this forum thread] for information. ==== hcitool scan/dev/inq '''Connection timed out''' Error ==== Reset the adapter: <pre><nowiki> sudo hciconfig hci0 reset </nowiki></pre> The hcitool options can now connect and if often required despite an automatic connection setup. == Comments == bluez-gnome Reboot after you install bluez packages even if your dongle is recognized after installation. 2/8/2009 bluez-gnome bug: https://bugs.launchpad.net/ubuntu/+source/bluez-gnome/+bug/285007 Forum page: http://ubuntuforums.org/showthread.php?p=6438656#post6438656 ---- [[category:CategoryBluetooth]] [[category:CategoryNetworking]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:BluetoothSetup
。