Project

General

Profile

Bluetooth » History » Version 1

Alex Seferidis, 07/16/2025 03:10 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
# bluetoothctl
36
to be greeted by its internal command prompt. Then enter:
37
38
# power on
39
# agent on
40
# default-agent
41
# scan on
42
Now make sure that your headset is in pairing mode. It should be discovered shortly. For example,
43
44
[NEW] Device 00:1D:43:6D:03:26 Lasmex LBT10
45
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:
46
47
# pair F4:4E:FC:C3:DF:07
48
After pairing, you also need to explicitly connect the device (every time?):
49
50
# connect F4:4E:FC:C3:DF:07
51
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.
52
53
You can now redirect any audio through that device using the "Playback" and "Recording" tabs of pavucontrol.
54
55
You can now disable scanning again and exit the program:
56
57
# scan off
58
# exit
59
so, kudos to archlinux for that (after the 'connect' command, the sound over my bt speakers worked with pulseaudio pavucontrol)