How to Set Up and Use Bluetooth on Arch Linux
#bluez
#bluetooth
#linux
#arch linux
1. Installing Bluetooth Packages
First, install the necessary packages using pacman:
sudo pacman -S bluez bluez-utils
bluez: The Bluetooth protocol stackbluez-utils: Utilities likebluetoothctlfor managing devices
2. Enabling the Bluetooth Service
Start and enable the bluetooth.service:
sudo systemctl enable bluetooth.service
sudo systemctl start bluetooth.service
3. Checking Your Bluetooth Adapter
Verify your adapter is recognized:
sudo dmesg | grep -i bluetooth
4. Pairing Devices with bluetoothctl
Use the interactive bluetoothctl tool:
bluetoothctl
Step-by-Step Pairing:
-
Power on the controller:
power on -
Enable agent for authentication:
agent on default-agent -
Scan for devices:
scan on -
Pair and connect (replace
XX:XX:XX:XX:XX:XXwith your device’s MAC address):pair XX:XX:XX:XX:XX:XX connect XX:XX:XX:XX:XX:XX -
Trust the device for auto-connection:
trust XX:XX:XX:XX:XX:XX -
Exit
bluetoothctl:exit
Happy wireless computing! 🎧