特殊:Badtitle/NS100:BluetoothSetup
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/BluetoothSetup }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/af | • {{#if: UbuntuHelp:BluetoothSetup|Afrikaans| [[::BluetoothSetup/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/ar | • {{#if: UbuntuHelp:BluetoothSetup|العربية| [[::BluetoothSetup/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/az | • {{#if: UbuntuHelp:BluetoothSetup|azərbaycanca| [[::BluetoothSetup/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/bcc | • {{#if: UbuntuHelp:BluetoothSetup|جهلسری بلوچی| [[::BluetoothSetup/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/bg | • {{#if: UbuntuHelp:BluetoothSetup|български| [[::BluetoothSetup/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/br | • {{#if: UbuntuHelp:BluetoothSetup|brezhoneg| [[::BluetoothSetup/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/ca | • {{#if: UbuntuHelp:BluetoothSetup|català| [[::BluetoothSetup/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/cs | • {{#if: UbuntuHelp:BluetoothSetup|čeština| [[::BluetoothSetup/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/de | • {{#if: UbuntuHelp:BluetoothSetup|Deutsch| [[::BluetoothSetup/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/el | • {{#if: UbuntuHelp:BluetoothSetup|Ελληνικά| [[::BluetoothSetup/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/es | • {{#if: UbuntuHelp:BluetoothSetup|español| [[::BluetoothSetup/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/fa | • {{#if: UbuntuHelp:BluetoothSetup|فارسی| [[::BluetoothSetup/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/fi | • {{#if: UbuntuHelp:BluetoothSetup|suomi| [[::BluetoothSetup/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/fr | • {{#if: UbuntuHelp:BluetoothSetup|français| [[::BluetoothSetup/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/gu | • {{#if: UbuntuHelp:BluetoothSetup|ગુજરાતી| [[::BluetoothSetup/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/he | • {{#if: UbuntuHelp:BluetoothSetup|עברית| [[::BluetoothSetup/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/hu | • {{#if: UbuntuHelp:BluetoothSetup|magyar| [[::BluetoothSetup/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/id | • {{#if: UbuntuHelp:BluetoothSetup|Bahasa Indonesia| [[::BluetoothSetup/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/it | • {{#if: UbuntuHelp:BluetoothSetup|italiano| [[::BluetoothSetup/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/ja | • {{#if: UbuntuHelp:BluetoothSetup|日本語| [[::BluetoothSetup/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/ko | • {{#if: UbuntuHelp:BluetoothSetup|한국어| [[::BluetoothSetup/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/ksh | • {{#if: UbuntuHelp:BluetoothSetup|Ripoarisch| [[::BluetoothSetup/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/mr | • {{#if: UbuntuHelp:BluetoothSetup|मराठी| [[::BluetoothSetup/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/ms | • {{#if: UbuntuHelp:BluetoothSetup|Bahasa Melayu| [[::BluetoothSetup/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/nl | • {{#if: UbuntuHelp:BluetoothSetup|Nederlands| [[::BluetoothSetup/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/no | • {{#if: UbuntuHelp:BluetoothSetup|norsk| [[::BluetoothSetup/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/oc | • {{#if: UbuntuHelp:BluetoothSetup|occitan| [[::BluetoothSetup/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/pl | • {{#if: UbuntuHelp:BluetoothSetup|polski| [[::BluetoothSetup/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/pt | • {{#if: UbuntuHelp:BluetoothSetup|português| [[::BluetoothSetup/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/ro | • {{#if: UbuntuHelp:BluetoothSetup|română| [[::BluetoothSetup/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/ru | • {{#if: UbuntuHelp:BluetoothSetup|русский| [[::BluetoothSetup/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/si | • {{#if: UbuntuHelp:BluetoothSetup|සිංහල| [[::BluetoothSetup/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/sq | • {{#if: UbuntuHelp:BluetoothSetup|shqip| [[::BluetoothSetup/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/sr | • {{#if: UbuntuHelp:BluetoothSetup|српски / srpski| [[::BluetoothSetup/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/sv | • {{#if: UbuntuHelp:BluetoothSetup|svenska| [[::BluetoothSetup/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/th | • {{#if: UbuntuHelp:BluetoothSetup|ไทย| [[::BluetoothSetup/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/tr | • {{#if: UbuntuHelp:BluetoothSetup|Türkçe| [[::BluetoothSetup/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/vi | • {{#if: UbuntuHelp:BluetoothSetup|Tiếng Việt| [[::BluetoothSetup/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/yue | • {{#if: UbuntuHelp:BluetoothSetup|粵語| [[::BluetoothSetup/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/zh | • {{#if: UbuntuHelp:BluetoothSetup|中文| [[::BluetoothSetup/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/zh-hans | • {{#if: UbuntuHelp:BluetoothSetup|中文(简体)| [[::BluetoothSetup/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/zh-hant | • {{#if: UbuntuHelp:BluetoothSetup|中文(繁體)| [[::BluetoothSetup/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:BluetoothSetup|:BluetoothSetup|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :BluetoothSetup/zh | | {{#ifexist: BluetoothSetup/zh | | {{#ifeq: {{#titleparts:BluetoothSetup|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:BluetoothSetup|1|-1|}} | zh | | }}
<<Include(Tag/ContentCleanup)>>
Introduction
[[1]] is a widely supported local area communications technology for communications with cellphones, headsets, keyboards, mice, PDAs, and storage devices. See also BluetoothRemoteControl and 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 [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:
sudo apt-get install bluez && sudo apt-get install bluez-utils
Restart the bluetooth server to ensure your pc can communicate with a bluetooth device
sudo /etc/init.d/bluetooth restart
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 gnome-bluetooth
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:
sudo apt-get install bluez-utils
Connect your Bluetooth device and restart the Bluetooth services:
sudo /etc/init.d/bluez-utils restart
Verify your Bluetooth device is detected along with the appropriate modules. View the lsusb (in case of usb device) output: lsusb output:
Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
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%7D%7D hcitool dev output:
Devices: hci0 00:11:95:00:1A:CF
{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:
sudo hidd --search (If that command doesn't work, try the following:) hcitool scan
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:
sudo hciconfig hci0 inqmode 0
See bug [[2]]. 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'
sudo hidd --connect aa:bb:cc:dd:ee:ff
You can now connect.
<!> For a "Can't create HID control channel: Connection refused"
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:
sudo cp /etc/default/bluetooth /etc/default/bluetooth_backup sudo nano /etc/default/bluetooth
Locate line:
HIDD_ENABLED=0
Change it to:
HIDD_ENABLED=1
Look in the same file for a line close to:
HIDD_OPTIONS="--master --server"
{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:
HIDD_OPTIONS="--connect aa:bb:cc:dd:ee:ff --connect aa:bb:cc:dd:ee:ff --connect aa:bb:cc:dd:ee:ff --server"
Save and add HIDP to /etc/modules:
echo hidp | sudo tee -a /etc/modules
Your Bluetooth devices should now connect at startup.
Using Devices as Modems
Refer to page BluetoothDialup
Using audio devices
- Refer to page BluetoothAudio
- For Bluetooth Headsets specifically refer to BluetoothHeadset
Troubleshooting
"obex://[xx:xx:xx:xx:xx:xx]" is not a valid location.
If you receive this error in Gutsy enter the following:
sudo apt-get install gnome-vfs-obexftp
Although this gives "Couldn't display "obex://[xx:xx:xx:xx:xx:xx]"." for some. In this case try:
sudo hciconfig hci0 auth
See [forum thread] for information.
hcitool scan/dev/inq Connection timed out Error
Reset the adapter:
sudo hciconfig hci0 reset
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