Project

General

Profile

Bluetooth » History » Version 2

Alex Seferidis, 07/16/2025 03:11 PM

1 1 Alex Seferidis
# Bluetooth
2
3
Copy rtl_bt to /lib/firmware/rtl_bt
4
-------------------------------
5
6
Copy new files to /etc/pulse
7
-------------------------------
8
9
Useful commands if connect Bluetooth headphones:
10
pulseaudio --start
11
pulseaudio --system
12
pulseaudio --daemonize --system
13
14
15
add user root to audio group
16
usermod -aG audio root
17
18
19
Search and connect with hciconfig:
20
hciconfig hci0 up
21
hciconfig -a
22
hcitool dev
23
hcitool scan
24
hcitool cc F4:4E:FC:C3:DF:07
25
hcitool con
26
hcitool auth F4:4E:FC:C3:DF:07
27
28
test:
29
l2ping F4:4E:FC:C3:DF:07
30
31
32
33
34
Search and connect with bluetoothctl:
35 2 Alex Seferidis
```
36 1 Alex Seferidis
# bluetoothctl
37 2 Alex Seferidis
```
38 1 Alex Seferidis
to be greeted by its internal command prompt. Then enter:
39
40 2 Alex Seferidis
```
41 1 Alex Seferidis
# power on
42
# agent on
43
# default-agent
44
# scan on
45 2 Alex Seferidis
```
46 1 Alex Seferidis
Now make sure that your headset is in pairing mode. It should be discovered shortly. For example,
47
48
[NEW] Device 00:1D:43:6D:03:26 Lasmex LBT10
49
shows a device that calls itself "Lasmex LBT10" and has MAC address 00:1D:43:6D:03:26. We will now use that MAC address to initiate the pairing:
50
51 2 Alex Seferidis
```
52 1 Alex Seferidis
# pair F4:4E:FC:C3:DF:07
53 2 Alex Seferidis
```
54 1 Alex Seferidis
After pairing, you also need to explicitly connect the device (every time?):
55
56 2 Alex Seferidis
```
57 1 Alex Seferidis
# connect F4:4E:FC:C3:DF:07
58 2 Alex Seferidis
```
59 1 Alex Seferidis
If everything works correctly, you now have a separate output device in PulseAudio. Note: The device may be off by default. Select its audio profile (OFF, A2DP, HFP) in the "Configuration" tab of pavucontrol.
60
61
You can now redirect any audio through that device using the "Playback" and "Recording" tabs of pavucontrol.
62
63
You can now disable scanning again and exit the program:
64
65 2 Alex Seferidis
```
66 1 Alex Seferidis
# scan off
67
# exit
68 2 Alex Seferidis
```
69 1 Alex Seferidis
so, kudos to archlinux for that (after the 'connect' command, the sound over my bt speakers worked with pulseaudio pavucontrol)