linux:system:bluetooth
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:system:bluetooth [2023/08/04 10:09] – oscar | linux:system:bluetooth [2025/09/22 17:29] (current) – [Install] oscar | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Bluetooth ====== | ====== Bluetooth ====== | ||
| Since Debian 12 two audio servers are available (either PulseAudio or PipeWire). PulseAudio is the default audio server in Debian. | Since Debian 12 two audio servers are available (either PulseAudio or PipeWire). PulseAudio is the default audio server in Debian. | ||
| + | ===== Install ===== | ||
| + | For a GTK environment (XFCE) the following packages need to be installed: | ||
| + | sudo apt install bluetooth rfkill bluez bluez-tools pulseaudio-module-bluetooth blueman | ||
| - | Install | + | Blueman is the XFCE bluetooth front-end app. |
| - | | + | ===== Check running services ===== |
| + | # systemctl status | ||
| + | $ systemctl --user status pulseaudio.service | ||
| + | |||
| + | ===== Checking For Bluetooth ===== | ||
| + | If you run rfkill as root, you should get something like follows: | ||
| + | |||
| + | ~$ sudo rfkill | ||
| + | ID TYPE DEVICE | ||
| + | 0 wlan phy0 | ||
| + | 1 bluetooth hci0 | ||
| + | |||
| + | If you see anything blocked, you will have to unblock it. Hard blocked is usually a switch (or a wireless key on the keyboard), soft blocked is usually something with the OS. Run the following to unblock a device: | ||
| + | |||
| + | rfkill unblock [device] | ||
| + | |||
| + | Check if bluetooth radio is present in PulseAudio cards: | ||
| + | pactl list cards short | ||
| + | |||
| + | ===== PulseAudio automatic connect ===== | ||
| + | Switch automatically to bluetooth output on connecting to bluetooth device. | ||
| + | Enter: | ||
| + | |||
| + | pactl load-module | ||
| + | |||
| + | To persist autoconnect on reboots, add the following | ||
| + | # nano / | ||
| + | |||
| + | Add the following to the bottom: | ||
| + | | ||
| + | .ifexists module-switch-on-connect.so | ||
| + | load-module module-switch-on-connect | ||
| + | .endif | ||
| + | |||
| + | |||
| + | | ||
linux/system/bluetooth.1691143748.txt.gz · Last modified: by oscar
