source: general/sysutils/bluez.xml@ e6b445c

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 e6b445c was e6b445c, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Package Updates.
Update to ruby-3.0.2. Fixes
Update to bluez-5.60. Fixes
Update to libuv-1.41.1. Fixes
Update to libbytesize-2.6. Fixes
Update to mariadb-10.6.3. Fixes

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