source: general/sysutils/bluez.xml@ cbb6df66

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since cbb6df66 was cbb6df66, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Update to bluez-5.56.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24331 af4574ff-66df-0310-9fd7-8a98e5e911e0

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