linux:system:bluetooth
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux:system:bluetooth [2023/08/04 09:42] – created 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. |
| + | ===== Install ===== | ||
| + | For a GTK environment (XFCE) the following packages need to be installed: | ||
| + | | ||
| + | |||
| + | Blueman is the XFCE bluetooth front-end app. | ||
| + | ===== Check running services ===== | ||
| + | # systemctl status bluetooth | ||
| + | $ 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 module-switch-on-connect | ||
| + | |||
| + | To persist autoconnect on reboots, add the following to / | ||
| + | # nano / | ||
| + | |||
| + | Add the following to the bottom: | ||
| + | |||
| + | .ifexists module-switch-on-connect.so | ||
| + | load-module module-switch-on-connect | ||
| + | .endif | ||
| + | |||
| + | |||
| + | | ||
linux/system/bluetooth.1691142152.txt.gz · Last modified: by oscar
