source: general/sysutils/bluez.xml@ 3040325

12.0 12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since 3040325 was e7cd19a, checked in by Xi Ruoyao <xry111@…>, 11 months ago

general: Use new rendering method for kernel configuration

It's almost a plain "conversion". Exceptions:

  • In elogind, [CGROUPS] is dropped because it's in LFS now.
  • In libusb, move the kernel configuration to match the layout of other packages.
  • Property mode set to 100644
File size: 14.3 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 " ">
[51259ad7]9 <!ENTITY bluez-md5sum "00a72fed12e706b2d8bb40786154d3aa">
[0d7ff480]10 <!ENTITY bluez-size "2.2 MB">
[51259ad7]11 <!ENTITY bluez-buildsize "158 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 </sect2>
94
95
96 <sect2 role="kernel" id="bluez-kernel">
97 <title>Kernel Configuration</title>
98
99 <para>
[b8301f1]100 If you are building this package to use bluetooth devices (rather than as a
[0bd9c19]101 build dependency), enable the following options in the kernel configuration,
[8cf92e14]102 also the options in the <quote>Cryptographic API</quote> section if
103 you intend to run the tests, and recompile the kernel if necessary:
[fee14fb]104 </para>
105
[e7cd19a]106 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
107 href="bluez-kernel.xml"/>
[fee14fb]108
109 <indexterm zone="bluez bluez-kernel">
110 <primary sortas="d-bluez">bluez</primary>
111 </indexterm>
112 </sect2>
113
114 <sect2 role="installation">
115 <title>Installation of BlueZ</title>
[f2d585bd]116
[05a2eaa]117<!--
[b390160]118 <para>
119 At first, fix an issue building the package with Glibc-2.34 or later:
120 </para>
121
122<screen><userinput>sed 's/pause(/bluez_&amp;/' -i profiles/audio/media.c</userinput></screen>
[05a2eaa]123-->
[b390160]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
[fee14fb]129 <para>
130 Install <application>BlueZ</application> by running the following
131 commands:
132 </para>
133
[d5497a2e]134<screen revision="sysv"><userinput>./configure --prefix=/usr \
[ef84ea0]135 --sysconfdir=/etc \
136 --localstatedir=/var \
137 --enable-library \
[e8aa56dd]138 --disable-manpages \
[ef84ea0]139 --disable-systemd &amp;&amp;
[fee14fb]140make</userinput></screen>
141
[d5497a2e]142<screen revision="systemd"><userinput>./configure --prefix=/usr \
143 --sysconfdir=/etc \
144 --localstatedir=/var \
[e8aa56dd]145 --disable-manpages \
[d5497a2e]146 --enable-library &amp;&amp;
147make</userinput></screen>
148
[fee14fb]149 <para>
[a99fd8bd]150 To test the results, issue: <userinput>make check</userinput>.
[fee14fb]151 </para>
152
153 <para>
154 Now, as the <systemitem class="username">root</systemitem> user:
155 </para>
156
[a99fd8bd]157<screen role="root"><userinput>make install &amp;&amp;
158ln -svf ../libexec/bluetooth/bluetoothd /usr/sbin</userinput></screen>
[fee14fb]159
160 <para>
[ef84ea0]161 Install the main configuration file as the
[fee14fb]162 <systemitem class="username">root</systemitem> user:
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>
169 If desired, install the API documentation as the
170 <systemitem class="username">root</systemitem> user:
171 </para>
172
[ef84ea0]173<screen role="root"><userinput>install -v -dm755 /usr/share/doc/bluez-&bluez-version; &amp;&amp;
[fee14fb]174install -v -m644 doc/*.txt /usr/share/doc/bluez-&bluez-version;</userinput></screen>
[ef84ea0]175
[fee14fb]176 </sect2>
177
178
179 <sect2 role="commands">
180 <title>Command Explanations</title>
181
[e8aa56dd]182 <para>
183 <parameter>--disable-manpages</parameter>: This switch disables generating
184 the manual pages because of the reliance on 'rst2man' in docutils. Remove
[0f124fa]185 this switch if you have <xref role="nodep" linkend="docutils"/> installed
186 and wish to generate the manual pages.
[e8aa56dd]187 </para>
188
[fee14fb]189 <para>
[f7153b6]190 <parameter>--enable-library</parameter>: This switch enables building the
[ef84ea0]191 <application>BlueZ</application> 4 compatibility library which is required by
192 some applications.
[fee14fb]193 </para>
194
[d5497a2e]195 <para revision="sysv">
[fd1493f]196 <parameter>--disable-systemd</parameter>: This switch is needed because
[ef84ea0]197 <application>systemd</application> is not part of LFS/BLFS. If you are
198 using systemd, remove this switch.
[fee14fb]199 </para>
200
[a99fd8bd]201 <para>
[8da658ba]202 <command>ln -svf ../libexec/bluetooth/bluetoothd /usr/sbin</command>:
[a99fd8bd]203 This command makes access to the bluetooth daemon more convenient.
204 </para>
205
[fee14fb]206 </sect2>
207
208 <sect2 role="configuration">
209 <title>Configuring BlueZ</title>
210
211 <sect3 id="bluez-config">
[a99fd8bd]212 <title>Configuration Files</title>
[03eca7f9]213 <para revision="sysv">
[a99fd8bd]214 <filename>/etc/bluetooth/main.conf</filename> is installed automatically
[21c477c]215 during the install. Additionally, there are three supplementary
216 configuration files. /etc/sysconfig/bluetooth is installed as a part
217 of the boot script below. In addition, you optionally can install the
218 following, as the <systemitem class="username">root</systemitem> user:
[fee14fb]219 </para>
[8da658ba]220
[03eca7f9]221 <para revision="systemd">
[6f75ffc]222 <filename>/etc/bluetooth/main.conf</filename> is installed automatically
[03eca7f9]223 during the installation. Additionally, there are two supplementary
[6f75ffc]224 configuration files. You can optionally install the following files
225 as the <systemitem class="username">root</systemitem> user:
[03eca7f9]226 </para>
227
[a99fd8bd]228<screen role="root"><userinput>cat > /etc/bluetooth/rfcomm.conf &lt;&lt; "EOF"</userinput>
[1daa1a57]229<literal># Start rfcomm.conf
[a99fd8bd]230# Set up the RFCOMM configuration of the Bluetooth subsystem in the Linux kernel.
231# Use one line per command
232# See the rfcomm man page for options
233
234
[36cfad9]235# End of rfcomm.conf</literal>
236EOF</screen>
[a99fd8bd]237
238<screen role="root"><userinput>cat > /etc/bluetooth/uart.conf &lt;&lt; "EOF"</userinput>
[1daa1a57]239<literal># Start uart.conf
[a99fd8bd]240# Attach serial devices via UART HCI to BlueZ stack
241# Use one line per device
242# See the hciattach man page for options
243
[36cfad9]244# End of uart.conf</literal>
245EOF</screen>
[fee14fb]246
247 <indexterm zone="bluez bluez-config">
248 <primary
249 sortas="e-etc-bluetooth-main.conf">/etc/bluetooth/main.conf</primary>
250 </indexterm>
251
252 </sect3>
253
254 <sect3 id="bluez-init">
[d5497a2e]255 <title><phrase revision="sysv">Boot Script</phrase>
[1dd1887]256 <phrase revision="systemd">Systemd Bluez Services</phrase></title>
[fee14fb]257
[d5497a2e]258 <para revision="sysv">
[fee14fb]259 To automatically start the <command>bluetoothd</command> daemon when the
260 system is rebooted, install the
261 <filename>/etc/rc.d/init.d/bluetooth</filename> bootscript from the
[d5497a2e]262 <xref linkend="bootscripts"/> package.
263 </para>
264
265 <para revision="systemd">
266 To start the <command>bluetoothd</command> daemon at boot,
267 enable the previously installed systemd unit by
268 running the following command as the
269 <systemitem class="username">root</systemitem> user:
[fee14fb]270 </para>
271
[1dd1887]272<screen role="root" revision="systemd"><userinput>systemctl enable bluetooth</userinput></screen>
273
274 <para revision="systemd">
275 To start the <command>obexd</command> daemon for a user session (to
276 support some Bluetooth programs using it), enable the previously
277 installed systemd unit for all users by running the following command
278 as the <systemitem class="username">root</systemitem> user:
279 </para>
280
281<screen role="root" revision="systemd"><userinput>systemctl enable --global obex</userinput></screen>
[8558044]282
[fee14fb]283 <indexterm zone="bluez bluez-init">
284 <primary sortas="f-bluetooth">bluetooth</primary>
285 </indexterm>
286
[d5497a2e]287<screen role="root" revision="sysv"><userinput>make install-bluetooth</userinput></screen>
288
289
290 <note revision="systemd">
291 <para>
292 <application>Systemd</application> will start the Bluetooth daemon
293 only when a bluetooth device is detected on the system.
294 </para>
295 </note>
[ef84ea0]296
[fee14fb]297 </sect3>
[ef84ea0]298
[fee14fb]299 </sect2>
300
301 <sect2 role="content">
302 <title>Contents</title>
303
304 <segmentedlist>
305 <segtitle>Installed Programs</segtitle>
306 <segtitle>Installed Library</segtitle>
307 <segtitle>Installed Directories</segtitle>
308
309 <seglistitem>
310 <seg>
[0f870c5]311 <!--bccmd, -->
[8558044]312 bluemoon,
313 bluetoothctl,
314 bluetoothd (symlink),
315 btattach,
316 btmon,
317 hex2hcd,
318 l2ping,
[78a15b4]319 l2test,
[8558044]320 mpris-proxy, and
[78a15b4]321 rctest
[fee14fb]322 </seg>
323 <seg>
324 libbluetooth.so
325 </seg>
326 <seg>
[8558044]327 /etc/bluetooth,
[78a15b4]328 /usr/{include,libexec}/bluetooth, and
[ef84ea0]329 /usr/share/doc/bluez-&bluez-version;
[fee14fb]330 </seg>
331 </seglistitem>
332 </segmentedlist>
333
334 <variablelist>
335 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
336 <?dbfo list-presentation="list"?>
337 <?dbhtml list-presentation="table"?>
338
[0f870c5]339 <!--
[fee14fb]340 <varlistentry id="bccmd">
341 <term><command>bccmd</command></term>
342 <listitem>
343 <para>
344 is used to issue BlueCore commands to Cambridge Silicon
[4c24eb0a]345 Radio devices
[fee14fb]346 </para>
347 <indexterm zone="bluez bccmd">
348 <primary sortas="b-bccmd">bccmd</primary>
349 </indexterm>
350 </listitem>
351 </varlistentry>
[0f870c5]352 -->
[fee14fb]353
[af5248e2]354 <varlistentry id="bluemoon">
355 <term><command>bluemoon</command></term>
356 <listitem>
357 <para>
[4c24eb0a]358 is a Bluemoon configuration utility
[af5248e2]359 </para>
360 <indexterm zone="bluez bluemoon">
361 <primary sortas="b-bluemoon">bluemoon</primary>
362 </indexterm>
363 </listitem>
364 </varlistentry>
365
[059a1a5c]366 <varlistentry id="bluetoothctl">
367 <term><command>bluetoothctl</command></term>
368 <listitem>
369 <para>
[4c24eb0a]370 is the interactive Bluetooth control program
[059a1a5c]371 </para>
372 <indexterm zone="bluez bluetoothctl">
373 <primary sortas="b-bluetoothctl">bluetoothctl</primary>
374 </indexterm>
375 </listitem>
376 </varlistentry>
377
[fee14fb]378 <varlistentry id="bluetoothd">
379 <term><command>bluetoothd</command></term>
380 <listitem>
381 <para>
[4c24eb0a]382 is the Bluetooth daemon
[fee14fb]383 </para>
384 <indexterm zone="bluez bluetoothd">
385 <primary sortas="b-bluetoothd">bluetoothd</primary>
386 </indexterm>
387 </listitem>
388 </varlistentry>
389
[af5248e2]390 <varlistentry id="btmon">
391 <term><command>btmon</command></term>
392 <listitem>
393 <para>
394 provides access to the Bluetooth subsystem monitor
[4c24eb0a]395 infrastructure for reading HCI traces
[af5248e2]396 </para>
397 <indexterm zone="bluez btmon">
398 <primary sortas="b-btmon">btmon</primary>
399 </indexterm>
400 </listitem>
401 </varlistentry>
402
[fee14fb]403
[e5bb823]404 <varlistentry id="hex2hcd">
405 <term><command>hex2hcd</command></term>
406 <listitem>
407 <para>
408 is used to convert a file needed by Broadcom devices
[4c24eb0a]409 to hcd (Broadcom bluetooth firmware) format
[e5bb823]410 </para>
411 <indexterm zone="bluez hex2hcd">
412 <primary sortas="b-hex2hcd">hex2hcd</primary>
413 </indexterm>
414 </listitem>
415 </varlistentry>
[fee14fb]416
417 <varlistentry id="l2ping">
418 <term><command>l2ping</command></term>
419 <listitem>
420 <para>
421 is used to send a L2CAP echo request to the Bluetooth MAC
[4c24eb0a]422 address given in dotted hex notation
[fee14fb]423 </para>
424 <indexterm zone="bluez l2ping">
425 <primary sortas="b-l2ping">l2ping</primary>
426 </indexterm>
427 </listitem>
428 </varlistentry>
429
[af5248e2]430 <varlistentry id="l2test">
431 <term><command>l2test</command></term>
432 <listitem>
433 <para>
[4c24eb0a]434 is a L2CAP testing program
[af5248e2]435 </para>
436 <indexterm zone="bluez l2test">
437 <primary sortas="b-l2test">l2test</primary>
438 </indexterm>
439 </listitem>
440 </varlistentry>
441
[ef84ea0]442 <varlistentry id="rctest">
443 <term><command>rctest</command></term>
[fee14fb]444 <listitem>
445 <para>
[ef84ea0]446 is used to test RFCOMM communications on the
[4c24eb0a]447 Bluetooth stack
[fee14fb]448 </para>
[ef84ea0]449 <indexterm zone="bluez rctest">
450 <primary sortas="b-rctest">rctest</primary>
[fee14fb]451 </indexterm>
452 </listitem>
453 </varlistentry>
454
455 <varlistentry id="libbluetooth">
456 <term><filename class="libraryfile">libbluetooth.so</filename></term>
457 <listitem>
458 <para>
[4c24eb0a]459 contains the <application>BlueZ</application> 4 API functions
[fee14fb]460 </para>
461 <indexterm zone="bluez libbluetooth">
462 <primary sortas="c-libbluetooth">libbluetooth.so</primary>
463 </indexterm>
464 </listitem>
465 </varlistentry>
466 </variablelist>
467
468 </sect2>
469
470</sect1>
Note: See TracBrowser for help on using the repository browser.