In other words, Bluetooth functionality in Manjaro or any Linux distributions results due to various interacting modules that include hardware drivers, client applications, kernel, bluez, and pulseaudio. Hence, troubleshooting Bluetooth problems in Manjaro is a daunting task.
In this article, we discuss some of the most common Bluetooth connection problems and present effective solutions.
Before beginning to troubleshoot Bluetooth device connection problems, confirm Bluetooth connection and adapter settings.
Verify that the Bluetooth adapter/device is not blocked via the following command:
: ideapad_bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
The above output illustrates that the adapter is unblocked. On the contrary, scenario, use the following command to unblock the adapter.
Lastly, verify if the Bluetooth service is enabled and active.
[[email protected]:~]$ sudo systemctl status bluetooth
Bluetooth not available after Sleep/Startup
Bluetooth gets disable after the restart, sleep or hibernate. This process causes the user to re-enable every time from the taskbar or CLI. As soon as the system resumes (before manually enabling Bluetooth), use the above-mentioned command rfkill to verify adapter settings. If the command output is similar to the above, it confirms that the issue is not with the driver.
One of the root causes can be a bug in the old versions of bluez 4.49, 4.50, etc. It also causes unusual behavior during Bluetooth connection, disconnection, and pairing processes.
Use the following command in the terminal to check the current version details of bluez:
Update the Manjaro repository and update the bluez to its latest version.
The version update resolves the Bluetooth access problem after suspension. It also improves system behavior during Bluetooth pairing, connection, and other settings.
Bluetooth Headset Playing HSP/HFP Not A2DF
Another common Bluetooth problem is that the headsets only play low-quality audio for phone calls instead of high-quality audio playback (music). To troubleshoot this problem, make sure the system identifies the right Bluetooth device in the configuration file.
Before that, verify all the required dependencies are available in the system.
After verification, edit or create the audio configuration file in the /etc/bluetooth directory, to include the following lines:
#This section contains general options
Save the above file and restart the Bluetooth service.
A2DP not compatible with PulseAudio
Sometimes PulseAudio fails to switch from low-quality audio to A2DP. That occurs due to the socket interface problem. The problem happens with the PulseAudio and bluez versions that are above 3.0 and 4.1.
To troubleshoot, disable the Socket option in the main.conf file in the /etc/bluetooth directory.
Bluetooth Device Connects and Disconnect
Another problem that Manjaro Bluetooth users face is that the device fails to connect or disconnect after a few moments of connection. Use the journalctl command to check the error logs:
The above error occurs in dual boot systems, not in standalone Manjaro installation. That means the device has already paired with another operating system via a Bluetooth adapter.
bluetoothd: connect error: Connection refused (111)
Whenever the Bluetooth device pairs, the service generates pairing keys. The system stores the device MAC address and the keys. Similarly, the device also stores the system’s MAC address and the matching key.
However, the MAC addresses for both OSs in the system are the same. When the Bluetooth device re-pairs, it overwrites the previous key with the new one. Hence, some devices can not handle pairing twice with the same MAC address or adapter.
Use the following step-by-step instructions to troubleshoot this problem:
Boot into the Windows OS and pair all the devices
Now reboot into the Manjaro Linux and pair all the devices.
Now extract to the Windows pairing keys, switch off the Bluetooth devices to avoid connection attempts.
Go to the command-line terminal to install the chntpw utility
Use the following command to mount Windows system drive
Now chntpw -e SYSTEM to get inside the chntpw environment to run
Now ls to get Bluetooth adapter MAC address
Node has 1 subkeys and 0 values
Now cd into the [bluetooth-adapter-mac-address] folder to list existing MAC address devices.
size type value name [value if type DWORD]
Use hex to get the device keys.
:00000 XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
The XX’s in the above output is the pairing keys. Now note which device maps to with which key.
Add the pairing key to the Manjaro configuration entries:
Change user to root: su
cd into the Bluetooth configuration folder /var/lib/bluetooth/[bluetooth_MAC_Add], such that each paired device has a separate configuration file. To pair each device with both OSs, add Windows Manjaro and Windows, open the configuration file for each device, and add the Windows pairing key under the [LinkKey] option.
Key=XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
Save the files and restart the services:
In this tutorial, we demonstrate troubleshooting various Bluetooth connection problems in Manjaro Linux. The issues discussed are the most commonly faced problems by new Manjaro users. The article also resolves the most commonly occurring Bluetooth connection problem in a dual boot system.