--- bluetooth-guide.xml?revision=1.17.orig 2010-08-03 22:31:10.000000000 +0100
+++ bluetooth-guide.xml?revision=1.17 2010-08-07 15:41:38.000000000 +0100
@@ -172,32 +172,103 @@
Now that the device is detected by the kernel, we need a layer that lets
applications communicate with the Bluetooth device. BlueZ provides the official
-Linux Bluetooth stack. The ebuilds that provide what we need are
-
+Before installing, it is a good idea to choose how to control users' ability to
+use bluetooth.
+
+There are two methods:
+
-# emerge net-wireless/bluez-libs net-wireless/bluez-utils
+
+
+
+
+Although the permission policy can be tuned by editing the dbus permission rules
+for
+Now we can install the package, using the following command. +
++# emerge net-wireless/bluez+ +
+This ebuild might require certain USE flags to be enabled for other ebuilds: +
+Now the bluetooth stack is completely installed, but you need other tools to do +anything useful with it. +
+ +
+You can get some tools enabling the
Now it's time to see if the Bluetooth device is being picked up correctly by the -system. We start up the required Bluetooth services first. +system. We start up the required Bluetooth services first. (It may have been +started when you plugged the device, if it uses some hotpluggable interface +(like USB).)
+ ++ +(Start up Bluetooth) # /etc/init.d/bluetooth start @@ -273,9 +344,14 @@ #encrypt enable; }
-After that, we have to configure the Bluetooth device PIN. That will help in +After configuration, we have to configure the Bluetooth device PIN. That will help in pairing this device with another one.
@@ -298,9 +374,65 @@
+In
+Before pairing, you must know the bluetooth adapter id
+(run
+
+You also need the MAC address of the device you want to pair with the
+adapter. Some devices have this written in some label, others don't. To find it
+out, make the device visible and run
++Find the MAC address: +$ hcitool scan +Scanning ... + 05:04:03:02:01:00 friendly-name + +Find the adapter ID: +$ /usr/sbin/hciconfig +hci0: Type: USB + BD Address: 00:01:02:03:04:05 ACL MTU: 192:8 SCO MTU: 64:8 + UP RUNNING PSCAN + RX bytes:131 acl:0 sco:0 events:18 errors:0 + TX bytes:565 acl:0 sco:0 commands:17 errors:0 + +And then pair the device +$ simple-agent hci0 05:04:03:02:01:00 +RequestPinCode (/org/bluez/..../hci0/dev_05_04_03_02_01_00) +Enter PIN Code: 1234 +(Now the remote device will ask you for this same PIN.) +Release +New device (/org/bluez/..../hci0/dev_05_04_03_02_01_00) +
+Other bluetooth packages might be able to handle pairing. This involves a tool +which initiates pairing or a tool which listens for pairing requests, or both. + +