source: general/sysutils/bluez.xml@ 106e8645

12.2 trunk
Last change on this file since 106e8645 was 106e8645, checked in by Douglas R. Reno <renodr@…>, 3 weeks ago

bluez: minor text tweak

  • Property mode set to 100644
File size: 14.3 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 " ">
[15e9b32]9 <!ENTITY bluez-md5sum "02878560e89165540c4a0b8c060d1092">
[568ad53]10 <!ENTITY bluez-size "2.4 MB">
[15e9b32]11 <!ENTITY bluez-buildsize "168 MB (with tests)">
[09304f6e]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
[fc87c5a0]33 &lfs122_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
[e663b2a4]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
[dbeb18f2]175 <para revision="sysv">
176 Install a missing D-Bus service as the &root; user:
177 </para>
178
[c022c2e8]179 <screen role="root" revision='sysv'><userinput>install -m644 ./obexd/src/org.bluez.obex.service /usr/share/dbus-1/services</userinput></screen>
[dbeb18f2]180
[fee14fb]181 </sect2>
182
183
184 <sect2 role="commands">
185 <title>Command Explanations</title>
186
[e8aa56dd]187 <para>
188 <parameter>--disable-manpages</parameter>: This switch disables generating
189 the manual pages because of the reliance on 'rst2man' in docutils. Remove
[0f124fa]190 this switch if you have <xref role="nodep" linkend="docutils"/> installed
191 and wish to generate the manual pages.
[e8aa56dd]192 </para>
193
[fee14fb]194 <para>
[f7153b6]195 <parameter>--enable-library</parameter>: This switch enables building the
[ef84ea0]196 <application>BlueZ</application> 4 compatibility library which is required by
197 some applications.
[fee14fb]198 </para>
199
[d5497a2e]200 <para revision="sysv">
[fd1493f]201 <parameter>--disable-systemd</parameter>: This switch is needed because
[ef84ea0]202 <application>systemd</application> is not part of LFS/BLFS. If you are
203 using systemd, remove this switch.
[fee14fb]204 </para>
205
[a99fd8bd]206 <para>
[8da658ba]207 <command>ln -svf ../libexec/bluetooth/bluetoothd /usr/sbin</command>:
[a99fd8bd]208 This command makes access to the bluetooth daemon more convenient.
209 </para>
210
[fee14fb]211 </sect2>
212
213 <sect2 role="configuration">
214 <title>Configuring BlueZ</title>
215
216 <sect3 id="bluez-config">
[a99fd8bd]217 <title>Configuration Files</title>
[03eca7f9]218 <para revision="sysv">
[a99fd8bd]219 <filename>/etc/bluetooth/main.conf</filename> is installed automatically
[21c477c]220 during the install. Additionally, there are three supplementary
221 configuration files. /etc/sysconfig/bluetooth is installed as a part
222 of the boot script below. In addition, you optionally can install the
[6d8eeb9]223 following, as the &root; user:
[fee14fb]224 </para>
[8da658ba]225
[03eca7f9]226 <para revision="systemd">
[6f75ffc]227 <filename>/etc/bluetooth/main.conf</filename> is installed automatically
[03eca7f9]228 during the installation. Additionally, there are two supplementary
[6f75ffc]229 configuration files. You can optionally install the following files
[6d8eeb9]230 as the &root; user:
[03eca7f9]231 </para>
232
[a99fd8bd]233<screen role="root"><userinput>cat > /etc/bluetooth/rfcomm.conf &lt;&lt; "EOF"</userinput>
[1daa1a57]234<literal># Start rfcomm.conf
[a99fd8bd]235# Set up the RFCOMM configuration of the Bluetooth subsystem in the Linux kernel.
236# Use one line per command
237# See the rfcomm man page for options
238
239
[36cfad9]240# End of rfcomm.conf</literal>
241EOF</screen>
[a99fd8bd]242
243<screen role="root"><userinput>cat > /etc/bluetooth/uart.conf &lt;&lt; "EOF"</userinput>
[1daa1a57]244<literal># Start uart.conf
[a99fd8bd]245# Attach serial devices via UART HCI to BlueZ stack
246# Use one line per device
247# See the hciattach man page for options
248
[36cfad9]249# End of uart.conf</literal>
250EOF</screen>
[fee14fb]251
252 <indexterm zone="bluez bluez-config">
253 <primary
254 sortas="e-etc-bluetooth-main.conf">/etc/bluetooth/main.conf</primary>
255 </indexterm>
256
257 </sect3>
258
259 <sect3 id="bluez-init">
[d5497a2e]260 <title><phrase revision="sysv">Boot Script</phrase>
[1dd1887]261 <phrase revision="systemd">Systemd Bluez Services</phrase></title>
[fee14fb]262
[d5497a2e]263 <para revision="sysv">
[fee14fb]264 To automatically start the <command>bluetoothd</command> daemon when the
265 system is rebooted, install the
266 <filename>/etc/rc.d/init.d/bluetooth</filename> bootscript from the
[d5497a2e]267 <xref linkend="bootscripts"/> package.
268 </para>
269
270 <para revision="systemd">
271 To start the <command>bluetoothd</command> daemon at boot,
272 enable the previously installed systemd unit by
[6d8eeb9]273 running the following command as the &root; user:
[fee14fb]274 </para>
275
[1dd1887]276<screen role="root" revision="systemd"><userinput>systemctl enable bluetooth</userinput></screen>
277
278 <para revision="systemd">
279 To start the <command>obexd</command> daemon for a user session (to
280 support some Bluetooth programs using it), enable the previously
281 installed systemd unit for all users by running the following command
[6d8eeb9]282 as the &root; user:
[1dd1887]283 </para>
284
285<screen role="root" revision="systemd"><userinput>systemctl enable --global obex</userinput></screen>
[8558044]286
[fee14fb]287 <indexterm zone="bluez bluez-init">
288 <primary sortas="f-bluetooth">bluetooth</primary>
289 </indexterm>
290
[d5497a2e]291<screen role="root" revision="sysv"><userinput>make install-bluetooth</userinput></screen>
292
293
294 <note revision="systemd">
295 <para>
296 <application>Systemd</application> will start the Bluetooth daemon
297 only when a bluetooth device is detected on the system.
298 </para>
299 </note>
[ef84ea0]300
[fee14fb]301 </sect3>
[ef84ea0]302
[fee14fb]303 </sect2>
304
305 <sect2 role="content">
306 <title>Contents</title>
307
308 <segmentedlist>
309 <segtitle>Installed Programs</segtitle>
310 <segtitle>Installed Library</segtitle>
311 <segtitle>Installed Directories</segtitle>
312
313 <seglistitem>
314 <seg>
[0f870c5]315 <!--bccmd, -->
[8558044]316 bluemoon,
317 bluetoothctl,
318 bluetoothd (symlink),
319 btattach,
320 btmon,
321 hex2hcd,
322 l2ping,
[78a15b4]323 l2test,
[8558044]324 mpris-proxy, and
[78a15b4]325 rctest
[fee14fb]326 </seg>
327 <seg>
328 libbluetooth.so
329 </seg>
330 <seg>
[8558044]331 /etc/bluetooth,
[78a15b4]332 /usr/{include,libexec}/bluetooth, and
[ef84ea0]333 /usr/share/doc/bluez-&bluez-version;
[fee14fb]334 </seg>
335 </seglistitem>
336 </segmentedlist>
337
338 <variablelist>
339 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
340 <?dbfo list-presentation="list"?>
341 <?dbhtml list-presentation="table"?>
342
[0f870c5]343 <!--
[fee14fb]344 <varlistentry id="bccmd">
345 <term><command>bccmd</command></term>
346 <listitem>
347 <para>
348 is used to issue BlueCore commands to Cambridge Silicon
[4c24eb0a]349 Radio devices
[fee14fb]350 </para>
351 <indexterm zone="bluez bccmd">
352 <primary sortas="b-bccmd">bccmd</primary>
353 </indexterm>
354 </listitem>
355 </varlistentry>
[0f870c5]356 -->
[fee14fb]357
[af5248e2]358 <varlistentry id="bluemoon">
359 <term><command>bluemoon</command></term>
360 <listitem>
361 <para>
[106e8645]362 is a Bluetooth configuration utility
[af5248e2]363 </para>
364 <indexterm zone="bluez bluemoon">
365 <primary sortas="b-bluemoon">bluemoon</primary>
366 </indexterm>
367 </listitem>
368 </varlistentry>
369
[059a1a5c]370 <varlistentry id="bluetoothctl">
371 <term><command>bluetoothctl</command></term>
372 <listitem>
373 <para>
[4c24eb0a]374 is the interactive Bluetooth control program
[059a1a5c]375 </para>
376 <indexterm zone="bluez bluetoothctl">
377 <primary sortas="b-bluetoothctl">bluetoothctl</primary>
378 </indexterm>
379 </listitem>
380 </varlistentry>
381
[fee14fb]382 <varlistentry id="bluetoothd">
383 <term><command>bluetoothd</command></term>
384 <listitem>
385 <para>
[4c24eb0a]386 is the Bluetooth daemon
[fee14fb]387 </para>
388 <indexterm zone="bluez bluetoothd">
389 <primary sortas="b-bluetoothd">bluetoothd</primary>
390 </indexterm>
391 </listitem>
392 </varlistentry>
393
[af5248e2]394 <varlistentry id="btmon">
395 <term><command>btmon</command></term>
396 <listitem>
397 <para>
398 provides access to the Bluetooth subsystem monitor
[4c24eb0a]399 infrastructure for reading HCI traces
[af5248e2]400 </para>
401 <indexterm zone="bluez btmon">
402 <primary sortas="b-btmon">btmon</primary>
403 </indexterm>
404 </listitem>
405 </varlistentry>
406
[fee14fb]407
[e5bb823]408 <varlistentry id="hex2hcd">
409 <term><command>hex2hcd</command></term>
410 <listitem>
411 <para>
412 is used to convert a file needed by Broadcom devices
[4c24eb0a]413 to hcd (Broadcom bluetooth firmware) format
[e5bb823]414 </para>
415 <indexterm zone="bluez hex2hcd">
416 <primary sortas="b-hex2hcd">hex2hcd</primary>
417 </indexterm>
418 </listitem>
419 </varlistentry>
[fee14fb]420
421 <varlistentry id="l2ping">
422 <term><command>l2ping</command></term>
423 <listitem>
424 <para>
425 is used to send a L2CAP echo request to the Bluetooth MAC
[4c24eb0a]426 address given in dotted hex notation
[fee14fb]427 </para>
428 <indexterm zone="bluez l2ping">
429 <primary sortas="b-l2ping">l2ping</primary>
430 </indexterm>
431 </listitem>
432 </varlistentry>
433
[af5248e2]434 <varlistentry id="l2test">
435 <term><command>l2test</command></term>
436 <listitem>
437 <para>
[4c24eb0a]438 is a L2CAP testing program
[af5248e2]439 </para>
440 <indexterm zone="bluez l2test">
441 <primary sortas="b-l2test">l2test</primary>
442 </indexterm>
443 </listitem>
444 </varlistentry>
445
[ef84ea0]446 <varlistentry id="rctest">
447 <term><command>rctest</command></term>
[fee14fb]448 <listitem>
449 <para>
[ef84ea0]450 is used to test RFCOMM communications on the
[4c24eb0a]451 Bluetooth stack
[fee14fb]452 </para>
[ef84ea0]453 <indexterm zone="bluez rctest">
454 <primary sortas="b-rctest">rctest</primary>
[fee14fb]455 </indexterm>
456 </listitem>
457 </varlistentry>
458
459 <varlistentry id="libbluetooth">
460 <term><filename class="libraryfile">libbluetooth.so</filename></term>
461 <listitem>
462 <para>
[4c24eb0a]463 contains the <application>BlueZ</application> 4 API functions
[fee14fb]464 </para>
465 <indexterm zone="bluez libbluetooth">
466 <primary sortas="c-libbluetooth">libbluetooth.so</primary>
467 </indexterm>
468 </listitem>
469 </varlistentry>
470 </variablelist>
471
472 </sect2>
473
474</sect1>
Note: See TracBrowser for help on using the repository browser.