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-utilsbluez: The Bluetooth protocol stackbluez-utils: Utilities likebluetoothctlfor managing devices
2. Enabling the Bluetooth Service
Start and enable the bluetooth.service:
sudo systemctl enable bluetooth.servicesudo systemctl start bluetooth.service3. Checking Your Bluetooth Adapter
Verify your adapter is recognized:
sudo dmesg | grep -i bluetooth4. Pairing Devices with bluetoothctl
Use the interactive bluetoothctl tool:
bluetoothctlStep-by-Step Pairing:
-
Power on the controller:
power on -
Enable agent for authentication:
agent ondefault-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:XXconnect 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! 🎧