source: general/sysutils/bluez.xml@ 9ceb07f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 9ceb07f was 9ceb07f, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Fixes BlueZ-5.17 to work properly with gnome-bluetooth and_or kde bluedevil. Thanks Armin K.

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

  • Property mode set to 100644
File size: 12.2 KB
Line 
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
7 <!ENTITY bluez-download-http "http://www.kernel.org/pub/linux/bluetooth/bluez-&bluez-version;.tar.xz">
8 <!ENTITY bluez-download-ftp "ftp://ftp.kernel.org/pub/linux/bluetooth/bluez-&bluez-version;.tar.xz">
9 <!ENTITY bluez-md5sum "5e6e41f0a275092ace303e813cd6f33b">
10 <!ENTITY bluez-size "1.3 MB">
11 <!ENTITY bluez-buildsize "51 MB">
12 <!ENTITY bluez-time "0.6 SBU">
13]>
14
15<sect1 id="bluez" xreflabel="BlueZ-&bluez-version;">
16 <?dbhtml filename="bluez.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>BlueZ-&bluez-version;</title>
24
25 <indexterm zone="bluez">
26 <primary sortas="a-BlueZ">BlueZ</primary>
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
37 &lfs75_checked;
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
73 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
74 <itemizedlist spacing="compact">
75 <listitem>
76 <para>
77 Optional patch (required to work properly with gnome-bluetooth
78 and/or kde bluedevil):
79 <ulink url="&patch-root;/bluez-&bluez-version;-obexd_without_systemd-1.patch"/>
80 </para>
81 </listitem>
82 </itemizedlist>
83
84 <bridgehead renderas="sect3">BlueZ Dependencies</bridgehead>
85
86 <bridgehead renderas="sect4">Required</bridgehead>
87 <para role="required">
88 <xref linkend="dbus"/>,
89 <xref linkend="glib2"/>,
90 <xref linkend="libical"/>
91 </para>
92
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>
103 Enable the following options in the kernel configuration and recompile the
104 kernel if necessary:
105 </para>
106
107<screen><literal>[*] Networking support --->
108 &lt;*&gt; or &lt;M&gt; Bluetooth subsystem support --->
109 &lt;*&gt; or &lt;M&gt; RFCOMM protocol support
110 [*] RFCOMM TTY support
111 &lt;*&gt; or &lt;M&gt; BNEP protocol support
112 [*] Multicast filter support
113 [*] Protocol filter support
114 &lt;*&gt; or &lt;M&gt; HIDP protocol support
115
116 Bluetooth device drivers ---></literal></screen>
117
118 <para>
119 Select the appropriate drivers for your Bluetooth hardware.
120 </para>
121
122 <indexterm zone="bluez bluez-kernel">
123 <primary sortas="d-bluez">bluez</primary>
124 </indexterm>
125 </sect2>
126
127 <sect2 role="installation">
128 <title>Installation of BlueZ</title>
129
130 <para>
131 If you are going to use <application>BlueZ</application> with
132 gnome-bluetooth and/or kde bluedevil, apply the following patch:
133 </para>
134
135<screen><userinput>patch -Np1 -i ../bluez-&bluez-version;-obexd_without_systemd-1.patch"</userinput></screen>
136
137 <para>
138 Install <application>BlueZ</application> by running the following
139 commands:
140 </para>
141
142<screen><userinput>./configure --prefix=/usr \
143 --sysconfdir=/etc \
144 --localstatedir=/var \
145 --libexecdir=/usr/lib \
146 --enable-library \
147 --disable-systemd &amp;&amp;
148make</userinput></screen>
149
150 <para>
151 This package does not come with a test suite.
152 </para>
153
154 <para>
155 Now, as the <systemitem class="username">root</systemitem> user:
156 </para>
157
158<screen role="root"><userinput>make install</userinput></screen>
159
160 <para>
161 Install the main configuration file as the
162 <systemitem class="username">root</systemitem> user:
163 </para>
164
165<screen role="root"><userinput>install -v -dm755 /etc/bluetooth &amp;&amp;
166install -v -m644 src/main.conf /etc/bluetooth/main.conf</userinput></screen>
167
168 <para>
169 If desired, install the API documentation as the
170 <systemitem class="username">root</systemitem> user:
171 </para>
172
173<screen role="root"><userinput>install -v -dm755 /usr/share/doc/bluez-&bluez-version; &amp;&amp;
174install -v -m644 doc/*.txt /usr/share/doc/bluez-&bluez-version;</userinput></screen>
175
176 </sect2>
177
178
179 <sect2 role="commands">
180 <title>Command Explanations</title>
181
182 <para>
183 <parameter>--enable-library</parameter>: This switch enables building of the
184 <application>BlueZ</application> 4 compatibility library which is required by
185 some applications.
186 </para>
187
188 <para>
189 <parameter>--disable-systemd</parameter>: This switch is needed for
190 <application>systemd</application> is not part of LFS/BLFS. If you are
191 using systemd, remove this switch.
192 </para>
193
194 </sect2>
195
196 <sect2 role="configuration">
197 <title>Configuring BlueZ</title>
198
199 <sect3 id="bluez-config">
200 <title>Config Files</title>
201 <para>
202 <filename>/etc/bluetooth/main.conf</filename>
203 </para>
204
205 <indexterm zone="bluez bluez-config">
206 <primary
207 sortas="e-etc-bluetooth-main.conf">/etc/bluetooth/main.conf</primary>
208 </indexterm>
209
210 </sect3>
211
212 <sect3 id="bluez-init">
213 <title>Boot Script</title>
214
215 <para>
216 To automatically start the <command>bluetoothd</command> daemon when the
217 system is rebooted, install the
218 <filename>/etc/rc.d/init.d/bluetooth</filename> bootscript from the
219 <xref linkend="bootscripts"/> package.
220 </para>
221
222 <indexterm zone="bluez bluez-init">
223 <primary sortas="f-bluetooth">bluetooth</primary>
224 </indexterm>
225
226<screen role="root"><userinput>make install-bluetooth</userinput></screen>
227
228 </sect3>
229
230 </sect2>
231
232 <sect2 role="content">
233 <title>Contents</title>
234
235 <segmentedlist>
236 <segtitle>Installed Programs</segtitle>
237 <segtitle>Installed Library</segtitle>
238 <segtitle>Installed Directories</segtitle>
239
240 <seglistitem>
241 <seg>
242 bccmd, bluemoon, bluetoothctl, bluetoothd, btmon, ciptool,
243 hciattach, hciconfig, hcidump, hcitool, hid2hci, l2ping,
244 l2test, obexd, rctest, rfcomm, and sdptool
245 </seg>
246 <seg>
247 libbluetooth.so
248 </seg>
249 <seg>
250 /etc/bluetooth,
251 /usr/include/bluetooth,
252 /usr/libexec/bluetooth, and
253 /usr/share/doc/bluez-&bluez-version;
254 </seg>
255 </seglistitem>
256 </segmentedlist>
257
258 <variablelist>
259 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
260 <?dbfo list-presentation="list"?>
261 <?dbhtml list-presentation="table"?>
262
263 <varlistentry id="bccmd">
264 <term><command>bccmd</command></term>
265 <listitem>
266 <para>
267 is used to issue BlueCore commands to Cambridge Silicon
268 Radio devices.
269 </para>
270 <indexterm zone="bluez bccmd">
271 <primary sortas="b-bccmd">bccmd</primary>
272 </indexterm>
273 </listitem>
274 </varlistentry>
275
276 <varlistentry id="bluetoothd">
277 <term><command>bluetoothd</command></term>
278 <listitem>
279 <para>
280 is the Bluetooth daemon.
281 </para>
282 <indexterm zone="bluez bluetoothd">
283 <primary sortas="b-bluetoothd">bluetoothd</primary>
284 </indexterm>
285 </listitem>
286 </varlistentry>
287
288 <varlistentry id="ciptool">
289 <term><command>ciptool</command></term>
290 <listitem>
291 <para>
292 is used to set up, maintain, and inspect the CIP configuration
293 of the Bluetooth subsystem in the Linux kernel.
294 </para>
295 <indexterm zone="bluez ciptool">
296 <primary sortas="b-ciptool">ciptool</primary>
297 </indexterm>
298 </listitem>
299 </varlistentry>
300
301 <varlistentry id="hciattach">
302 <term><command>hciattach</command></term>
303 <listitem>
304 <para>
305 is used to attach a serial UART to the Bluetooth stack
306 as HCI transport interface.
307 </para>
308 <indexterm zone="bluez hciattach">
309 <primary sortas="b-hciattach">hciattach</primary>
310 </indexterm>
311 </listitem>
312 </varlistentry>
313
314 <varlistentry id="hciconfig">
315 <term><command>hciconfig</command></term>
316 <listitem>
317 <para>
318 is used to configure Bluetooth devices.
319 </para>
320 <indexterm zone="bluez hciconfig">
321 <primary sortas="b-hciconfig">hciconfig</primary>
322 </indexterm>
323 </listitem>
324 </varlistentry>
325
326 <varlistentry id="hcitool">
327 <term><command>hcitool</command></term>
328 <listitem>
329 <para>
330 is used to configure Bluetooth connections and send some
331 special command to Bluetooth devices.
332 </para>
333 <indexterm zone="bluez hcitool">
334 <primary sortas="b-hcitool">hcitool</primary>
335 </indexterm>
336 </listitem>
337 </varlistentry>
338
339 <varlistentry id="hid2hci">
340 <term><command>hid2hci</command></term>
341 <listitem>
342 <para>
343 is used to set up switch supported Bluetooth devices into
344 the HCI mode and back.
345 </para>
346 <indexterm zone="bluez hid2hci">
347 <primary sortas="b-hid2hci">hid2hci</primary>
348 </indexterm>
349 </listitem>
350 </varlistentry>
351
352 <varlistentry id="l2ping">
353 <term><command>l2ping</command></term>
354 <listitem>
355 <para>
356 is used to send a L2CAP echo request to the Bluetooth MAC
357 address given in dotted hex notation.
358 </para>
359 <indexterm zone="bluez l2ping">
360 <primary sortas="b-l2ping">l2ping</primary>
361 </indexterm>
362 </listitem>
363 </varlistentry>
364
365 <varlistentry id="rctest">
366 <term><command>rctest</command></term>
367 <listitem>
368 <para>
369 is used to test RFCOMM communications on the
370 Bluetooth stack.
371 </para>
372 <indexterm zone="bluez rctest">
373 <primary sortas="b-rctest">rctest</primary>
374 </indexterm>
375 </listitem>
376 </varlistentry>
377
378 <varlistentry id="rfcomm">
379 <term><command>rfcomm</command></term>
380 <listitem>
381 <para>
382 is used to set up, maintain, and inspect the RFCOMM
383 configuration of the Bluetooth subsystem in the
384 Linux kernel.
385 </para>
386 <indexterm zone="bluez rfcomm">
387 <primary sortas="b-rfcomm">rfcomm</primary>
388 </indexterm>
389 </listitem>
390 </varlistentry>
391
392 <varlistentry id="sdptool">
393 <term><command>sdptool</command></term>
394 <listitem>
395 <para>
396 is used to perform SDP queries on Bluetooth devices.
397 </para>
398 <indexterm zone="bluez sdptool">
399 <primary sortas="b-sdptool">sdptool</primary>
400 </indexterm>
401 </listitem>
402 </varlistentry>
403
404 <varlistentry id="libbluetooth">
405 <term><filename class="libraryfile">libbluetooth.so</filename></term>
406 <listitem>
407 <para>
408 contains the <application>BlueZ</application> 4 API functions.
409 </para>
410 <indexterm zone="bluez libbluetooth">
411 <primary sortas="c-libbluetooth">libbluetooth.so</primary>
412 </indexterm>
413 </listitem>
414 </varlistentry>
415 </variablelist>
416
417 </sect2>
418
419</sect1>
Note: See TracBrowser for help on using the repository browser.