/BluetoothArchLinux

This is a small guide on how to configure bluetooth on arch linux

BLUETOOTH CONFIGURATION FOR ARCH LINUX

Bluetooth configuration for Arch Linux (Endeavour Os)

INSTALLATION

  • Install the bluez package, providing the Bluetooth protocol stack.
  • Install the bluez-utils package, providing the bluetoothctl utility. Alternatively install bluez-utils-compat (with AUR) to additionally have the deprecated BlueZ tools.
  • The generic Bluetooth driver is the btusb kernel module. Check whether that module is loaded. If it is not, then load the module.
  • Start/enable bluetooth.service.

INSTALL PACKAGES

	$ sudo pacman -S bluez bluez-utils

CHECK BLUETOOTH MODULE

To see if the bluetooth module is present

	$ lsmod | grep btusb

CONFIGURATION

START AND ENABLE BLUETOOTH SERVICE

	$ sudo systemctl start bluetooth.service
	$ sudo systemctl enable bluetooth.service

START BLUETOOTHCTL

Launch the command of the bluetooth

	$ bluetoothctl

Power on bluetooth

	[bluetooth]$ power on

Set the agent

	[bluetooth]$ agent on
	[bluetooth]$ default-agent

SCAN DEVICES

	[bluetooth]$ scan on

find and select the MAC ADDRESS of the devices you want to connect

TRUST

With this line we can remember the device even if is not connected

	[bluetooth]$ trust <Mac Address>

PAIR

	[bluetooth]$ pair <Mac Address>

CONNECT

	[bluetooth]$ connect <Mac Address>

CLOSE SCAN AND EXIT

At the end power off the scan and exit

	[bluetooth]$ scan off
	[bluetooth]$ exit

ON STARTUP

To Start it automatically at startup

 	$ sudo vim /etc/bluetooth/main.conf

if is not working try use

	$ sudo vi /etc/bluetooth/main.conf

And change the comment

	AutoEnable=true