source: general/sysutils/bluez.xml

trunk
Last change on this file was 82b5d3cf, checked in by Bruce Dubbs <bdubbs@…>, 3 weeks ago

Update to libXmu-1.2.1 (Xorg library) and bluez-5.75.

  • Property mode set to 100644
File size: 14.0 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[fee14fb]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[8dfc5c3]7 <!ENTITY bluez-download-http "&kernel-dl;/linux/bluetooth/bluez-&bluez-version;.tar.xz">
[faa68e4a]8 <!ENTITY bluez-download-ftp " ">
[82b5d3cf]9 <!ENTITY bluez-md5sum "e6a640a70a808a2dd46b9ad44a888602">
[631d6d1d]10 <!ENTITY bluez-size "2.3 MB">
[09304f6e]11 <!ENTITY bluez-buildsize "167 MB (with tests)">
12 <!ENTITY bluez-time "0.7 SBU (using parallelism=4; with tests)">
[fee14fb]13]>
14
[880c568]15<sect1 id="bluez" xreflabel="BlueZ-&bluez-version;">
[fee14fb]16 <?dbhtml filename="bluez.html"?>
17
18
[880c568]19 <title>BlueZ-&bluez-version;</title>
[fee14fb]20
21 <indexterm zone="bluez">
[880c568]22 <primary sortas="a-BlueZ">BlueZ</primary>
[fee14fb]23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to BlueZ</title>
27
28 <para>
29 The <application>BlueZ</application> package contains the
30 Bluetooth protocol stack for Linux.
31 </para>
32
[e8b3f50]33 &lfs121_checked;
[fee14fb]34
35 <bridgehead renderas="sect3">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>
39 Download (HTTP): <ulink url="&bluez-download-http;"/>
40 </para>
41 </listitem>
42 <listitem>
43 <para>
44 Download (FTP): <ulink url="&bluez-download-ftp;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download MD5 sum: &bluez-md5sum;
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download size: &bluez-size;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Estimated disk space required: &bluez-buildsize;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated build time: &bluez-time;
65 </para>
66 </listitem>
67 </itemizedlist>
[baf7cd5]68 <!--
[f65a2dc]69 <bridgehead renderas="sect3" revision="sysv">Additional Downloads</bridgehead>
70 <itemizedlist spacing="compact" revision="sysv">
[f2d585bd]71 <listitem>
72 <para>
73 Required patch:
[f65a2dc]74 <ulink url="&patch-root;/bluez-&bluez-version;-obexd_without_systemd-1.patch"/>
[f2d585bd]75 </para>
76 </listitem>
77 </itemizedlist>
[4351fab]78 -->
[f65a2dc]79
[fee14fb]80 <bridgehead renderas="sect3">BlueZ Dependencies</bridgehead>
81
82 <bridgehead renderas="sect4">Required</bridgehead>
83 <para role="required">
[54666831]84 <xref linkend="dbus"/>,
85 <xref linkend="glib2"/>, and
[ef84ea0]86 <xref linkend="libical"/>
[fee14fb]87 </para>
88
[e8aa56dd]89 <bridgehead renderas="sect4">Optional</bridgehead>
90 <para role="optional">
[0f124fa]91 <xref linkend="docutils"/> (to generate man pages)
[e8aa56dd]92 </para>
93
[fee14fb]94 </sect2>
95
96
97 <sect2 role="kernel" id="bluez-kernel">
98 <title>Kernel Configuration</title>
99
100 <para>
[b8301f1]101 If you are building this package to use bluetooth devices (rather than as a
[0bd9c19]102 build dependency), enable the following options in the kernel configuration,
[8cf92e14]103 also the options in the <quote>Cryptographic API</quote> section if
104 you intend to run the tests, and recompile the kernel if necessary:
[fee14fb]105 </para>
106
[e7cd19a]107 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
108 href="bluez-kernel.xml"/>
[fee14fb]109
110 <indexterm zone="bluez bluez-kernel">
111 <primary sortas="d-bluez">bluez</primary>
112 </indexterm>
113 </sect2>
114
115 <sect2 role="installation">
116 <title>Installation of BlueZ</title>
[f2d585bd]117
[05a2eaa]118<!--
[b390160]119 <para>
120 At first, fix an issue building the package with Glibc-2.34 or later:
121 </para>
122
123<screen><userinput>sed 's/pause(/bluez_&amp;/' -i profiles/audio/media.c</userinput></screen>
124
[f65a2dc]125 <para revision="sysv">Now, make some changes needed for SystemV systems:</para>
126
[e663b2a]127<screen revision="sysv"><userinput>patch -Np1 -i ../bluez-&bluez-version;-obexd_without_systemd-1.patch</userinput></screen>
[f65a2dc]128
[4351fab]129-->
[fee14fb]130 <para>
131 Install <application>BlueZ</application> by running the following
132 commands:
133 </para>
134
[d5497a2e]135<screen revision="sysv"><userinput>./configure --prefix=/usr \
[ef84ea0]136 --sysconfdir=/etc \
137 --localstatedir=/var \
138 --enable-library \
[e8aa56dd]139 --disable-manpages \
[ef84ea0]140 --disable-systemd &amp;&amp;
[fee14fb]141make</userinput></screen>
142
[d5497a2e]143<screen revision="systemd"><userinput>./configure --prefix=/usr \
144 --sysconfdir=/etc \
145 --localstatedir=/var \
[e8aa56dd]146 --disable-manpages \
[d5497a2e]147 --enable-library &amp;&amp;
148make</userinput></screen>
149
[fee14fb]150 <para>
[a99fd8bd]151 To test the results, issue: <userinput>make check</userinput>.
[fee14fb]152 </para>
153
154 <para>
[6d8eeb9]155 Now, as the &root; user:
[fee14fb]156 </para>
157
[a99fd8bd]158<screen role="root"><userinput>make install &amp;&amp;
159ln -svf ../libexec/bluetooth/bluetoothd /usr/sbin</userinput></screen>
[fee14fb]160
161 <para>
[6d8eeb9]162 Install the main configuration file as the &root; user:
[fee14fb]163 </para>
164
[ef84ea0]165<screen role="root"><userinput>install -v -dm755 /etc/bluetooth &amp;&amp;
166install -v -m644 src/main.conf /etc/bluetooth/main.conf</userinput></screen>
[fee14fb]167
168 <para>
[6d8eeb9]169 If desired, install the API documentation as the &root; user:
[fee14fb]170 </para>
171
[ef84ea0]172<screen role="root"><userinput>install -v -dm755 /usr/share/doc/bluez-&bluez-version; &amp;&amp;
[fee14fb]173install -v -m644 doc/*.txt /usr/share/doc/bluez-&bluez-version;</userinput></screen>
[ef84ea0]174
[fee14fb]175 </sect2>
176
177
178 <sect2 role="commands">
179 <title>Command Explanations</title>
180
[e8aa56dd]181 <para>
182 <parameter>--disable-manpages</parameter>: This switch disables generating
183 the manual pages because of the reliance on 'rst2man' in docutils. Remove
[0f124fa]184 this switch if you have <xref role="nodep" linkend="docutils"/> installed
185 and wish to generate the manual pages.
[e8aa56dd]186 </para>
187
[fee14fb]188 <para>
[f7153b6]189 <parameter>--enable-library</parameter>: This switch enables building the
[ef84ea0]190 <application>BlueZ</application> 4 compatibility library which is required by
191 some applications.
[fee14fb]192 </para>
193
[d5497a2e]194 <para revision="sysv">
[fd1493f]195 <parameter>--disable-systemd</parameter>: This switch is needed because
[ef84ea0]196 <application>systemd</application> is not part of LFS/BLFS. If you are
197 using systemd, remove this switch.
[fee14fb]198 </para>
199
[a99fd8bd]200 <para>
[8da658ba]201 <command>ln -svf ../libexec/bluetooth/bluetoothd /usr/sbin</command>:
[a99fd8bd]202 This command makes access to the bluetooth daemon more convenient.
203 </para>
204
[fee14fb]205 </sect2>
206
207 <sect2 role="configuration">
208 <title>Configuring BlueZ</title>
209
210 <sect3 id="bluez-config">
[a99fd8bd]211 <title>Configuration Files</title>
[03eca7f9]212 <para revision="sysv">
[a99fd8bd]213 <filename>/etc/bluetooth/main.conf</filename> is installed automatically
[21c477c]214 during the install. Additionally, there are three supplementary
215 configuration files. /etc/sysconfig/bluetooth is installed as a part
216 of the boot script below. In addition, you optionally can install the
[6d8eeb9]217 following, as the &root; user:
[fee14fb]218 </para>
[8da658ba]219
[03eca7f9]220 <para revision="systemd">
[6f75ffc]221 <filename>/etc/bluetooth/main.conf</filename> is installed automatically
[03eca7f9]222 during the installation. Additionally, there are two supplementary
[6f75ffc]223 configuration files. You can optionally install the following files
[6d8eeb9]224 as the &root; user:
[03eca7f9]225 </para>
226
[a99fd8bd]227<screen role="root"><userinput>cat > /etc/bluetooth/rfcomm.conf &lt;&lt; "EOF"</userinput>
[1daa1a57]228<literal># Start rfcomm.conf
[a99fd8bd]229# Set up the RFCOMM configuration of the Bluetooth subsystem in the Linux kernel.
230# Use one line per command
231# See the rfcomm man page for options
232
233
[36cfad9]234# End of rfcomm.conf</literal>
235EOF</screen>
[a99fd8bd]236
237<screen role="root"><userinput>cat > /etc/bluetooth/uart.conf &lt;&lt; "EOF"</userinput>
[1daa1a57]238<literal># Start uart.conf
[a99fd8bd]239# Attach serial devices via UART HCI to BlueZ stack
240# Use one line per device
241# See the hciattach man page for options
242
[36cfad9]243# End of uart.conf</literal>
244EOF</screen>
[fee14fb]245
246 <indexterm zone="bluez bluez-config">
247 <primary
248 sortas="e-etc-bluetooth-main.conf">/etc/bluetooth/main.conf</primary>
249 </indexterm>
250
251 </sect3>
252
253 <sect3 id="bluez-init">
[d5497a2e]254 <title><phrase revision="sysv">Boot Script</phrase>
[1dd1887]255 <phrase revision="systemd">Systemd Bluez Services</phrase></title>
[fee14fb]256
[d5497a2e]257 <para revision="sysv">
[fee14fb]258 To automatically start the <command>bluetoothd</command> daemon when the
259 system is rebooted, install the
260 <filename>/etc/rc.d/init.d/bluetooth</filename> bootscript from the
[d5497a2e]261 <xref linkend="bootscripts"/> package.
262 </para>
263
264 <para revision="systemd">
265 To start the <command>bluetoothd</command> daemon at boot,
266 enable the previously installed systemd unit by
[6d8eeb9]267 running the following command as the &root; user:
[fee14fb]268 </para>
269
[1dd1887]270<screen role="root" revision="systemd"><userinput>systemctl enable bluetooth</userinput></screen>
271
272 <para revision="systemd">
273 To start the <command>obexd</command> daemon for a user session (to
274 support some Bluetooth programs using it), enable the previously
275 installed systemd unit for all users by running the following command
[6d8eeb9]276 as the &root; user:
[1dd1887]277 </para>
278
279<screen role="root" revision="systemd"><userinput>systemctl enable --global obex</userinput></screen>
[8558044]280
[fee14fb]281 <indexterm zone="bluez bluez-init">
282 <primary sortas="f-bluetooth">bluetooth</primary>
283 </indexterm>
284
[d5497a2e]285<screen role="root" revision="sysv"><userinput>make install-bluetooth</userinput></screen>
286
287
288 <note revision="systemd">
289 <para>
290 <application>Systemd</application> will start the Bluetooth daemon
291 only when a bluetooth device is detected on the system.
292 </para>
293 </note>
[ef84ea0]294
[fee14fb]295 </sect3>
[ef84ea0]296
[fee14fb]297 </sect2>
298
299 <sect2 role="content">
300 <title>Contents</title>
301
302 <segmentedlist>
303 <segtitle>Installed Programs</segtitle>
304 <segtitle>Installed Library</segtitle>
305 <segtitle>Installed Directories</segtitle>
306
307 <seglistitem>
308 <seg>
[0f870c5]309 <!--bccmd, -->
[8558044]310 bluemoon,
311 bluetoothctl,
312 bluetoothd (symlink),
313 btattach,
314 btmon,
315 hex2hcd,
316 l2ping,
[78a15b4]317 l2test,
[8558044]318 mpris-proxy, and
[78a15b4]319 rctest
[fee14fb]320 </seg>
321 <seg>
322 libbluetooth.so
323 </seg>
324 <seg>
[8558044]325 /etc/bluetooth,
[78a15b4]326 /usr/{include,libexec}/bluetooth, and
[ef84ea0]327 /usr/share/doc/bluez-&bluez-version;
[fee14fb]328 </seg>
329 </seglistitem>
330 </segmentedlist>
331
332 <variablelist>
333 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
334 <?dbfo list-presentation="list"?>
335 <?dbhtml list-presentation="table"?>
336
[0f870c5]337 <!--
[fee14fb]338 <varlistentry id="bccmd">
339 <term><command>bccmd</command></term>
340 <listitem>
341 <para>
342 is used to issue BlueCore commands to Cambridge Silicon
[4c24eb0a]343 Radio devices
[fee14fb]344 </para>
345 <indexterm zone="bluez bccmd">
346 <primary sortas="b-bccmd">bccmd</primary>
347 </indexterm>
348 </listitem>
349 </varlistentry>
[0f870c5]350 -->
[fee14fb]351
[af5248e2]352 <varlistentry id="bluemoon">
353 <term><command>bluemoon</command></term>
354 <listitem>
355 <para>
[4c24eb0a]356 is a Bluemoon configuration utility
[af5248e2]357 </para>
358 <indexterm zone="bluez bluemoon">
359 <primary sortas="b-bluemoon">bluemoon</primary>
360 </indexterm>
361 </listitem>
362 </varlistentry>
363
[059a1a5c]364 <varlistentry id="bluetoothctl">
365 <term><command>bluetoothctl</command></term>
366 <listitem>
367 <para>
[4c24eb0a]368 is the interactive Bluetooth control program
[059a1a5c]369 </para>
370 <indexterm zone="bluez bluetoothctl">
371 <primary sortas="b-bluetoothctl">bluetoothctl</primary>
372 </indexterm>
373 </listitem>
374 </varlistentry>
375
[fee14fb]376 <varlistentry id="bluetoothd">
377 <term><command>bluetoothd</command></term>
378 <listitem>
379 <para>
[4c24eb0a]380 is the Bluetooth daemon
[fee14fb]381 </para>
382 <indexterm zone="bluez bluetoothd">
383 <primary sortas="b-bluetoothd">bluetoothd</primary>
384 </indexterm>
385 </listitem>
386 </varlistentry>
387
[af5248e2]388 <varlistentry id="btmon">
389 <term><command>btmon</command></term>
390 <listitem>
391 <para>
392 provides access to the Bluetooth subsystem monitor
[4c24eb0a]393 infrastructure for reading HCI traces
[af5248e2]394 </para>
395 <indexterm zone="bluez btmon">
396 <primary sortas="b-btmon">btmon</primary>
397 </indexterm>
398 </listitem>
399 </varlistentry>
400
[fee14fb]401
[e5bb823]402 <varlistentry id="hex2hcd">
403 <term><command>hex2hcd</command></term>
404 <listitem>
405 <para>
406 is used to convert a file needed by Broadcom devices
[4c24eb0a]407 to hcd (Broadcom bluetooth firmware) format
[e5bb823]408 </para>
409 <indexterm zone="bluez hex2hcd">
410 <primary sortas="b-hex2hcd">hex2hcd</primary>
411 </indexterm>
412 </listitem>
413 </varlistentry>
[fee14fb]414
415 <varlistentry id="l2ping">
416 <term><command>l2ping</command></term>
417 <listitem>
418 <para>
419 is used to send a L2CAP echo request to the Bluetooth MAC
[4c24eb0a]420 address given in dotted hex notation
[fee14fb]421 </para>
422 <indexterm zone="bluez l2ping">
423 <primary sortas="b-l2ping">l2ping</primary>
424 </indexterm>
425 </listitem>
426 </varlistentry>
427
[af5248e2]428 <varlistentry id="l2test">
429 <term><command>l2test</command></term>
430 <listitem>
431 <para>
[4c24eb0a]432 is a L2CAP testing program
[af5248e2]433 </para>
434 <indexterm zone="bluez l2test">
435 <primary sortas="b-l2test">l2test</primary>
436 </indexterm>
437 </listitem>
438 </varlistentry>
439
[ef84ea0]440 <varlistentry id="rctest">
441 <term><command>rctest</command></term>
[fee14fb]442 <listitem>
443 <para>
[ef84ea0]444 is used to test RFCOMM communications on the
[4c24eb0a]445 Bluetooth stack
[fee14fb]446 </para>
[ef84ea0]447 <indexterm zone="bluez rctest">
448 <primary sortas="b-rctest">rctest</primary>
[fee14fb]449 </indexterm>
450 </listitem>
451 </varlistentry>
452
453 <varlistentry id="libbluetooth">
454 <term><filename class="libraryfile">libbluetooth.so</filename></term>
455 <listitem>
456 <para>
[4c24eb0a]457 contains the <application>BlueZ</application> 4 API functions
[fee14fb]458 </para>
459 <indexterm zone="bluez libbluetooth">
460 <primary sortas="c-libbluetooth">libbluetooth.so</primary>
461 </indexterm>
462 </listitem>
463 </varlistentry>
464 </variablelist>
465
466 </sect2>
467
468</sect1>
Note: See TracBrowser for help on using the repository browser.