Alex Jeffery ● Home ● Contact ● Publications ● Blog
Bluetooth Audio with Arch Linux
Published on 01.12.2016 at 14:00
Something I’ve been meaning to figure out for a while is how to use bluetooth speakers with Arch Linux. After numerous attempts over the last year, today I was finally successful.
My laptop doesn’t have bluetooth built in, so I bought a cheap USB dongle from Amazon. The reviews said it worked with a raspberry pi so I figured it’d be fine under Arch.
If you use Arch linux as a daily driver, then you probably already have pulseaudio and pavucontrol installed and configured. This was the case for me. If you don’t, then you’ll need to.
$ sudo pacman -S blueman pulseaudio-bluetooth
Getting things running
First, plug your bluetooth dongle in (if necessary).
blueman will install
bluez (among other things) as a dependency.
bluez comes with a systemd service that needs to be running when you want to use bluetooth. So next, run:
$ sudo systemctl start bluetooth.service
You can check that the service is running properly with:
$ systemctl status bluetooth.service
Next, run the blueman applet:
Now you should have a pretty little bluetooth icon in your system tray. Click on it and you’ll get a window that you can use to connect to your speaker.
Put your speaker in pairing mode and hit ‘Search’ in the blueman window. Your device should appear in the window. Right-click on it and select ‘Audio Sink’.
Next open pavucontrol and navigate to the ‘Configuration’ tab. Make sure ‘High Fidelity Playback (A2DP Sink)’ is selected as the Profile option for your device.
Now try playing some audio, and with any luck you’ll hear it through your bluetooth speaker. You can control the volume from the ‘Output Devices’ tab in pavucontrol.
Running at startup
To run the bluetooth service at startup:
$ sudo systemctl enable bluetooth.service
Note that to undo this, run the same command, replacing
Run blueman at startup by putting the following in your
# ~/.xinitrc exec blueman-applet