source: general/sysutils/bluez.xml@ d3cf76e

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since d3cf76e was b4642992, checked in by Douglas R. Reno <renodr@…>, 17 months ago

Tag WebKit dependencies

  • Property mode set to 100644
File size: 16.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 " ">
[0d7ff480]9 <!ENTITY bluez-md5sum "3f9496fedf878fba985e56713ed7752e">
10 <!ENTITY bluez-size "2.2 MB">
11 <!ENTITY bluez-buildsize "149 MB (with tests)">
[bcccddd]12 <!ENTITY bluez-time "0.4 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
[b4642992]33 &lfs113_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>
[f65a2dc]68
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>
[f65a2dc]78
[fee14fb]79 <bridgehead renderas="sect3">BlueZ Dependencies</bridgehead>
80
81 <bridgehead renderas="sect4">Required</bridgehead>
82 <para role="required">
[54666831]83 <xref linkend="dbus"/>,
84 <xref linkend="glib2"/>, and
[ef84ea0]85 <xref linkend="libical"/>
[fee14fb]86 </para>
87
[e8aa56dd]88 <bridgehead renderas="sect4">Optional</bridgehead>
89 <para role="optional">
[0f124fa]90 <xref linkend="docutils"/> (to generate man pages)
[e8aa56dd]91 </para>
92
[fee14fb]93 <para condition="html" role="usernotes">
94 User Notes: <ulink url="&blfs-wiki;/bluez"/>
95 </para>
96 </sect2>
97
98
99 <sect2 role="kernel" id="bluez-kernel">
100 <title>Kernel Configuration</title>
101
102 <para>
[b8301f1]103 If you are building this package to use bluetooth devices (rather than as a
[0bd9c19]104 build dependency), enable the following options in the kernel configuration,
[8cf92e14]105 also the options in the <quote>Cryptographic API</quote> section if
106 you intend to run the tests, and recompile the kernel if necessary:
[fee14fb]107 </para>
108
[582f732]109<screen><literal>General Setup ---&gt;
[8cf92e14]110 [ /*] Configure standard kernel features (expert users) [CONFIG_EXPERT]
111 (Note: if CONFIG_EXPERT is disabled, the following options will be
112 hidden and enabled implicitly. We DO NOT recommend to enable
113 CONFIG_EXPERT unless you are really an expert user.)
114 [*] Enable timerfd() system call [CONFIG_TIMERFD]
115 [*] Enable eventfd() system call [CONFIG_EVENTFD]
[0f870c5]116
117[*] Networking support ---&gt; [CONFIG_NET]
[8cf92e14]118 &lt;*/M&gt; Bluetooth subsystem support ---&gt; [CONFIG_BT]
[38155d1]119 &lt;*/M&gt; RFCOMM protocol support [CONFIG_BT_RFCOMM]
120 [*] RFCOMM TTY support [CONFIG_BT_RFCOMM_TTY]
121 &lt;*/M&gt; BNEP protocol support [CONFIG_BT_BNEP]
122 [*] Multicast filter support [CONFIG_BT_BNEP_MC_FILTER]
123 [*] Protocol filter support [CONFIG_BT_BNEP_PROTO_FILTER]
124 &lt;*/M&gt; HIDP protocol support [CONFIG_BT_HIDP]
125 Bluetooth device drivers ---&gt;
126 (Select the appropriate drivers for your Bluetooth hardware)
127
[8cf92e14]128 &lt;*/M&gt; RF switch subsystem support ---- [CONFIG_RFKILL]
[0f870c5]129
130-*- Cryptographic API ---&gt;
[8cf92e14]131 Crypto core or helper --- &gt;
132 &lt;*/M&gt; User-space cryptographic algorithm configuration [CONFIG_CRYPTO_USER]
133 Block ciphers ---&gt;
134 &lt;*/M&gt; AES (Advanced Encryption Standard) [CONFIG_CRYPTO_AES]
135 AEAD (authenticated encryption with associated data) ciphers ---&gt;
136 &lt;*/M&gt; CCM (Counter with Cipher Block Chaining-MAC) [CONFIG_CRYPTO_CCM]
137 Hashes, digests, and MACs ---&gt;
138 &lt;*/M&gt; CMAC (Cipher-based MAC) [CONFIG_CRYPTO_CMAC]
139 Userspace interface ---&gt;
140 &lt;*/M&gt; Hash algorithms [CONFIG_CRYPTO_USER_API_HASH]
141 &lt;*/M&gt; Symmetric key cipher algorithms [CONFIG_CRYPTO_USER_API_SKCIPHER]
142 &lt;*/M&gt; AEAD cipher algorithms [CONFIG_CRYPTO_USER_API_AEAD]</literal></screen>
[fee14fb]143
[0f870c5]144<!--
[0bd9c19]145 <para>
[48771ae]146 If you wish to run the test suite (even if treating this package as a build
[0bd9c19]147 dependency), you will need to enable the following options in the kernel
148 configuration and recompile the kernel if necessary:
149 </para>
150
[0f870c5]151<screen><literal>-*- Cryptographic API - - -&gt; [CONFIG_CRYPTO]
[ee4e4dea]152 &lt;*/M&gt; User-space interface for hash algorithms [CONFIG_CRYPTO_USER_API_HASH]
153 &lt;*/M&gt; User-space interface for symmetric key cipher algorithms [CONFIG_CRYPTO_USER_API_SKCIPHER]</literal></screen>
[0f870c5]154-->
[fee14fb]155 <indexterm zone="bluez bluez-kernel">
156 <primary sortas="d-bluez">bluez</primary>
157 </indexterm>
158 </sect2>
159
160 <sect2 role="installation">
161 <title>Installation of BlueZ</title>
[f2d585bd]162
[05a2eaa]163<!--
[b390160]164 <para>
165 At first, fix an issue building the package with Glibc-2.34 or later:
166 </para>
167
168<screen><userinput>sed 's/pause(/bluez_&amp;/' -i profiles/audio/media.c</userinput></screen>
[05a2eaa]169-->
[b390160]170
[f65a2dc]171 <para revision="sysv">Now, make some changes needed for SystemV systems:</para>
172
[e663b2a]173<screen revision="sysv"><userinput>patch -Np1 -i ../bluez-&bluez-version;-obexd_without_systemd-1.patch</userinput></screen>
[f65a2dc]174
[fee14fb]175 <para>
176 Install <application>BlueZ</application> by running the following
177 commands:
178 </para>
179
[d5497a2e]180<screen revision="sysv"><userinput>./configure --prefix=/usr \
[ef84ea0]181 --sysconfdir=/etc \
182 --localstatedir=/var \
183 --enable-library \
[e8aa56dd]184 --disable-manpages \
[ef84ea0]185 --disable-systemd &amp;&amp;
[fee14fb]186make</userinput></screen>
187
[d5497a2e]188<screen revision="systemd"><userinput>./configure --prefix=/usr \
189 --sysconfdir=/etc \
190 --localstatedir=/var \
[e8aa56dd]191 --disable-manpages \
[d5497a2e]192 --enable-library &amp;&amp;
193make</userinput></screen>
194
[fee14fb]195 <para>
[a99fd8bd]196 To test the results, issue: <userinput>make check</userinput>.
[fee14fb]197 </para>
198
199 <para>
200 Now, as the <systemitem class="username">root</systemitem> user:
201 </para>
202
[a99fd8bd]203<screen role="root"><userinput>make install &amp;&amp;
204ln -svf ../libexec/bluetooth/bluetoothd /usr/sbin</userinput></screen>
[fee14fb]205
206 <para>
[ef84ea0]207 Install the main configuration file as the
[fee14fb]208 <systemitem class="username">root</systemitem> user:
209 </para>
210
[ef84ea0]211<screen role="root"><userinput>install -v -dm755 /etc/bluetooth &amp;&amp;
212install -v -m644 src/main.conf /etc/bluetooth/main.conf</userinput></screen>
[fee14fb]213
214 <para>
215 If desired, install the API documentation as the
216 <systemitem class="username">root</systemitem> user:
217 </para>
218
[ef84ea0]219<screen role="root"><userinput>install -v -dm755 /usr/share/doc/bluez-&bluez-version; &amp;&amp;
[fee14fb]220install -v -m644 doc/*.txt /usr/share/doc/bluez-&bluez-version;</userinput></screen>
[ef84ea0]221
[fee14fb]222 </sect2>
223
224
225 <sect2 role="commands">
226 <title>Command Explanations</title>
227
[e8aa56dd]228 <para>
229 <parameter>--disable-manpages</parameter>: This switch disables generating
230 the manual pages because of the reliance on 'rst2man' in docutils. Remove
[0f124fa]231 this switch if you have <xref role="nodep" linkend="docutils"/> installed
232 and wish to generate the manual pages.
[e8aa56dd]233 </para>
234
[fee14fb]235 <para>
[f7153b6]236 <parameter>--enable-library</parameter>: This switch enables building the
[ef84ea0]237 <application>BlueZ</application> 4 compatibility library which is required by
238 some applications.
[fee14fb]239 </para>
240
[d5497a2e]241 <para revision="sysv">
[fd1493f]242 <parameter>--disable-systemd</parameter>: This switch is needed because
[ef84ea0]243 <application>systemd</application> is not part of LFS/BLFS. If you are
244 using systemd, remove this switch.
[fee14fb]245 </para>
246
[a99fd8bd]247 <para>
[8da658ba]248 <command>ln -svf ../libexec/bluetooth/bluetoothd /usr/sbin</command>:
[a99fd8bd]249 This command makes access to the bluetooth daemon more convenient.
250 </para>
251
[fee14fb]252 </sect2>
253
254 <sect2 role="configuration">
255 <title>Configuring BlueZ</title>
256
257 <sect3 id="bluez-config">
[a99fd8bd]258 <title>Configuration Files</title>
[03eca7f9]259 <para revision="sysv">
[a99fd8bd]260 <filename>/etc/bluetooth/main.conf</filename> is installed automatically
[21c477c]261 during the install. Additionally, there are three supplementary
262 configuration files. /etc/sysconfig/bluetooth is installed as a part
263 of the boot script below. In addition, you optionally can install the
264 following, as the <systemitem class="username">root</systemitem> user:
[fee14fb]265 </para>
[8da658ba]266
[03eca7f9]267 <para revision="systemd">
[6f75ffc]268 <filename>/etc/bluetooth/main.conf</filename> is installed automatically
[03eca7f9]269 during the installation. Additionally, there are two supplementary
[6f75ffc]270 configuration files. You can optionally install the following files
271 as the <systemitem class="username">root</systemitem> user:
[03eca7f9]272 </para>
273
[a99fd8bd]274<screen role="root"><userinput>cat > /etc/bluetooth/rfcomm.conf &lt;&lt; "EOF"</userinput>
[1daa1a57]275<literal># Start rfcomm.conf
[a99fd8bd]276# Set up the RFCOMM configuration of the Bluetooth subsystem in the Linux kernel.
277# Use one line per command
278# See the rfcomm man page for options
279
280
[36cfad9]281# End of rfcomm.conf</literal>
282EOF</screen>
[a99fd8bd]283
284<screen role="root"><userinput>cat > /etc/bluetooth/uart.conf &lt;&lt; "EOF"</userinput>
[1daa1a57]285<literal># Start uart.conf
[a99fd8bd]286# Attach serial devices via UART HCI to BlueZ stack
287# Use one line per device
288# See the hciattach man page for options
289
[36cfad9]290# End of uart.conf</literal>
291EOF</screen>
[fee14fb]292
293 <indexterm zone="bluez bluez-config">
294 <primary
295 sortas="e-etc-bluetooth-main.conf">/etc/bluetooth/main.conf</primary>
296 </indexterm>
297
298 </sect3>
299
300 <sect3 id="bluez-init">
[d5497a2e]301 <title><phrase revision="sysv">Boot Script</phrase>
[1dd1887]302 <phrase revision="systemd">Systemd Bluez Services</phrase></title>
[fee14fb]303
[d5497a2e]304 <para revision="sysv">
[fee14fb]305 To automatically start the <command>bluetoothd</command> daemon when the
306 system is rebooted, install the
307 <filename>/etc/rc.d/init.d/bluetooth</filename> bootscript from the
[d5497a2e]308 <xref linkend="bootscripts"/> package.
309 </para>
310
311 <para revision="systemd">
312 To start the <command>bluetoothd</command> daemon at boot,
313 enable the previously installed systemd unit by
314 running the following command as the
315 <systemitem class="username">root</systemitem> user:
[fee14fb]316 </para>
317
[1dd1887]318<screen role="root" revision="systemd"><userinput>systemctl enable bluetooth</userinput></screen>
319
320 <para revision="systemd">
321 To start the <command>obexd</command> daemon for a user session (to
322 support some Bluetooth programs using it), enable the previously
323 installed systemd unit for all users by running the following command
324 as the <systemitem class="username">root</systemitem> user:
325 </para>
326
327<screen role="root" revision="systemd"><userinput>systemctl enable --global obex</userinput></screen>
[8558044]328
[fee14fb]329 <indexterm zone="bluez bluez-init">
330 <primary sortas="f-bluetooth">bluetooth</primary>
331 </indexterm>
332
[d5497a2e]333<screen role="root" revision="sysv"><userinput>make install-bluetooth</userinput></screen>
334
335
336 <note revision="systemd">
337 <para>
338 <application>Systemd</application> will start the Bluetooth daemon
339 only when a bluetooth device is detected on the system.
340 </para>
341 </note>
[ef84ea0]342
[fee14fb]343 </sect3>
[ef84ea0]344
[fee14fb]345 </sect2>
346
347 <sect2 role="content">
348 <title>Contents</title>
349
350 <segmentedlist>
351 <segtitle>Installed Programs</segtitle>
352 <segtitle>Installed Library</segtitle>
353 <segtitle>Installed Directories</segtitle>
354
355 <seglistitem>
356 <seg>
[0f870c5]357 <!--bccmd, -->
[8558044]358 bluemoon,
359 bluetoothctl,
360 bluetoothd (symlink),
361 btattach,
362 btmon,
363 hex2hcd,
364 l2ping,
[78a15b4]365 l2test,
[8558044]366 mpris-proxy, and
[78a15b4]367 rctest
[fee14fb]368 </seg>
369 <seg>
370 libbluetooth.so
371 </seg>
372 <seg>
[8558044]373 /etc/bluetooth,
[78a15b4]374 /usr/{include,libexec}/bluetooth, and
[ef84ea0]375 /usr/share/doc/bluez-&bluez-version;
[fee14fb]376 </seg>
377 </seglistitem>
378 </segmentedlist>
379
380 <variablelist>
381 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
382 <?dbfo list-presentation="list"?>
383 <?dbhtml list-presentation="table"?>
384
[0f870c5]385 <!--
[fee14fb]386 <varlistentry id="bccmd">
387 <term><command>bccmd</command></term>
388 <listitem>
389 <para>
390 is used to issue BlueCore commands to Cambridge Silicon
[4c24eb0a]391 Radio devices
[fee14fb]392 </para>
393 <indexterm zone="bluez bccmd">
394 <primary sortas="b-bccmd">bccmd</primary>
395 </indexterm>
396 </listitem>
397 </varlistentry>
[0f870c5]398 -->
[fee14fb]399
[af5248e2]400 <varlistentry id="bluemoon">
401 <term><command>bluemoon</command></term>
402 <listitem>
403 <para>
[4c24eb0a]404 is a Bluemoon configuration utility
[af5248e2]405 </para>
406 <indexterm zone="bluez bluemoon">
407 <primary sortas="b-bluemoon">bluemoon</primary>
408 </indexterm>
409 </listitem>
410 </varlistentry>
411
[059a1a5c]412 <varlistentry id="bluetoothctl">
413 <term><command>bluetoothctl</command></term>
414 <listitem>
415 <para>
[4c24eb0a]416 is the interactive Bluetooth control program
[059a1a5c]417 </para>
418 <indexterm zone="bluez bluetoothctl">
419 <primary sortas="b-bluetoothctl">bluetoothctl</primary>
420 </indexterm>
421 </listitem>
422 </varlistentry>
423
[fee14fb]424 <varlistentry id="bluetoothd">
425 <term><command>bluetoothd</command></term>
426 <listitem>
427 <para>
[4c24eb0a]428 is the Bluetooth daemon
[fee14fb]429 </para>
430 <indexterm zone="bluez bluetoothd">
431 <primary sortas="b-bluetoothd">bluetoothd</primary>
432 </indexterm>
433 </listitem>
434 </varlistentry>
435
[af5248e2]436 <varlistentry id="btmon">
437 <term><command>btmon</command></term>
438 <listitem>
439 <para>
440 provides access to the Bluetooth subsystem monitor
[4c24eb0a]441 infrastructure for reading HCI traces
[af5248e2]442 </para>
443 <indexterm zone="bluez btmon">
444 <primary sortas="b-btmon">btmon</primary>
445 </indexterm>
446 </listitem>
447 </varlistentry>
448
[fee14fb]449
[e5bb823]450 <varlistentry id="hex2hcd">
451 <term><command>hex2hcd</command></term>
452 <listitem>
453 <para>
454 is used to convert a file needed by Broadcom devices
[4c24eb0a]455 to hcd (Broadcom bluetooth firmware) format
[e5bb823]456 </para>
457 <indexterm zone="bluez hex2hcd">
458 <primary sortas="b-hex2hcd">hex2hcd</primary>
459 </indexterm>
460 </listitem>
461 </varlistentry>
[fee14fb]462
463 <varlistentry id="l2ping">
464 <term><command>l2ping</command></term>
465 <listitem>
466 <para>
467 is used to send a L2CAP echo request to the Bluetooth MAC
[4c24eb0a]468 address given in dotted hex notation
[fee14fb]469 </para>
470 <indexterm zone="bluez l2ping">
471 <primary sortas="b-l2ping">l2ping</primary>
472 </indexterm>
473 </listitem>
474 </varlistentry>
475
[af5248e2]476 <varlistentry id="l2test">
477 <term><command>l2test</command></term>
478 <listitem>
479 <para>
[4c24eb0a]480 is a L2CAP testing program
[af5248e2]481 </para>
482 <indexterm zone="bluez l2test">
483 <primary sortas="b-l2test">l2test</primary>
484 </indexterm>
485 </listitem>
486 </varlistentry>
487
[ef84ea0]488 <varlistentry id="rctest">
489 <term><command>rctest</command></term>
[fee14fb]490 <listitem>
491 <para>
[ef84ea0]492 is used to test RFCOMM communications on the
[4c24eb0a]493 Bluetooth stack
[fee14fb]494 </para>
[ef84ea0]495 <indexterm zone="bluez rctest">
496 <primary sortas="b-rctest">rctest</primary>
[fee14fb]497 </indexterm>
498 </listitem>
499 </varlistentry>
500
501 <varlistentry id="libbluetooth">
502 <term><filename class="libraryfile">libbluetooth.so</filename></term>
503 <listitem>
504 <para>
[4c24eb0a]505 contains the <application>BlueZ</application> 4 API functions
[fee14fb]506 </para>
507 <indexterm zone="bluez libbluetooth">
508 <primary sortas="c-libbluetooth">libbluetooth.so</primary>
509 </indexterm>
510 </listitem>
511 </varlistentry>
512 </variablelist>
513
514 </sect2>
515
516</sect1>
Note: See TracBrowser for help on using the repository browser.