Bluetooth » History » Version 3
Alex Seferidis, 07/16/2025 03:12 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 | 3 | Alex Seferidis | ``` |
| 17 | 1 | Alex Seferidis | usermod -aG audio root |
| 18 | 3 | Alex Seferidis | ``` |
| 19 | 1 | Alex Seferidis | |
| 20 | |||
| 21 | Search and connect with hciconfig: |
||
| 22 | 3 | Alex Seferidis | ``` |
| 23 | 1 | Alex Seferidis | hciconfig hci0 up |
| 24 | hciconfig -a |
||
| 25 | hcitool dev |
||
| 26 | hcitool scan |
||
| 27 | hcitool cc F4:4E:FC:C3:DF:07 |
||
| 28 | hcitool con |
||
| 29 | hcitool auth F4:4E:FC:C3:DF:07 |
||
| 30 | 3 | Alex Seferidis | ``` |
| 31 | 1 | Alex Seferidis | |
| 32 | test: |
||
| 33 | 3 | Alex Seferidis | ``` |
| 34 | 1 | Alex Seferidis | l2ping F4:4E:FC:C3:DF:07 |
| 35 | 3 | Alex Seferidis | ``` |
| 36 | 1 | Alex Seferidis | |
| 37 | |||
| 38 | |||
| 39 | |||
| 40 | Search and connect with bluetoothctl: |
||
| 41 | 2 | Alex Seferidis | ``` |
| 42 | 1 | Alex Seferidis | # bluetoothctl |
| 43 | 2 | Alex Seferidis | ``` |
| 44 | 1 | Alex Seferidis | to be greeted by its internal command prompt. Then enter: |
| 45 | |||
| 46 | 2 | Alex Seferidis | ``` |
| 47 | 1 | Alex Seferidis | # power on |
| 48 | # agent on |
||
| 49 | # default-agent |
||
| 50 | # scan on |
||
| 51 | 2 | Alex Seferidis | ``` |
| 52 | 1 | Alex Seferidis | Now make sure that your headset is in pairing mode. It should be discovered shortly. For example, |
| 53 | |||
| 54 | [NEW] Device 00:1D:43:6D:03:26 Lasmex LBT10 |
||
| 55 | 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: |
||
| 56 | |||
| 57 | 2 | Alex Seferidis | ``` |
| 58 | 1 | Alex Seferidis | # pair F4:4E:FC:C3:DF:07 |
| 59 | 2 | Alex Seferidis | ``` |
| 60 | 1 | Alex Seferidis | After pairing, you also need to explicitly connect the device (every time?): |
| 61 | |||
| 62 | 2 | Alex Seferidis | ``` |
| 63 | 1 | Alex Seferidis | # connect F4:4E:FC:C3:DF:07 |
| 64 | 2 | Alex Seferidis | ``` |
| 65 | 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. |
| 66 | |||
| 67 | You can now redirect any audio through that device using the "Playback" and "Recording" tabs of pavucontrol. |
||
| 68 | |||
| 69 | You can now disable scanning again and exit the program: |
||
| 70 | |||
| 71 | 2 | Alex Seferidis | ``` |
| 72 | 1 | Alex Seferidis | # scan off |
| 73 | # exit |
||
| 74 | 2 | Alex Seferidis | ``` |
| 75 | 1 | Alex Seferidis | so, kudos to archlinux for that (after the 'connect' command, the sound over my bt speakers worked with pulseaudio pavucontrol) |